@extends('layouts.app') @section('title', 'Patient Dashboard') @section('content')

Patient Dashboard

Total Appointments

{{ $totalAppointments }}

Cancelled Appointments

{{ $totalCancelledAppointments }}

My Doctors

{{ $totalDoctors }}

Total Transactions

₹ {{ $totalTransactions }}

My Doctors
@foreach($myDoctors as $doctor)
Doctor Profile
Dr. {{ $doctor->doctor_name }}

{{ $doctor->specialization }}

{{ $doctor->total_bookings }} Bookings
@endforeach
Prescriptions
Recent Transactions
@foreach($recentTransactions as $transaction) @endforeach
img
Dr. {{ $transaction->doctor_name }}

{{ $transaction->specialization }}

Consultation Fees

${{ number_format($transaction->appointment_fee, 2) }}

@php $badgeClass = $transaction->appointment_status === 'completed' ? 'success' : 'danger'; $statusText = ucfirst(str_replace('_', ' ', $transaction->appointment_status)); @endphp {{ $statusText }}
Recent Appointments
@foreach ($appointments as $item) @endforeach
Auto ID Appointment ID Doctor Specialization Appointment Date Appointment Time (Slot) Consultation Fees Appointment Type Reason Status
{{ $item->id }} {{ $item->appointment_id }} {{ $item->doctor->name ?? 'N/A' }} {{ $item->specialization }} {{ \Carbon\Carbon::parse($item->appointment_date)->isoFormat('D, MMMM YYYY') }}
    @foreach (json_decode($item->appointment_slot_time) as $slot)
  • {{ $slot }}

  • @endforeach
@if ($item->fee_type === 'in_person_fee') In-Person @elseif ($item->fee_type === 'video_fee') Video @else {{ ucfirst(str_replace('_', ' ', $item->fee_type)) }} @endif - ${{ $item->appointment_fee }} @if ($item->appointment_type === 'first_visit') First Visit @elseif ($item->appointment_type === 'follow_up') Follow Up @else {{ ucfirst($item->appointment_type) }} @endif {{ $item->reason }} {{-- Appointment Status --}} @if($item->appointment_status == 'completed') Completed @elseif($item->appointment_status == 'cancelled') Cancelled @else @if ($item->fee_type === 'in_person_fee') @elseif ($item->fee_type === 'video_fee') @endif {{ ucfirst($item->appointment_status) }} @endif
@endsection