HoReCa Operations Dashboard Snapshot

Period: {{ $startDate }} to {{ $endDate }} | Generated: {{ now()->format('Y-m-d H:i') }}

Outlets Visited
{{ $kpis['outlets_visited_today']['value'] }}
{{ $kpis['outlets_visited_today']['trend'] >= 0 ? '+' : '' }}{{ $kpis['outlets_visited_today']['trend'] }}% vs prev period
Workflows Completed
{{ $kpis['workflows_completed_today']['value'] }}
{{ $kpis['workflows_completed_today']['rate'] }}% Completion Rate
Pending Service Requests
{{ $kpis['pending_service_requests']['value'] }}
Requires Attention
Overdue Audits
{{ $kpis['overdue_audits'] }}
Critical Compliance

Visit Coverage Summary

@php $labels = $charts['visit_coverage']['labels'] ?? []; @endphp @foreach($labels as $index => $label) @endforeach
Date / Label Assigned Visited % Coverage
{{ $label }} {{ $charts['visit_coverage']['assigned'][$index] ?? 0 }} {{ $charts['visit_coverage']['visited'][$index] ?? 0 }} @php $assigned = $charts['visit_coverage']['assigned'][$index] ?? 0; $visited = $charts['visit_coverage']['visited'][$index] ?? 0; $perc = $assigned > 0 ? round(($visited / $assigned) * 100) : 0; @endphp {{ $perc }}%

Service Request Status

@php $srData = $charts['sr_status']; $totalSR = ($srData['open'] ?? 0) + ($srData['in_progress'] ?? 0) + ($srData['resolved'] ?? 0) + ($srData['closed'] ?? 0); @endphp
Status Count Distribution
Open {{ $srData['open'] ?? 0 }} {{ $totalSR > 0 ? round(($srData['open'] / $totalSR) * 100) : 0 }}%
In Progress {{ $srData['in_progress'] ?? 0 }} {{ $totalSR > 0 ? round(($srData['in_progress'] / $totalSR) * 100) : 0 }}%
Resolved {{ $srData['resolved'] ?? 0 }} {{ $totalSR > 0 ? round(($srData['resolved'] / $totalSR) * 100) : 0 }}%
Closed {{ $srData['closed'] ?? 0 }} {{ $totalSR > 0 ? round(($srData['closed'] / $totalSR) * 100) : 0 }}%

Workflow Completion Trend

@foreach($charts['workflow_trend']['labels'] as $label) @endforeach @foreach($charts['workflow_trend']['data'] as $value) @endforeach
{{ $label }}
{{ $value }}

Brand Availability Snapshot

@foreach($charts['brand_availability']['labels'] as $index => $brand) @endforeach
Brand Name Availability % Status
{{ $brand }} {{ $charts['brand_availability']['data'][$index] }}% @php $v = $charts['brand_availability']['data'][$index]; @endphp {{ $v > 90 ? 'Excellent' : ($v > 70 ? 'Warning' : 'Critical') }}

Critical Red Flags (Action Required)

Category Count Priority
Overdue POSM Audits {{ $redFlags['overdue_audits'] }} Critical
SLA Breached SRs {{ $redFlags['sla_breached'] }} High
Unvisited Outlets (> 30 Days) {{ $redFlags['unvisited_outlets'] }} Medium
Must-Have Stockouts {{ $redFlags['must_have_stockouts'] }} Warning
High Priority SRs {{ $redFlags['high_priority_srs'] }} Critical