@extends('layouts/contentNavbarLayout') @section('title', 'Appointment Details') @section('content')
Appointment #{{ $appointment->appointment_number }}
{{ $appointment->appointment_number }}
@php $statusColors = [ 'booked' => 'primary', 'confirmed' => 'info', 'in_progress' => 'warning', 'completed' => 'success', 'not_attended' => 'dark', 'rescheduled' => 'secondary', 'cancelled' => 'danger' ]; $statusColor = $statusColors[$appointment->status] ?? 'secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $appointment->status)) }}
{{ $appointment->appointment_date ? $appointment->appointment_date->format('l, F d, Y') : 'N/A' }}
@if($appointment->time_start && $appointment->time_end) {{ date('h:i A', strtotime($appointment->time_start)) }} - {{ date('h:i A', strtotime($appointment->time_end)) }} @elseif($appointment->time_start) {{ date('h:i A', strtotime($appointment->time_start)) }} @else N/A @endif
@if($appointment->payment_status == 1) Paid @else Pending @endif
{{ $appointment->payment_type ?? 'N/A' }}
{{ ucfirst($appointment->cancelled_by ?? 'N/A') }}
{{ $appointment->cancelled_at ? $appointment->cancelled_at->format('M d, Y h:i A') : 'N/A' }}
{{ $appointment->cancellation_reason }}
{{ $appointment->coach->name }}
{{ $appointment->coach->email }}
@if($appointment->coach->phone){{ $appointment->coach->phone }}
@endif @elseN/A
@endif{{ $appointment->employee->name }}
{{ $appointment->employee->email }}
@if($appointment->employee->phone){{ $appointment->employee->phone }}
@endif @elseN/A
@endif{{ $appointment->speciality->name_ar ?? $appointment->speciality->name_en }}
{{ $appointment->call_started_at ? $appointment->call_started_at->format('M d, Y h:i A') : 'N/A' }}
{{ $appointment->call_ended_at ? $appointment->call_ended_at->format('M d, Y h:i A') : 'N/A' }}
{{ gmdate('H:i:s', $appointment->call_duration) }}
@if($appointment->coach_joined) Yes @else No @endif
@if($appointment->employee_joined) Yes @else No @endif
{{ $review->comment }}
@endif{{ number_format($appointment->price ?? 0, 2) }} SAR
-{{ number_format($appointment->discount, 2) }} SAR
{{ number_format($appointment->commission, 2) }} SAR
{{ number_format($appointment->final_price ?? 0, 2) }} SAR
{{ number_format($appointment->required_points) }} points
{{ $appointment->promo_code }}
{{ $appointment->voucher->code ?? 'N/A' }}
{{ $appointment->created_at->format('M d, Y h:i A') }}
{{ $appointment->updated_at->format('M d, Y h:i A') }}
Sent
Appointment #{{ $appointment->rescheduled_from }}