@extends('layouts.app') @section('title', 'Dashboard — ' . config('app.name')) @section('header')

{{ __('Dashboard') }}

@endsection @section('content')
@php $initials = strtoupper(substr(auth()->user()->name, 0, 1)); @endphp {{-- Hero --}}
{{ $initials }}

Hi, {{ auth()->user()->name }} 👋

@if ($defaultAddress) 📍 Delivering to {{ $defaultAddress->label }} · {{ $defaultAddress->city }} @else Find verified help near you, matched to your locality. @endif

{{-- Stats --}}
{{ $stats['total'] }}
Total bookings
{{ $stats['active'] }}
Active
{{ $stats['completed'] }}
Completed
{{-- Quick links --}}
{{-- Categories --}}

Browse by category

@foreach ($categories as $category) @endforeach
{{-- Recent bookings --}}

Recent bookings @if ($recentBookings->isNotEmpty()) View all @endif

@forelse ($recentBookings as $booking)

{{ $booking->service->name }}

{{ $booking->providerProfile->user->name }} · {{ $booking->scheduled_at->format('d M, H:i') }}

{{ str_replace('_', ' ', $booking->status) }}
@empty

No bookings yet — browse a category above to get started.

@endforelse
@endsection