@yield('title', 'Shop')
@if($settings && method_exists($settings, 'getFaviconUrl') && $settings->getFaviconUrl())
@endif
@livewireStyles
{{-- Category Sidebar Overlay --}}
{{-- Category Sidebar --}}
{{-- Header --}}
@yield('content')
{{-- Footer --}}
@livewireScripts
@yield('scripts')
{{-- ==================== LOCATION SERVICE AREA CHECK ==================== --}}
{{-- Add this code BEFORE the closing tag in shop-layout.blade.php --}}
{{-- Location Service Modal --}}
Service Not Available
Sorry! We currently don't deliver to your location.
Our delivery service is available within 5 km of our store in Rajajinagar, Bengaluru.
Store Location:
11th Cross Rd, West of Chord Road 2nd Stage,
Bovipalya, Nagapura, Bengaluru - 560086
{{-- Location Permission Modal --}}
Enable Location
Please allow location access to check if delivery is available in your area.
Skip
Allow Location
{{-- ==================== LOCATION SERVICE AREA CHECK ==================== --}}
{{-- Add this code BEFORE the closing tag in shop-layout.blade.php --}}
@if($settings->location_restriction_enabled ?? false)
{{-- Location Service Modal --}}
Service Not Available
Sorry! We currently don't deliver to your location.
Our delivery service is available within {{ $settings->service_radius_km ?? 5 }} km of our store.
Store Location:
{{ $settings->store_address ?? '' }}
{{ $settings->store_city ?? '' }}, {{ $settings->store_state ?? '' }} - {{ $settings->store_pincode ?? '' }}
{{-- Location Permission Modal --}}
Check Delivery Availability
Allow location access to check if delivery is available in your area.
Skip
Check My Location
{{-- Service Available Modal (Success) --}}
Great News! 🎉
Delivery is available at your location!
Start Shopping
@endif
{{-- function testLocation(lat, lng) {
const distance = calculateDistance(lat, lng, SHOP_LOCATION.lat, SHOP_LOCATION.lng);
console.log('Test location:', lat, lng);
console.log('Distance:', distance.toFixed(2), 'km');
if (distance > SERVICE_RADIUS_KM) {
showLocationModal(distance);
} else {
showSuccessModal(distance);
}
} --}}