{{-- resources/views/storefront/service-selector.blade.php --}} @extends('storefront.layout') @section('title', trans_key('storefront.pageTitles.serviceSelector').' - '.config('app.name', 'FreshMart')) @section('content') @php $zoneQuery = $selectedZone?->slug ? ['zone' => $selectedZone->slug] : []; $storefrontQuery = array_filter([ 'zone' => $selectedZone?->slug, 'service' => $selectedService ?? null, ]); $homeBranding = ($settings ?? collect())->get('branding', collect()); $homeBrandLogo = \App\Support\StorefrontPresenter::mediaUrl( ($frontendBranding ?? collect())->get('brand_logo') ?? $homeBranding->get('logo') ?? $homeBranding->get('dark_logo') ); $homeBrandName = trim((string) ($homeBranding->get('app_name') ?: config('app.name', 'FreshMart'))); $services = collect([ [ 'key' => 'grocery', 'name' => 'InstaKart', 'short_name' => 'Grocery', 'description' => 'Daily essentials delivered to your doorstep in minutes', 'icon' => asset('assets/customer/services/hyperlocal.svg'), 'color' => '#2daa37', 'bg_color' => '#e8f5e9', 'badge' => 'Popular', 'eta' => '10-15 mins', ], [ 'key' => 'food', 'name' => 'Food Delivery', 'short_name' => 'Foods', 'description' => 'Delicious meals from your favourite restaurants', 'icon' => asset('assets/customer/services/restaurant.svg'), 'color' => '#6D28D9', 'bg_color' => '#E9D5FF', 'badge' => 'New', 'eta' => '25-35 mins', ], [ 'key' => 'pharmacy', 'name' => 'Pharmacy', 'short_name' => 'Pharmacy', 'description' => 'Medicines and wellness products delivered safely', 'icon' => asset('assets/customer/services/pharmacy.svg'), 'color' => '#2563EB', 'bg_color' => '#DBEAFE', 'badge' => 'Trusted', 'eta' => '15-20 mins', ], [ 'key' => 'parcel', 'name' => 'Parcel Delivery', 'short_name' => 'Parcel', 'description' => 'Send anything anywhere with real-time tracking', 'icon' => asset('assets/customer/services/parcel.svg'), 'color' => '#F97316', 'bg_color' => '#FFEDD5', 'badge' => 'Fast', 'eta' => 'Variable', ], ]); @endphp
{{-- Header --}}
@if($homeBrandLogo) {{ $homeBrandName }} @else FreshMart @endif

What would you like?

Choose a service to get started

{{-- Location Bar --}} {{-- Service Grid --}}
@foreach($services as $service) @php $serviceKey = $service['key']; $serviceClass = match($serviceKey) { 'grocery' => 'is-grocery', 'food' => 'is-food', 'pharmacy' => 'is-pharmacy', 'parcel' => 'is-parcel', default => '' }; $serviceUrl = route('storefront.services.show', ['service' => $serviceKey] + array_filter([ 'zone' => $selectedZone?->slug, ])); @endphp @if($service['badge'] ?? false) {{ $service['badge'] }} @endif
{{ $service['name'] }}
{{ $service['name'] }}
{{ $service['description'] }}
{{ $service['eta'] }}
@endforeach
@endsection