@if(count($user->appointments) > 0)
# |
Time |
Date |
Service |
Type |
@php
$i=1;
@endphp
@foreach($user->appointments as $appointment)
@php
$startTime = \Carbon\Carbon::parse($appointment->time)->format('h:i A');
$endTime = \Carbon\Carbon::parse($appointment->time)->addMinutes(30)->format('h:i A');
@endphp
{{ $i++ }} |
{{ $startTime }} - {{ $endTime }} |
{{ \Carbon\Carbon::parse($appointment->date)->format('d M') }} |
{{ $appointment->service->title }} |
@if($appointment->status == 'completed')
Completed
|
@elseif($appointment->status == 'missed')
Missed
|
@else
Reserved
|
@endif
@endforeach
@else
You haven't booked any Appointments yet
@endif