change display on categories

This commit is contained in:
Ludovic CANDELLIER
2022-05-31 23:21:04 +02:00
parent 5b74c93b2e
commit e31978b1e3
10 changed files with 297 additions and 5 deletions

View File

@@ -1,7 +1,14 @@
<div class="row">
<div class="col-12 text-right">
@include('components.form.button', ['id' => 'by_cards', 'icon' => 'fa-th', 'class' => 'btn-success'])
@include('components.form.button', ['id' => 'by_rows', 'icon' => 'fa-list', 'class' => 'btn-success'])
@if ($display_by_rows ?? false)
@include('components.form.button', ['id' => 'by_cards', 'icon' => 'fa-th', 'class' => 'btn-secondary'])
@else
@include('components.form.button', ['id' => 'by_rows', 'icon' => 'fa-list', 'class' => 'btn-secondary'])
@endif
@include('components.form.button', ['id' => 'semences', 'icon' => 'fa-leaf', 'class' => 'bg-yellow yellow-dark'])
@include('components.form.button', ['id' => 'plants', 'icon' => 'fa-seedling', 'class' => 'bg-green text-white'])
</div>
</div>

View File

@@ -8,7 +8,14 @@
@include('Shop._partials.display_filters')
</div>
<div class="col-6">
<h1 style="font-size: 2em;">{{ $category['name'] }}</h1>
<h1 style="font-size: 1.5em;">
@foreach($breadcrumb ?? [] as $parent)
<a href="{{ route('Shop.Categories.show', ['id' => $parent['id']]) }}" style="text-decoration: none; color: inherit;">{{ $parent['name'] }}</a> /
@endforeach
<span style="font-size: 1.4em;">
{{ $category['name'] }}
</span>
</h1>
<h3 style="font-size: 1.2em;">{!! $category['description'] !!}</h3>
</div>
<div class="col-3">