@extends('layouts.app') @section('content')
{{ auth()->user()->name }}

{{ $professional->business_name }}

{{ auth()->user()->name }}

{{ $professional->rating }}

Welcome, {{ explode(' ', auth()->user()->name)[0] }}!

Manage your appointments and grow your business.

Today's Bookings

{{ count($todayBookings) }}

This Week

{{ $weeklyStats['total_bookings'] }}

Monthly Revenue

${{ number_format(collect($monthlyRevenue)->sum('revenue'), 2) }}

@if(count($todayBookings) > 0)

Today's Appointments

@foreach($todayBookings as $booking)

{{ $booking->client->user->name }}

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

🕐 {{ $booking->scheduled_at->format('g:i A') }} ({{ $booking->duration }} min)

{{ ucfirst($booking->status) }}
@endforeach
@endif

Upcoming Week

View all
@forelse($upcomingBookings as $booking)

{{ $booking->client->user->name }}

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

📅 {{ $booking->scheduled_at->format('M d') }} at {{ $booking->scheduled_at->format('g:i A') }}

${{ number_format($booking->amount, 2) }}
@empty

No upcoming bookings this week.

@endforelse
@endsection