@extends('layouts.app') @section('title', 'Doctor Dashboard') @section('content')
Total Appointments
Cancelled Appointments
Total Patients
Appoinment Id: {{ $appointment->appointment_id }}
{{ $appointment->appointment_date }}
@php $slots = json_decode($appointment->appointment_slot_time, true); @endphp @if(!empty($slots))
No slots available
@endif{{ $appointment->specialization }}
{{ $appointment->appointment_status }}
No appointment available
@endifCompleted Appointments: {{ $totalCompleted }}
Cancelled Appointments: {{ $totalCancelled }}
| Appointment ID | Patient | Doctor | Specialization | Appointment Date | Appointment Time (Slot) | Consultation Fees | Appointment Type | Reason | Status | Action |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $item->appointment_id }} | {{ $item->patient->name ?? 'N/A' }} | {{ $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 }} Read More |
{{-- 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 |