@if($appointments->count() > 0)
@foreach($appointments as $appointment) @endforeach
Client Artist Date & Time Status Actions
{{ $appointment->client ? substr($appointment->client->name, 0, 1) : 'N' }}
{{ $appointment->client->name ?? 'N/A' }}
@if($appointment->client && $appointment->client->email)
{{ $appointment->client->email }}
@endif
{{ $appointment->user->name ?? 'N/A' }}
{{ $appointment->scheduled_at->format('M j, Y') }}
{{ $appointment->scheduled_at->format('g:i A') }}
@if($appointment->status === 'completed') Completed @elseif($appointment->status === 'cancelled') Cancelled @else {{ ucfirst($appointment->status ?? 'Scheduled') }} @endif
View
@if($appointments->hasPages())
{{ $appointments->links() }}
@endif
@else

No appointments found

There are no appointments matching your current filters.

@endif