Refactoring, change menu, add many features

This commit is contained in:
Ludovic CANDELLIER
2021-10-30 02:22:51 +02:00
parent fae7b7897f
commit e356b3fcda
158 changed files with 1114 additions and 412 deletions

View File

@@ -3,15 +3,15 @@
<div class="row">
<div class="col-6">
{{ Form::label('package_id', 'Package') }}
@include('components.select', ['name' => 'package_id', 'list' => $packages ?? [], 'value' => $variation['package_id'] ?? false, 'required' => true, 'with_empty' => ''])
@include('components.form.select', ['name' => 'package_id', 'list' => $packages ?? [], 'value' => $variation['package_id'] ?? false, 'required' => true, 'with_empty' => ''])
</div>
<div class="col-2">
{{ Form::label('quantity', 'Quantité') }}
@include('components.input', ['name' => 'quantity', 'value' => $variation['quantity'] ?? false, 'required' => true])
@include('components.form.input', ['name' => 'quantity', 'value' => $variation['quantity'] ?? false, 'required' => true])
</div>
<div class="col-4">
{{ Form::label('unity_id', 'Unité') }}
@include('components.select', ['name' => 'unity_id', 'list' => $unities ?? [], 'value' => $variation['unity_id'] ?? false, 'required' => false, 'with_empty' => ''])
@include('components.form.select', ['name' => 'unity_id', 'list' => $unities ?? [], 'value' => $variation['unity_id'] ?? false, 'required' => false, 'with_empty' => ''])
</div>
</div>
</div>
@@ -20,7 +20,7 @@
<div class="row mb-3">
<div class="col-12">
{{ Form::label('description', 'Description') }}
@include('components.textarea', ['name' => 'description', 'value' => isset($variation['description']) ? $variation['description'] : null, 'class' => 'editor', 'required' => false])
@include('components.form.textarea', ['name' => 'description', 'value' => isset($variation['description']) ? $variation['description'] : null, 'class' => 'editor', 'required' => false])
</div>
</div>

View File

@@ -5,5 +5,7 @@
])
@section('content')
@include('components.datatable', ['route' => route('Admin.Shop.Variations.index'), 'model' => 'variations'])
@component('components.card')
@include('components.datatable', ['route' => route('Admin.Shop.Variations.index'), 'model' => 'variations'])
@endcomponent
@endsection