Add filters

This commit is contained in:
Ludovic CANDELLIER
2021-11-01 23:42:53 +01:00
parent e8d503b65d
commit eb0c9444bc
18 changed files with 148 additions and 35 deletions

View File

@@ -2,14 +2,17 @@
<div class="col-12">
<div class="row mb-3">
<div class="col-4">
<div class="col-3">
{{ Form::label('ref', 'Référence') }}<br>
{{ $article['ref'] ?? null }}
</div>
<div class="col-8">
<div class="col-5">
{{ Form::label('name', 'Nom') }}<br>
{{ $article['name'] ?? null }}
</div>
<div class="col-3">
{!! $article['image'] !!}
</div>
</div>
<div class="row mb-3">

View File

@@ -0,0 +1,14 @@
<form id="{{ $model }}-filters">
<div class="row mb-3">
<label class="col-4">{{ __('shop.article_natures.title') }}</label>
<div class="col-8">
@include('components.form.select', ['name' => 'article_nature_id', 'list' => $article_natures ?? [], 'value' => $filters['article_nature_id'] ?? null, 'class' => 'form-control-sm select2', 'with_empty' => ''])
</div>
</div>
<div class="row mb-3">
<label class="col-4">{{ __('shop.packages.title') }}</label>
<div class="col-8">
@include('components.form.select', ['name' => 'package_id', 'list' => $packages ?? [], 'value' => $filters['package_id'] ?? null, 'class' => 'form-control-sm select2', 'with_empty' => ''])
</div>
</div>
</form>