@if(auth()->user()->isNurse() && $pendingVisitsForNurse->count() > 0)

Patients Waiting for Vitals

{{ $pendingVisitsForNurse->count() }}
@if($pendingVisitsForNurse->count() > 5) +{{ $pendingVisitsForNurse->count() - 5 }} more → @endif
@endif @if(auth()->user()->isDoctor() && $pendingVisitsForDoctor->count() > 0)

Patients Waiting for Consultation

{{ $pendingVisitsForDoctor->count() }}
@if($pendingVisitsForDoctor->count() > 5) +{{ $pendingVisitsForDoctor->count() - 5 }} more → @endif
@endif @if(!auth()->user()->isNurse() && !auth()->user()->isDoctor() && $pendingBills->count() > 0)

Pending Bills

{{ $pendingBills->count() }}
@foreach($pendingBills->take(3) as $bill)

{{ ucwords(strtolower($bill->patient->full_name)) }}

{{ $bill->bill_number }}

{{ config('app.currency_symbol') }}{{ number_format($bill->total_amount, 2) }}
@endforeach
@if($pendingBills->count() > 3) +{{ $pendingBills->count() - 3 }} more → @endif
@endif @if(!auth()->user()->isNurse() && !auth()->user()->isDoctor() && $pendingAppointments->count() > 0)

Appointments to Confirm

{{ $pendingAppointments->count() }}
@foreach($pendingAppointments as $appointment)

{{ ucwords(strtolower($appointment->patient_name)) }}

{{ $appointment->appointment_date->format('M d') }} at {{ \Carbon\Carbon::parse($appointment->appointment_time)->format('h:i A') }}

@endforeach
@endif @if($totalPending === 0 && $pendingAppointments->count() === 0 && $pendingVisitsForNurse->count() === 0 && $pendingVisitsForDoctor->count() === 0)

All caught up!

No pending tasks at this time.

@endif