<div class="col-12 row-price">

	<input type="hidden" name="prices[{{ $key }}][id]" value="@if (isset($price['id'])){{ $price['id'] }}@endif" class="price_id">

	<div class="card card-light">
		<div class="card-body pt-2">
			
			<div class="row">
				<div class="col-lg-1">
					{{ Form::label('quantity', 'Qté.') }}<br/>
					@include('components.form.inputs.number', ['name' => "prices[$key][quantity]", 'value' => $price['quantity'] ?? 1, 'required' => true, 'class' => 'form-control-sm'])
				</div>

				<div class="col-lg-3">
					{{ Form::label('package_id', 'Type Package') }}<br/>
					@include('components.form.select', [
						'name' => "prices[$key][package_id]", 
						'value' => $price['package_id'] ?? null, 
						'list' => $packages ?? null, 
						'required' => true, 
						'class' => 'select2 form-control-sm packages w-100',
					])
				</div>

				<div class="col-lg-1">
					{{ Form::label('package_qty', 'Pack Qté') }}<br/>
					@include('components.form.inputs.number', [
						'name' => "prices[$key][package_quantity]", 
						'value' => $price['package_quantity'] ?? null, 
						'required' => true, 
						'class' => 'form-control-sm',
					])
				</div>

				<div class="col-lg-3">
					{{ Form::label('unity_id', 'Unité') }}<br/>
					@include('components.form.select', [
						'name' => "prices[$key][unity_id]", 
						'value' => $price['unity_id'] ?? null, 
						'list' => $unities ?? null, 
						'required' => true, 
						'class' => 'select2 form-control-sm unities w-100',
						'with_empty' => ''
					])
				</div>

				<div class="col-lg-3">
					<div class="row">
						<div class="col-4">
							{{ Form::label('tax_id', 'TVA') }}<br/>
							@include('components.form.select', ['name' => "prices[$key][tax_id]", 'value' => $price['tax_id'] ?? null, 'list' => $taxes_options ?? null, 'required' => true, 'class' => 'form-control form-control-sm'])
						</div>

						<div class="col-4">
							{{ Form::label('price', 'Prix HT') }}
							@include('components.form.inputs.money', ['name' => "prices[$key][price]", 'value' => $price['price'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-item'])
						</div>

						<div class="col-4">
							{{ Form::label('price_taxed', 'Prix TTC') }}
							@include('components.form.inputs.money', ['name' => "prices[$key][price_taxed]", 'value' => $price['price_taxed'] ?? 0, 'required' => true, 'class' => 'form-control-sm price-taxed-item'])
						</div>
					</div>
				</div>

				<div class="col-lg-1 text-right">
					<br/>
					<button type="button" class="btn btn-xs btn-danger delete-price-btn mt-2" data-card-widget="collapse" data-toggle="tooltip" title="supprimer">
						<i class="fas fa-trash"></i>
					</button>
				</div>
			</div>
		</div>
	</div>
</div>