@if(isset($homeCategories) && $homeCategories->count())

{{ __('public.home.products_title') }}

{{ __('public.home.products_subtitle') }}

@foreach($homeCategories as $category) @php $title = ___($category, 'title'); $description = ___($category, 'description'); $thumb = $category->image ? (str_starts_with($category->image, 'http') || str_starts_with($category->image, '/') ? $category->image : '/storage/' . ltrim($category->image, '/')) : ''; $shopUrl = __url('/shop') . '?category=' . urlencode($category->slug ?: (string) $category->id); @endphp
@if($thumb) {{ $title }} @endif

{{ $title }}

@if($description)

{{ $description }}

@endif
@endforeach
@endif