@vite(['resources/css/app.css', 'resources/js/app.js']) {{-- ─── Sidebar ─────────────────────────────────────────────── --}} {{-- ─── Main Content ─────────────────────────────────────────── --}}
{{-- Topbar --}}
@if(auth()->user()->is_admin) Admin Dashboard @else My Dashboard @endif
Logged in as {{ auth()->user()->name }} @if(auth()->user()->is_admin) Admin @endif
{{-- Flash --}} @if(session('success')) @endif {{-- ── Admin-only: CSV Price Update ── --}} @if(auth()->user()->is_admin)

Update Base Prices

Upload a CSV file with columns: SKU, Price

@csrf
@endif {{-- ── Admin-only: CSV Articles Update ── --}} @if(auth()->user()->is_admin)

Upload Blog Articles

Upload a CSV file with columns: id, title, slug, meta_description, excerpt, content, date, feature_image

@csrf
{{-- ── Admin-only: CSV Service Areas Update ── --}}

Upload Service Areas

Upload a CSV file with columns: ID, title, slug, meta desc, excerpt, content, city name, feature URL

@csrf
{{-- ── Admin-only: Store Global Settings ── --}}

Global Store Pricing Settings

@csrf
%
$
$
@endif {{-- ── Stats (admin only) ── --}} @if(auth()->user()->is_admin) @php $allOrders = \App\Models\Order::selectRaw('status, count(*) as cnt')->groupBy('status')->pluck('cnt','status'); $totalOrders = \App\Models\Order::count(); @endphp
{{ $totalOrders }}
Total Quotes
{{ $allOrders->get('paid',0) + $allOrders->get('shipped',0) + $allOrders->get('in_production',0) + $allOrders->get('ready_for_shipping',0) }}
Paid Orders
{{ $allOrders->get('in_production',0) }}
In Production
{{ $allOrders->get('shipped',0) }}
Shipped
@endif {{-- ── Orders Table ── --}}

@if(auth()->user()->is_admin) All Quotes & Orders @else My Quotes & Orders @endif

+ New Estimate
@if(auth()->user()->is_admin)@endif @if(auth()->user()->is_admin)@endif @forelse($orders as $order) @php $cfg = $order->configuration ?? []; @endphp @if(auth()->user()->is_admin) @endif @if(auth()->user()->is_admin) @endif @empty @endforelse
Quote #CustomerConfiguration Total StatusTrackingDate Actions
{{ $order->quote_number ?? '—' }}
{{ $order->order_number }}
{{ $order->user?->name ?? trim(($order->billing_first_name ?? '') . ' ' . ($order->billing_last_name ?? '')) }}
{{ $order->customer_email }}
{{ $cfg['stalls_count'] ?? 1 }} stall(s)
{{ $cfg['color'] ?? 'N/A' }}
${{ number_format($order->total_amount, 2) }} {{ $order->status_label }} @if($order->admin_note)
📌 {{ $order->admin_note }}
@endif
@if($order->tracking_number) {{ $order->tracking_number }} @else @endif {{ $order->created_at->format('M d, Y') }}
@if(auth()->user()->is_admin) No quotes or orders yet. @else You haven't saved any estimates yet. Start now → @endif
@if($orders->hasPages())
{{ $orders->links() }}
@endif
{{-- /db-content --}}
{{-- /db-main --}} {{-- ─── Admin Edit Modal ─────────────────────────────────────── --}} @if(auth()->user()->is_admin) @endif