@extends('layouts.main') @section('content')
@if ($showProfileIncompleteAlert)
Profile Incomplete!
Please complete your profile first.
Complete Profile
@endif
{{ $user->trade_name ?? 'Corporate' }} Dashboard
Welcome back, {{ $user->first_name }}
Name
{{ $user->first_name }} {{ $user->last_name }}
Email
{{ $user->email }}
Phone
+91 {{ $user->phone_number }}
Country
{{ $user->country }}
Joined
{{ \Carbon\Carbon::parse($user->created_at)->format('d M Y') }}
Status
Active
@php $cards = [ [ 'title' => 'Booking Total', 'value' => $total_bookings_data, 'icon' => 'bi-grid', 'color' => 'primary', 'filter' => 'all', ], [ 'title' => 'Booking Completed', 'value' => $completed_bookings, 'icon' => 'bi-check-circle', 'color' => 'success', 'filter' => 'completed', ], [ 'title' => 'Booking Pending', 'value' => $upcoming_bookings, 'icon' => 'bi-clock', 'color' => 'warning', 'filter' => 'upcoming', ], [ 'title' => 'Booking Cancelled', 'value' => $cancelled_bookings, 'icon' => 'bi-x-circle', 'color' => 'danger', 'filter' => 'cancelled', ], ]; @endphp @foreach ($cards as $card)
{{ $card['value'] }}
{{ $card['title'] }}
@endforeach
📋 Recent Booking Activity
@forelse($bookings_data->take(3) as $booking) @empty @endforelse
User Appointment Date Status
{{ strtoupper(substr($booking->user->first_name ?? 'P', 0, 1)) }}
{{ $booking->user->first_name ?? 'Unknown User' }}
User
{{ \Carbon\Carbon::parse($booking->appointment_date)->format('d M Y') }}
{{ \Carbon\Carbon::parse($booking->appointment_date)->format('l') }}
@csrf @php $user_role = auth()->user(); $isRestricted = $user_role->hasRole('user'); @endphp
No Bookings Found

No patient appointments available.

@endsection