This commit is contained in:
30
resources/views/shop/favorites.blade.php
Normal file
30
resources/views/shop/favorites.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('layouts.shop')
|
||||
|
||||
@section('content')
|
||||
@include('partials.breadcrumbs', [
|
||||
'items' => [
|
||||
['label' => 'Главная', 'url' => route('home')],
|
||||
['label' => 'Избранное', 'url' => null],
|
||||
],
|
||||
])
|
||||
|
||||
<section class="pc-section">
|
||||
<div class="pc-section-title">
|
||||
<h2>Избранные товары</h2>
|
||||
</div>
|
||||
|
||||
@if ($products->isEmpty())
|
||||
<div class="pc-card">
|
||||
<h3>Список пуст</h3>
|
||||
<p>Добавьте товары в избранное из каталога или со страницы товара.</p>
|
||||
<a class="pc-btn primary" href="{{ route('catalog.index') }}">Перейти в каталог</a>
|
||||
</div>
|
||||
@else
|
||||
<div class="pc-products-grid">
|
||||
@foreach ($products as $product)
|
||||
@include('partials.product-card', ['product' => $product])
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</section>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user