Consultation::pending()->count(),
'pendingBookings' => Consultation::pending()
->with('user:id,full_name')
->latest()
->take(5)
->get(),
];
}
}; ?>
{{ __('widgets.pending_bookings') }}
@if ($pendingCount > 0)
{{ $pendingCount > 99 ? '99+' : $pendingCount }}
@endif
@forelse ($pendingBookings as $booking)
{{ $booking->user?->full_name ?? __('widgets.unknown_client') }}
{{ $booking->booking_date->translatedFormat('M j') }}
{{ $booking->consultation_type->label() }}
@empty
{{ __('widgets.no_pending_bookings') }}
@endforelse
@if ($pendingCount > 5)
{{ __('widgets.view_all_pending', ['count' => $pendingCount]) }}
@endif