@extends('frontend::layouts.master') @section('content') @php $breadcrumbs = [ [ 'title' => $menu_index['name'] ?? '', 'url' => $menu_index['url'] ?? 'javascript:void(0)', ], [ 'title' => __('frontend::lang.products.all_category') ?? '', 'url' => $menu_products['url'] ?? 'javascript:void(0)', ], ]; if (!empty($main_caregories['name'])) { $breadcrumbs[] = [ 'title' => $main_caregories['name'] ?? '', 'url' => $main_caregories['url'] ?? 'javascript:void(0)', ]; } if (!empty($sub_caregories['name'])) { $breadcrumbs[] = [ 'title' => $sub_caregories['name'] ?? '', 'url' => $sub_caregories['url'] ?? 'javascript:void(0)', ]; } if (!empty($product['name'])) { $breadcrumbs[] = [ 'title' => $product['name'] ?? '', 'url' => $product['url'] ?? 'javascript:void(0)', ]; } @endphp

{{ $product['name'] ?? '' }}

{!! $product['desc'] ?? '' !!}

@if (!empty($product['gallery'][0])) @endif @if (!empty($product['detail']))
{!! $product['detail'] !!}
@endif
@if (!empty($product['related'][0])) @endif @if (!empty($recently_viewed['list'][0]))

{{ __('frontend::lang.products.recently_viewed') }}

@if (count($recently_viewed['list']) <= 4)
@foreach ($recently_viewed['list'] as $p)
@php $image = check_file(''); if (!empty($p['gallery'][0])) { foreach ($p['gallery'] as $g) { if (!str_contains($g['image'], '.mp4')) { $image = !empty($g['image']) ? check_file(asset($g['image'])) : check_file(''); break; } } } @endphp
@endforeach
@else @endif
@endif @endsection @section('scripts') @endsection