Performance by DRP

Track performance metrics, activity levels, and operational output by branch DRP

{{ $filtered_branches->count() }} branches
@foreach ($filtered_branches as $key => $branch) @php $drp = $branch->drp; $tickets = $drp->tickets; $totalTickets = $tickets->count(); $openTickets = $tickets->where('status', 'open')->count(); $completedDrives = $tickets ->filter(fn ($ticket) => optional($ticket->pipelineStage)->name === 'Post Blood Drive Review') ->count(); $upcomingDrives = $tickets ->filter(fn ($ticket) => in_array(optional($ticket->pipelineStage)->name, ['Planning', 'Blood Drive Day'])) ->count(); $notEscalated = $tickets->where('escalated', 0)->count(); $conversionRate = $totalTickets ? round(($completedDrives / $totalTickets) * 100, 1) : 0; $slaRate = $totalTickets ? round(($notEscalated / $totalTickets) * 100, 1) : 0; @endphp @endforeach
# Branch DRP Open Tickets Conv. % SLA % Upcoming Drives Completed Drives
{{ $key + 1 }}

{{ $branch->name }}

{{ $branch->code }}

{{ $drp->name }} {{ $drp->surname }} {{ $openTickets }} {{ $conversionRate }}% {{ $slaRate }}% {{ $upcomingDrives }}
{{ $completedDrives }}

Upcoming Blood Drives

View Calendar
@forelse ($upcoming_drives as $drive)
{{ \Carbon\Carbon::parse($drive->start_time)->format('M') }}
{{ \Carbon\Carbon::parse($drive->start_time)->format('d') }}
{{ Str::limit($drive->event_location, 40) }}
09:00 AM - 05:00 PM
{{ $drive->ticket->additionalAttr()->firstWhere('field_name', 'Number Of Potential Donors')?->value ?? 'N/A' }}: Expected Donors
@if (\Carbon\Carbon::parse($drive->start_time)->isTomorrow()) Tomorrow @else @php $days = round(now()->diffInDays(\Carbon\Carbon::parse($drive->start_time))); @endphp In {{ $days }} Days @endif
@empty

No Upcoming Blood Drives

There are no blood drives scheduled at this time. Check back soon or view the calendar for future events.

View Calendar
@endforelse