@extends('layouts.main') @section('content')
IM HAPPY Dashboard
Healthy Life Management System
Bookings

{{ $bookings ?? 0 }}

Reports

{{ $reportsCount ?? 0 }}

Corporate Clients

{{ $corporatecilent ?? 0 }}

Today's Appointments

Manage and monitor today's scheduled consultations

{{ $bookings_data->total() }} Appointments
@forelse($bookings_data as $value) @empty @endforelse
User Consultant Appointment Time Status
{{ strtoupper(substr($value->user->first_name ?? 'U', 0, 1)) }}
{{ $value->user->first_name ?? 'N/A' }} {{ $value->user->last_name ?? 'N/A' }}
{{ $value->user->email ?? 'No Email' }}
{{ $value->counsellor->first_name ?? 'N/A' }} {{ $value->counsellor->last_name ?? 'N/A' }}
Consultant
{{ \Carbon\Carbon::parse($value->start_time)->format('h:i A') }}
@csrf @php $user_role = auth()->user(); $isRestricted = $user_role->hasRole('user'); $statusClass = match ($value->status) { 'pending' => 'status-pending', 'upcoming' => 'status-upcoming', 'completed' => 'status-completed', 'cancelled' => 'status-cancelled', default => 'status-default', }; @endphp
No Appointment
No Appointments Today

There are currently no scheduled appointments for today.

@if ($bookings_data->hasPages()) @endif
{{--
Consultant Reviews

4.8

326 Reviews

Rahul Patel

Excellent consultation and friendly behavior.

Priya Sharma

Very helpful staff and smooth experience.

--}}
Top Consultant
@forelse($top_three_consultants as $index => $c) @php $img = $c->profile_image ? asset('clinic/' . $c->profile_image) : asset('user.png'); @endphp
{{-- #{{ $index+1 }} --}} {{ $c->first_name }} {{ $c->last_name }}
{{ $c->first_name }} {{ $c->last_name }}
{{ $c->specialization ?? 'Consultant' }}
@empty
No Consultants
@endforelse
Booking Summary
Total {{ $bookings ?? 0 }}
Completed {{ $completedBookings ?? 0 }}
Cancelled {{ $cancelledBookings ?? 0 }}
Success Rate
{{ $successRate ?? 0 }}%
@endsection