<div class="row mb-3">
	<div class="col-6">
		<div class="row">
			<div class="col-6">
				{{ Form::label('package_id', 'Package') }}
				@include('components.form.select', ['name' => 'package_id', 'list' => $packages ?? [], 'value' => $variation['package_id'] ?? false, 'required' => true, 'with_empty' => ''])
			</div>
			<div class="col-2">
				{{ Form::label('quantity', 'Quantité') }}
				@include('components.form.input', ['name' => 'quantity', 'value' => $variation['quantity'] ?? false, 'required' => true])
			</div>
			<div class="col-4">
				{{ Form::label('unity_id', 'Unité') }}
				@include('components.form.select', ['name' => 'unity_id', 'list' => $unities ?? [], 'value' => $variation['unity_id'] ?? false, 'required' => false, 'with_empty' => ''])
			</div>
		</div>
	</div>
</div>

<div class="row mb-3">
	<div class="col-12">
		{{ Form::label('description', 'Description') }}
		@include('components.form.textarea', ['name' => 'description', 'value' => isset($variation['description']) ? $variation['description'] : null, 'class' => 'editor', 'required' => false])		
	</div>
</div>

@include('components.save')

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

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