@extends('storefront.layout') @section('title', $sfStore->name) @section('content')

{{ $sfStore->name }}

@php $sfSett = is_array($sfStore->settings['storefront'] ?? null) ? $sfStore->settings['storefront'] : []; $heroTitle = trim((string) ($sfSett['hero_title'] ?? '')) ?: 'Quality you can see'; $heroSubtitle = trim((string) ($sfSett['hero_subtitle'] ?? '')) ?: 'Browse our full range and add items to your cart — visit us in store to complete your purchase.'; $heroImage = trim((string) ($sfSett['hero_image'] ?? '')); @endphp
@php $heroPng = public_path('assets/storefront/hero-side.png'); $heroBust = (int) ($sfStore->updated_at?->timestamp ?? $sfStore->getKey()); if ($heroImage !== '') { $heroSrc = \Illuminate\Support\Facades\Storage::url($heroImage) . '?v=' . $heroBust; } elseif (file_exists($heroPng)) { $heroSrc = asset('assets/storefront/hero-side.png') . '?v=' . $heroBust; } else { $heroSrc = asset('assets/storefront/hero-side.svg') . '?v=' . $heroBust; } @endphp

{{ $heroTitle }}

{{ $heroSubtitle }}

Shop Now

{{ __('Highlights') }}

@foreach($offerCards as $idx => $card)
@if(!empty($card['image']))
@else @endif

{{ $card['title'] }}

{{ $card['text'] }}

@endforeach
@foreach($sfSections as $sfSection) @php $sfSecType = $sfSection['type'] ?? ''; @endphp @if($sfSecType === 'categories' && !empty($sfSection['categories']) && $sfSection['categories']->isNotEmpty())

{{ $sfSection['title'] ?? __('Shop by category') }}

{{ __('View all') }}
@php $catBust = (int) ($sfStore->updated_at?->timestamp ?? $sfStore->getKey()); @endphp
@foreach($sfSection['categories'] as $cat) @php $catNm = trim((string) $cat->name); $catLetter = \Illuminate\Support\Str::upper(\Illuminate\Support\Str::substr($catNm !== '' ? $catNm : '?', 0, 1)); $catImg = $cat->image ? \Illuminate\Support\Facades\Storage::url($cat->image) . '?v=' . $catBust : null; @endphp @endforeach
@elseif($sfSecType === 'featured' || $sfSecType === 'custom')

{{ $sfSection['title'] ?? __('Products') }}

{{ __('View all') }}
@if(empty($sfSection['products']) || $sfSection['products']->isEmpty())

{{ $sfSecType === 'featured' ? __('Shop coming soon') : __('No products found') }}

{{ $sfSecType === 'featured' ? __('We are preparing our product listings. Please check back shortly.') : __('No products match this section right now.') }}

@else
@include('storefront.partials.product-grid-items', ['products' => $sfSection['products']])
@endif
@endif @endforeach @include('storefront.partials.business-home-block', ['businessHome' => $businessHome ?? null]) @endsection @push('scripts') @endpush