IP PERFORMANCE RANKING
1ST TO 4TH AVERAGE DAYS
@php $drilldown = $ipPerformance['drilldown'] ?? []; $ddTotal = (int) ($drilldown['total'] ?? 0); $ddPerPage = (int) ($drilldown['per_page'] ?? 25); $ddCurrentPage = (int) ($drilldown['current_page'] ?? 1); $ddLastPage = (int) ($drilldown['last_page'] ?? 1); $ddFrom = (int) ($drilldown['from'] ?? 0); $ddTo = (int) ($drilldown['to'] ?? 0); $debugSnapshot = $ipPerformance['debug'] ?? null; $debugEnabled = request()->boolean('debug'); $baseQuery = request()->except('page', 'ajax'); $pageUrl = fn(int $p) => url()->current() . '?' . http_build_query(array_merge($baseQuery, ['page' => $p])); @endphp @if(!empty($pageMessages ?? []))
| FILTER | SELECTED VALUES | ISOLATED MATCH | CUMULATIVE MATCH | SAMPLE (TOP 5) |
|---|---|---|---|---|
| {{ $filterKey }} | {{ implode(', ', $row['selected_values'] ?? []) ?: '-' }} | {{ number_format((int) ($row['isolated_match_count'] ?? 0)) }} | {{ number_format((int) ($row['cumulative_match_count'] ?? 0)) }} |
@if(!empty($row['sample_rows']))
View 5 rows
@foreach($row['sample_rows'] as $sample)
{{ $sample['beneficiary_name'] }} ({{ $sample['beneficiary_cnic'] }})
IP: {{ $sample['ip'] }} | District/Tehsil: {{ $sample['district'] }} / {{ $sample['tehsil'] }}
Bank/Branch: {{ $sample['bank_name'] }} / {{ $sample['branch_name'] }}
Stage: {{ $sample['pending_stage'] }} | Ageing: {{ number_format((float) ($sample['ageing_days'] ?? 0), 1) }} | Alarm: {{ strtoupper($sample['alarm_level'] ?? '-') }}
UUID: {{ $sample['uuid'] }} | Slot: {{ $sample['time_slot'] }}
|
1ST TO 4TH AVERAGE DAYS
| IP | AVG DAYS | DELAYED % | RED ALARM CASES | WITHDRAWAL EFFICIENCY | RANK |
|---|---|---|---|---|---|
| {{ $row['ip'] }} | {{ number_format((float) $row['avg_days'], 1) }} | {{ number_format((float) $row['delayed_pct'], 1) }}% | {{ number_format((int) $row['red_alarm_cases']) }} | {{ number_format((float) $row['withdrawal_efficiency'], 1) }}% | {{ str_pad((string) $row['rank'], 2, '0', STR_PAD_LEFT) }} |
| No IP ranking data found for selected filters. | |||||
| BENEFICIARY/CNIC | IP | DISTRICT | TEHSIL | PENDING STAGE | AGEING DAYS | ALARM |
|---|---|---|---|---|---|---|
| {{ $row['beneficiary_name'] }} {{ $row['beneficiary_cnic'] }} |
{{ $row['ip'] }} | {{ $row['district'] }} | {{ $row['tehsil'] }} | {{ $row['pending_stage'] }} | {{ (int) $row['ageing_days'] }} | |
| No exception rows found for selected filters. | ||||||