Files
tehnobox/resources/views/shop/favorites.blade.php
ssww23 0ee9f05416
Some checks failed
Deploy / deploy (push) Has been cancelled
1
2026-03-17 01:59:00 +03:00

31 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@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