@extends('admin.layouts.app') @section('title', $appointment->reference) @section('page-title', __('admin.menu.appointments').' — '.$appointment->reference) @section('page-actions') {{ __('admin.actions.back') }} @endsection @section('content')
{{ __('admin.fields.patient_name') }}: {{ $appointment->patient_name }}
@include('admin.partials.detail-row', ['label' => __('admin.fields.customer'), 'value' => $appointment->user?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.patient_phone'), 'value' => $appointment->patient_phone]) @include('admin.partials.detail-row', ['label' => __('admin.fields.patient_age'), 'value' => $appointment->patient_age]) @include('admin.partials.detail-row', ['label' => __('admin.fields.gender'), 'value' => $appointment->gender ? __('statuses.gender.'.$appointment->gender) : null]) @include('admin.partials.detail-row', ['label' => __('admin.fields.clinic'), 'value' => $appointment->clinic?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.doctor'), 'value' => $appointment->doctor?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.specialty'), 'value' => $appointment->doctor?->specialty?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.service'), 'value' => $appointment->service?->name]) @include('admin.partials.detail-row', ['label' => __('admin.fields.appointment_date'), 'value' => $appointment->appointment_date?->toDateString()]) @include('admin.partials.detail-row', ['label' => __('admin.fields.appointment_time'), 'value' => substr((string) $appointment->appointment_time, 0, 5)]) @include('admin.partials.detail-row', ['label' => __('admin.fields.fee'), 'value' => number_format((float) $appointment->fee, 2).' '.$appointment->currency]) @include('admin.partials.detail-row', ['label' => __('admin.fields.payment_status'), 'value' => __('statuses.payment.'.$appointment->payment_status)]) @if ($appointment->notes)
{{ __('admin.fields.notes') }}
{{ $appointment->notes }}
@endif @if ($appointment->cancel_reason)
{{ __('statuses.appointment.cancelled') }}
{{ $appointment->cancel_reason }}
@endif
@include('admin.partials.status-panel', [ 'action' => route('admin.appointments.update', $appointment), 'record' => $appointment, 'statuses' => $statuses, 'showPayment' => true, 'showCancelReason' => true, ])
@endsection