[WIP] Add thumb on offers, refactor categories, try to fix counter on relations polymorphic with eage loader, bad pattern !
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div class="card">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($offer['article']['image']) }}" class="card-img-top" alt="...">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($offer['article']['image'] ?? false) }}" class="card-img-top" alt="...">
|
||||
<div class="card-body">
|
||||
<span class="card-title">{{ $offer['article']['name'] }}</span>
|
||||
<span class="pull-right">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="row">
|
||||
@foreach ($offers as $offer)
|
||||
<div class="col-sm-6 col-md-3 col-lg-2">
|
||||
<div class="col-sm-3 col-lg-2">
|
||||
@include('Shop.layout.partials.article')
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="w-100 h-100 bg-secondary">
|
||||
Filtres
|
||||
</div>
|
||||
@@ -4,17 +4,19 @@
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<h1 style="font-size: 2em;">{{ $category['name'] }}</h1>
|
||||
<h3 style="font-size: 1.2em;">{!! $category['description'] !!}</h3>
|
||||
<div class="col-3 col-lg-2">
|
||||
@include('Shop.layout.partials.category_filters')
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@include('Shop.layout.partials.category_add')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="col-9 col-lg-10">
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<h1 style="font-size: 2em;">{{ $category['name'] }}</h1>
|
||||
<h3 style="font-size: 1.2em;">{!! $category['description'] !!}</h3>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@include('Shop.layout.partials.category_add')
|
||||
</div>
|
||||
</div>
|
||||
@include('Shop.layout.partials.category_articles')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user