This commit is contained in:
Ludovic CANDELLIER
2021-11-07 19:58:38 +01:00
parent c7c8e18cbc
commit 63c6671c97
22 changed files with 143 additions and 48 deletions

View File

@@ -6,11 +6,24 @@
@section('content')
@component('components.card')
@include('components.datatable', ['route' => route('Admin.Shop.Offers.index'), 'model' => 'offers', 'with_filters' => true])
@include('components.datatable', ['route' => route('Admin.Shop.Offers.index'), 'model' => 'offers', 'with_filters' => true, 'callback' => 'handleOffer();'])
@component('components.layout.modal', ['title' => 'Filtres', 'id' => 'modal-offers-filters'])
@include('Admin.Shop.Offers.partials.filters', ['model' => 'offers'])
@endcomponent
@endcomponent
@endsection
@include('load.form.select2')
@include('load.form.select2')
@include('load.form.toggle')
@push('js')
<script>
function handleOffer() {
initToggle("{{ route('Admin.Shop.Offers.toggleActive') }}");
}
$(document).ready(function () {
initSelect2();
});
</script>
@endpush

View File

@@ -6,11 +6,11 @@
{{ Form::label('ref', 'Référence') }}<br>
{{ $article['ref'] ?? null }}
</div>
<div class="col-5">
<div class="col-6">
{{ Form::label('name', 'Nom') }}<br>
{{ $article['name'] ?? null }}
</div>
<div class="col-3">
<div class="col-3" class="text-right">
{!! $article['image'] !!}
</div>
</div>