@include('front.partials.catalog-card-styles') @if($products->isNotEmpty()) @php $translator = app(\App\Services\TranslationService::class); $locale = app()->getLocale(); @endphp @foreach($products as $product) @if($product instanceof \App\Models\RestaurantMenuItem) {{-- Carte « plat » (Viki Restaurant). --}} @php $dishThumb = $product->firstPhotoPath(); $dishName = $translator->translate($product->name, $locale); $resto = $product->restaurateur; $restoName = $resto ? ($resto->company ?: $resto->name) : null; $dishInWishlist = in_array($product->id, $wishlistDishIds ?? []); @endphp
{{ __('messages.no_product_available') }}
@endif