<?php

$sPrices = '<section class="add-edit-group prices" data-groupname="prices">';

	$sPrices .= '<div class="prices-container" id="prices-container">			
		<div class="prices" id="sale-price-container">
			<label for="sale-price">Verkoopprijs</label>
			<input autocomplete="false" class="price-input number-input auto-save" type="number" name="sale-price" inputmode="numeric" id="sale-price" placeholder="" value="'.(!empty($oMijnOVIS->parsedDetails->price) ? number_format($oMijnOVIS->parsedDetails->price,0,',','.') : false).'">			
		</div>
	</div>';
	
	$sPrices .= '<div class="prices-container" id="prices-container">			
		<div class="prices" id="from-price-container">
			<label for="from-price">Van prijs <i>- optioneel</i></label>
			<input autocomplete="false" class="price-input number-input auto-save" type="number" name="from-price" inputmode="numeric" id="from-price" placeholder="" value="'.(!empty($oMijnOVIS->parsedDetails->price) ? number_format($oMijnOVIS->parsedDetails->priceFrom,0,',','.') : false).'">			
		</div>
	</div>';
	
	$sPrices .= '<div class="select-radio-container prices-container'.(!empty($oMijnOVIS->parsedDetails->vat) ? ' active' : false).'" id="vat-container" data-field="vat">			
		<div class="prices" id="price-vat-container">
			<label class="label-sub">BTW/Marge</label>
			<span class="open-sub'.(!empty($oMijnOVIS->parsedDetails->vat) ? ' active' : false).'" id="open-sub-vat" data-group="prices" data-field="vat" data-title="BTW/Marge" data-default="BTW/Marge">'.($oMijnOVIS->parsedDetails->vat == 'btw' ? 'BTW' : ($oMijnOVIS->parsedDetails->vat == 'marge' ? 'Marge' : 'BTW/Marge')).'</span>';
			
			
			$sPrices .= '<div class="sub-container" id="sub-vat">';
					
				$aVats = array('Inclusief BTW','Exclusief BTW','Marge');
				
				foreach($aVats as $sVat){
					$sPrices .= '<label for="set-vat-'.strtolower($sVat).'">'.$sVat.'</label>';
					$sPrices .= '<input class="select-radio vat-radio" type="checkbox" name="set-vat" id="set-vat-'.strtolower($sVat).'" value="'.strtolower($sVat).'"'.(strtolower($oMijnOVIS->parsedDetails->vat) == strtolower($sVat) ? ' checked="checked"' : false).'>';						
				}
				
			$sPrices .= '</div>';				
					
		$sPrices .= '</div>
	</div>';
	

$sPrices .= '</section>';

return $sPrices;