{{-- Requires $businessHome from StorefrontBusinessHomePresentation --}} @if(!empty($businessHome) && !empty($businessHome['branches']))

{{ __('Branches & contact') }}

@php $bhBranches = $businessHome['branches'] ?? []; $bhShowBranches = is_countable($bhBranches) && count($bhBranches) > 0; @endphp @if($bhShowBranches)
@foreach($businessHome['branches'] as $b)

{{ $b['name'] }}

@if(!empty($businessHome['show_hours'])) @if(!empty($b['hours_lines']))
{{ __('Hours') }}
    @foreach($b['hours_lines'] as $line)
  • {{ $line }}
  • @endforeach
@else

{{ __('Hours not configured for this branch yet.') }}

@endif @endif @if(!empty($businessHome['show_location']))
{{ __('Location') }} @php $addr = trim((string) ($b['address'] ?? '')); $loc = trim((string) ($b['location_label'] ?? '')); $map = trim((string) ($b['map_url'] ?? '')); @endphp @if($addr !== '' || $loc !== '' || $map !== '')
@if($addr !== '') {{ $addr }} @elseif($loc !== '') {{ $loc }} @endif @if($map !== '') {{ __('Open in Google Maps') }} @endif
@else

{{ __('Add address or Google Maps link in Branch settings.') }}

@endif
@endif @if(!empty($businessHome['show_phone'])) @php $branchPhone = trim((string) ($b['phone'] ?? '')); $branchEmail = trim((string) ($b['email'] ?? '')); @endphp @if($branchPhone !== '' || $branchEmail !== '')
@if($branchPhone !== '')
{{ __('Branch phone for customer support') }} {{ $branchPhone }}
@endif @if($branchEmail !== '')
{{ __('Branch email for customer support') }} {{ $branchEmail }}
@endif
@endif @endif
@endforeach
@endif
@endif