@extends('layouts/contentNavbarLayout') @section('title', 'Appointments Management') @section('content')
Manage and monitor all appointments
| Appointment # | Date & Time | Coach | Employee | Speciality | Status | Payment | Price | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $appointment->appointment_number }} |
{{ $appointment->appointment_date ? $appointment->appointment_date->format('M d, Y') : 'N/A' }}
{{ $appointment->time_start ? date('h:i A', strtotime($appointment->time_start)) : 'N/A' }}
@if($appointment->time_end)
- {{ date('h:i A', strtotime($appointment->time_end)) }}
@endif
|
@if($appointment->coach)
{{ $appointment->coach->name }}
{{ $appointment->coach->email }}
@else
N/A
@endif
|
@if($appointment->employee)
{{ $appointment->employee->name }}
{{ $appointment->employee->email }}
@else
N/A
@endif
|
{{ $appointment->speciality ? ($appointment->speciality->name_ar ?? $appointment->speciality->name_en) : 'N/A' }} | {{ ucfirst(str_replace('_', ' ', $appointment->status)) }} | @if($appointment->payment_status == 1) Paid @else Pending @endif |
{{ number_format($appointment->final_price ?? 0, 2) }} SAR
@if($appointment->discount > 0)
Discount: {{ number_format($appointment->discount, 2) }}
@endif
|