@extends('doctorpanel.layout.app') @section('title', 'Appointment Details | Waiting Room') @section('content')
{{ __('translations.No past appointments found for this patient with the same doctor.') }}
@else @foreach ($appointmentHistory as $history) @php // Set the badge class based on the appointment status $badgeClass = match ($history->status) { 'completed' => 'success', 'cancel' => 'danger', 'absent' => 'secondary', 'pending' => 'warning', 'in_progress' => 'light-info', default => 'secondary', // Fallback class for unexpected status }; @endphp{{ __('translations.No Patient Appointment History found.') }}
@else @foreach ($appointmentUserHistory as $uHistory) @php // Set the badge class based on the appointment status $badgeClass = match ($uHistory->status) { 'completed' => 'success', 'cancel' => 'danger', 'absent' => 'secondary', 'pending' => 'warning', 'in_progress' => 'light-info', default => 'secondary', // Fallback class for unexpected status }; @endphp