minor fixes

This commit is contained in:
ludo
2023-12-09 21:02:28 +01:00
parent b5da5fc881
commit 2a429e4163
49 changed files with 448 additions and 266 deletions

View File

@@ -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

View File

@@ -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>