@extends('layouts.app') @section('title', 'My Online Store') @section('page-title', 'Online Store') @section('breadcrumb', 'Manage your public-facing storefront') @section('content')
{{-- Left: Settings --}}
{{-- Store status --}} @if($settings->is_enabled ?? false)

Your store is LIVE

{{ route('storefront.show', $tenant->slug) }}

@else

⚠ Your store is currently offline

Enable it below to start accepting orders

@endif {{-- Stats --}}
@foreach([ ['label'=>'Total Orders','value'=>$stats['total_orders'],'icon'=>'📦'], ['label'=>'Pending','value'=>$stats['pending_orders'],'icon'=>'⏳'], ['label'=>'Today','value'=>$stats['today_orders'],'icon'=>'📅'], ['label'=>"Today's Revenue",'value'=>'₹'.number_format($stats['today_revenue'],0),'icon'=>'💰'], ] as $s)
{{ $s['icon'] }}

{{ $s['value'] }}

{{ $s['label'] }}

@endforeach
{{-- Settings form --}}

Store Settings

@csrf {{-- Enable toggle --}}

Store Active

Toggle to enable/disable your public store

{{-- Order options --}}
@foreach([ ['name'=>'allow_orders','label'=>'Accept Orders','checked'=>$settings->allow_orders ?? true], ['name'=>'show_prices','label'=>'Show Prices','checked'=>$settings->show_prices ?? true], ['name'=>'delivery_enabled','label'=>'Delivery','checked'=>$settings->delivery_enabled ?? true], ['name'=>'pickup_enabled','label'=>'Pickup','checked'=>$settings->pickup_enabled ?? true], ['name'=>'accept_cod','label'=>'Accept COD','checked'=>$settings->accept_cod ?? true], ['name'=>'accept_razorpay','label'=>'Accept Online Pay','checked'=>$settings->accept_razorpay ?? false], ['name'=>'auto_whatsapp','label'=>'WhatsApp Invoice','checked'=>$settings->auto_whatsapp ?? false], ['name'=>'auto_email','label'=>'Email Invoice','checked'=>$settings->auto_email ?? true], ] as $opt) @endforeach
{{-- Banner --}}
@if($settings->banner_image)
@endif

Recommended: 1200×400px, max 3MB

{{-- Right: Quick links + recent orders --}}
{{-- Quick actions --}} {{-- QR Code --}} @if($settings->is_enabled)

Store QR Code

QR Code

Scan to open your store

Download QR
@endif {{-- Recent orders --}}

Recent Orders

View all →
@forelse($recentOrders as $order)
{{ $order->order_number }}

{{ $order->customer_name }}

₹{{ number_format($order->total_amount, 0) }}

{{ ucfirst($order->status) }}
@empty
No orders yet
@endforelse
@endsection