@foreach ([
[trans('doctor.schedule.date'), $booking->scheduled_at->format('Y-m-d h:i A'), 'ltr'],
[trans('doctor.schedule.type'), trans('doctor.schedule.types.' . $booking->type), 'auto'],
[trans('doctor.schedule.branch'), $booking->branch?->name, 'auto'],
[trans('doctor.visits.clinic'), $booking->clinicProfile?->name, 'auto'],
[trans('doctor.visits.duration'), $booking->duration_minutes ? trans('doctor.visits.minutes', ['count' => $booking->duration_minutes]) : null, 'auto'],
[trans('doctor.visits.price'), number_format((float) $booking->price, 2), 'ltr'],
[trans('doctor.visits.payment'), $booking->payment?->status === 'paid' ? trans('doctor.visits.paid_online') : (in_array($booking->status, ['confirmed', 'completed'], true) ? trans('doctor.visits.paid') : trans('doctor.visits.unpaid')), 'auto'],
[trans('doctor.visits.my_share'), $booking->doctor_share_amount !== null ? number_format((float) $booking->doctor_share_amount, 2) : null, 'ltr'],
] as [$label, $value, $dir])
{{ $label }}
{{ $value ?: $na }}
@endforeach
@if ($booking->status === 'cancelled')
{{ trans('doctor.visits.cancelled_on', ['date' => $booking->cancelled_at?->format('Y-m-d H:i')]) }}
@if ($booking->cancel_reason)
{{ $booking->cancel_reason }}
@endif
@endif
@if ($booking->rescheduledFrom)
{{ trans('doctor.visits.rescheduled_from', ['date' => $booking->rescheduledFrom->scheduled_at?->format('Y-m-d H:i')]) }}
@endif
@if ($booking->followupSource)
{{ trans('doctor.visits.is_followup_of', ['date' => $booking->followupSource->booking?->scheduled_at?->format('Y-m-d')]) }}
@endif
@if ($booking->followup)
{{ trans('clinic.followups.title') }}:
{{ trans('clinic.followups.statuses.' . $booking->followup->status) }}
@if ($booking->followup->due_date) ·
{{ $booking->followup->due_date->format('Y-m-d') }}@endif
@if ($booking->followup->doctor_note)
{{ $booking->followup->doctor_note }}
@endif
@endif
@if ($booking->review)
{{ trans('doctor.visits.patient_review') }}
@for ($i = 1; $i <= 5; $i++)@endfor
@if ($booking->review->doctor_comment)
{{ $booking->review->doctor_comment }}
@endif
@endif