@extends('layouts.portal') @section('title', __('appointments.appointment_details') . ' — ' . config('app.name')) @section('page_title', $appointment->patient_name) @section('page_subtitle', $appointment->consultation_topic) @section('page_actions') {{ __('common.back') }} @endsection @section('content')

{{ __('appointments.appointment_details') }}

{{ __('appointments.patient_name') }}

{{ $appointment->patient_name }}

{{ __('appointments.phone') }}

{{ $appointment->phone }}

{{ __('appointments.gender') }}

{{ __('common.' . $appointment->gender) }}

{{ __('appointments.date_of_birth') }}

{{ $appointment->date_of_birth->format('M d, Y') }} ({{ $appointment->age }})

@if ($appointment->weight_kg)

{{ __('appointments.weight_kg') }}

{{ $appointment->weight_kg }} {{ __('common.kg') }}

@endif @if ($appointment->height_cm)

{{ __('appointments.height_cm') }}

{{ $appointment->height_cm }} {{ __('common.cm') }}

@endif @if ($appointment->address)

{{ __('appointments.address') }}

{{ $appointment->address }}

@endif

{{ __('appointments.consultation_topic') }}

{{ $appointment->consultation_topic }}

{{ $appointment->appointment_date->format('M d') }}

{{ \Carbon\Carbon::parse($appointment->appointment_time)->format('h:i A') }}


@if (in_array($appointment->status, ['cancelled', 'completed']))
{{ __('appointments.appointment_locked') }}
@php $tone = $appointment->status === 'completed' ? 'bg-emerald-100 text-emerald-800' : 'bg-red-100 text-red-700'; @endphp {{ __('appointments.statuses.' . $appointment->status) }}
@if ($appointment->status === 'cancelled' && $appointment->cancellation_reason)

{{ __('appointments.cancellation_reason') }}

{{ $appointment->cancellation_reason }}

@endif @else
@csrf @method('PATCH')
@error('status')

{{ $message }}

@enderror
@error('notes')

{{ $message }}

@enderror
@endif
@if (!in_array($appointment->status, ['cancelled', 'completed']))
@csrf @method('DELETE')
@endif
@endsection @push('scripts') @endpush