Refactoring, change menu, add many features
This commit is contained in:
57
resources/views/Admin/Shop/Deliveries/form.blade.php
Normal file
57
resources/views/Admin/Shop/Deliveries/form.blade.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-xl-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('sale_channel_id', __('shop.sale_channels.name')) }}
|
||||
@include('components.form.select', ['name' => 'sale_channel_id', 'list' => $sale_channels ?? [], 'value' => $delivery['sale_channel_id'] ?? null, 'with_empty' => '', 'class' => 'select2'])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
{{ Form::label('active', __('active')) }}<br/>
|
||||
@include("components.form.toggle", ['value' => $delivery['active'] ?? false, 'on' => __('active'), 'off' => __('inactive')])
|
||||
</div>
|
||||
<div class="col-3">
|
||||
{{ Form::label('is_public', __('public')) }}
|
||||
@include('components.form.checkboxes.icheck', ['name' => 'is_public', 'value' => $delivery['is_public'] ?? null])
|
||||
</div>
|
||||
<div class="col-4">
|
||||
{{ Form::label('is_public', __('A domicile')) }}
|
||||
@include('components.form.checkboxes.icheck', ['name' => 'at_house', 'value' => $delivery['at_house'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('name', __('name')) }}
|
||||
@include('components.form.input', ['name' => 'name', 'value' => $delivery['name'] ?? null, 'required' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.address', ['with_country' => false])
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-6">
|
||||
{{ Form::label('event_date', __('date')) }}
|
||||
@include('components.form.datepicker', ['name' => 'event_date', 'value' => $delivery['event_date'] ?? null])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.save')
|
||||
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initSelect2();
|
||||
initDatepicker();
|
||||
initSaveForm('#delivery-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user