minor fixes
This commit is contained in:
@@ -1,26 +1,34 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.list'),
|
||||
'breadcrumb' => [__('shop.deliveries.title')]
|
||||
'title' => __('shop.deliveries.title'),
|
||||
'subtitle' => __('shop.deliveries.list'),
|
||||
'breadcrumb' => [__('shop.deliveries.title')],
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Shop.Deliveries.index'), 'model' => 'deliveries', 'callback' => 'handleDelivery();'])
|
||||
@endcomponent
|
||||
<x-card>
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Shop.Deliveries.index'),
|
||||
'model' => 'deliveries',
|
||||
'with_filters' => true,
|
||||
'callback' => 'handleDelivery();',
|
||||
])
|
||||
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-deliveries-filters'])
|
||||
@include('Admin.Shop.Deliveries.partials.filters', ['model' => 'deliveries'])
|
||||
@endcomponent
|
||||
</x-card>
|
||||
@endsection
|
||||
|
||||
@include('load.form.select2')
|
||||
@include('load.form.toggle')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
function handleDelivery() {
|
||||
initToggle("{{ route('Admin.Shop.Deliveries.toggleActive') }}");
|
||||
}
|
||||
<script>
|
||||
function handleDelivery() {
|
||||
initToggle("{{ route('Admin.Shop.Deliveries.toggleActive') }}");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
$(document).ready(function() {
|
||||
initSelect2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
<div class="row mb-3">
|
||||
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label class="col-4">{{ __('shop.sale_channels.name') }}</label>
|
||||
<div class="col-8">
|
||||
@include('components.form.select', [
|
||||
'name' => 'sale_channel_id',
|
||||
'list' => $sale_channels ?? [],
|
||||
'value' => $filters['sale_channel_id'] ?? null,
|
||||
'with_empty' => '',
|
||||
'class' => 'select2',
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user