@php use App\Models\Appointment; use App\Support\BusinessTimezone; @endphp
@foreach($activeAppointments as $key => $booking)
@php
/**
* @var Appointment $booking
*/
$serviceLabel = $booking->serviceNamesLabel();
@endphp
|
|
{{ BusinessTimezone::formatInstant($booking->created_at, 'd-M-Y h:i A') }}
{{ BusinessTimezone::toBusiness($booking->created_at)?->diffForHumans($booking->scheduledAt()) }}
|
{{ $booking->scheduledAt()->format('d M Y h:i A') }} |
{{ $booking->full_name ?? 'NA' }} |
{{ $booking->email ?? 'NA' }} |
{{ $serviceLabel !== '—' ? $serviceLabel : '—' }} |
@if($booking->is_paid === false && $booking->price > 0)
@else
@unless($booking->isApproved())
@else
Confirmed
@endunless
@endif
Invoice
|