<div class="row">
	<div class="col-md-8">
		<div class="row mb-3">
			<div class="col-8">
				{{ Form::label('name', 'Nom') }}
				@include('components.form.input', ['name' => 'name', 'value' => $sale_channel['name'] ?? null, 'required' => true])
			</div>
			<div class="col-4">
				{{ Form::label('name', 'Code abrégé') }}
				@include('components.form.input', ['name' => 'code', 'value' => $sale_channel['code'] ?? null, 'required' => true])
			</div>
		</div>
		<div class="row mb-3">
			<div class="col-12">
				{{ Form::label('description', 'Description') }}
				@include('components.form.textarea', ['name' => 'description', 'value' => $sale_channel['description'] ?? null, 'class' => 'editor', 'required' => false])
			</div>
		</div>
	</div>
</div>

@include('components.save')

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

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