@extends('layouts.app') @section('title', 'Patient Dashboard') @section('content')
Total Appointments
Cancelled Appointments
My Doctors
Total Transactions
{{ $doctor->specialization }}
20 Apr 2025
25 Mar 2025
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 }} |
| 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') }} |
@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 |