@extends('layouts.portal') @section('title', __('appointments.title') . ' — ' . config('app.name')) @section('page_title', __('appointments.title')) @section('page_subtitle', number_format($appointments->total()) . ' · ' . __('appointments.title')) @section('page_actions') {{ __('appointments.new') }} @endsection @section('content')
| {{ __('appointments.patient_name') }} | {{ __('appointments.phone') }} | {{ __('appointments.appointment_date') }} | {{ __('appointments.appointment_time') }} | {{ __('appointments.consultation_topic') }} | {{ __('common.status') }} | |
|---|---|---|---|---|---|---|
| {{ $appointment->patient_name }} | {{ $appointment->phone }} | {{ $appointment->appointment_date->format('M d, Y') }} | {{ \Carbon\Carbon::parse($appointment->appointment_time)->format('h:i A') }} | {{ $appointment->consultation_topic }} | @php $tone = match ($appointment->status) { 'confirmed' => 'bg-brand-100 text-brand-800', 'completed' => 'bg-emerald-100 text-emerald-800', 'cancelled' => 'bg-red-100 text-red-700', default => 'bg-amber-100 text-amber-800', }; @endphp {{ __('appointments.statuses.' . $appointment->status) }} | {{ __('appointments.view') }} |
| {{ __('appointments.empty') }} | ||||||