@extends('layouts.main') @section('content')

User Dashboard

Welcome back to your personalized healthcare portal

{{ now()->format('d M Y') }}
Personal Information

{{ $user->first_name }} {{ $user->last_name }}

{{ $user->email }}

{{ $user->phone_number ?? '-' }}

{{ $user->country ?? '-' }}

{{ ucfirst($user->status) }}
Total Bookings

{{ $total_bookings_data }}

Completed

{{ $completed_bookings }}

Upcoming

{{ $upcoming_bookings }}

Cancelled

{{ $cancelled_bookings }}

📋 Upcoming Appointments
@forelse($bookings_data as $booking) @empty @endforelse
User Appointment Date Status
{{ strtoupper(substr($booking->user->first_name ?? 'U', 0, 1)) }}
{{ $booking->user->first_name ?? 'N/A' }}
Booking User
{{ \Carbon\Carbon::parse($booking->appointment_date)->format('d M Y') }}
@csrf @php $user = auth()->user(); $isRestricted = $user->hasRole('user'); @endphp
No Bookings Found

No recent booking records available.

@endsection