<div class="row">
	<div class="col-md-8">
		<div class="row mb-3">
			<div class="col-6">
				{{ Form::label('last_name', 'Nom') }}
				@include('components.form.input', ['name' => 'last_name', 'value' => $customer['last_name'] ?? null, 'required' => true])
			</div>
			<div class="col-6">
				{{ Form::label('first_name', 'Prénom') }}
				@include('components.form.input', ['name' => 'first_name', 'value' => $customer['first_name'] ?? null, 'required' => true])
			</div>
		</div>
		<div class="row mb-3">
			<div class="col-6">
				{{ Form::label('email', 'Email') }}
				@include('components.form.inputs.email', ['name' => 'email', 'value' => $customer['email'] ?? null, 'required' => true])
			</div>
			<div class="col-6">
				{{ Form::label('sale_delivery_id', __('shop.deliveries.name')) }}
				@include('components.form.select', ['name' => 'deliveries[]', 'list' => $deliveries ?? [], 'values' => $customer['deliveries'] ?? null, 'with_empty' => '', 'class' => 'select2', 'multiple' => true])
			</div>
		</div>
		@include('components.address', ['with_country' => false, 'prefix' => 'addresses[0]', 'with_tab' => true, 'item' => $customer['addresses'][0]])
	</div>
</div>

@include('components.save')

@include('load.form.save')
@include('load.form.select2')

@push('js')
	<script>
		$(function() {
			initSelect2();
			initSaveForm('#customer-form');
		});
	</script>
@endpush