{{-- Page-scoped layout safety net (.section-our-store .card-store sizing rules) lives in assets/sass/component/_inline-migrated.scss. --}} @php use Botble\Media\Facades\RvMedia; // Store cards come from theme_option('store_locations'), seeded by // Themes/Main/ThemeOptionSeeder so a fresh install ships with six demo // locations. Admins can swap them via Theme Options without touching code. $storeLocations = theme_option('store_locations', []); if (is_string($storeLocations)) { $storeLocations = json_decode($storeLocations, true) ?? []; } if (! is_array($storeLocations)) { $storeLocations = []; } $defaultMapQuery = static function (string $address): string { return 'https://www.google.com/maps?q=' . urlencode($address); }; @endphp

{{ __('Our Stores') }}

{{ __('Explore our store locations, experience our collections in person, and easily find') }}
{{ __("the one that's closest to you.") }}

@foreach ($storeLocations as $store) @php $name = $store['name'] ?? ''; $address = $store['address'] ?? ''; $phone = $store['phone'] ?? ''; $email = $store['email'] ?? ''; $hours = $store['hours'] ?? ''; $mapUrl = $store['map_url'] ?? ($address ? $defaultMapQuery($address) : ''); $imageSrc = ! empty($store['image']) ? RvMedia::getImageUrl($store['image'], null, false, RvMedia::getDefaultImage()) : RvMedia::getDefaultImage(); $telHref = $phone ? 'tel:' . preg_replace('/[^0-9+]/', '', $phone) : null; @endphp
{{ $name }}
@if ($name)
{{ $name }}
@endif
    @if ($address)
  • {{ __('Address:') }} @if ($mapUrl) {{ $address }} @else {{ $address }} @endif
  • @endif @if ($phone)
  • {{ __('Phone:') }} {{ $phone }}
  • @endif @if ($email)
  • {{ __('Email:') }} {{ $email }}
  • @endif @if ($hours)
  • {{ __('Hours:') }} {{ $hours }}
  • @endif
@if ($mapUrl) {{ __('Get direction') }} @endif
@endforeach