{{ $restricted ? 'My work queue' : 'Activities' }}
@php $total = max($kpis['total'], 1); $pct = fn ($n) => round($n * 100 / $total, 1); @endphp
{{-- Status split meter (labelled — identity never by colour alone) --}}
Not started · {{ number_format($kpis['not_started']) }} ({{ $pct($kpis['not_started']) }}%) In progress · {{ number_format($kpis['in_progress']) }} ({{ $pct($kpis['in_progress']) }}%) Completed · {{ number_format($kpis['completed']) }} ({{ $pct($kpis['completed']) }}%)
@if (count($locations))
@else @endif
@if (count($perUser))
@foreach ($perUser as $u) @endforeach
Caller Calls Not started In progress Completed Interested Total
{{ $u['name'] }} @if ($u['calls']){{ number_format($u['calls']) }}@else0@endif {{ number_format($u['not_started']) }} {{ number_format($u['in_progress']) }} {{ number_format($u['completed']) }} {{ number_format($u['interested']) }} {{ number_format($u['total']) }}
@else @endif
@if (count($remarks))
    @php($maxRemark = max(array_column($remarks, 'records'))) @foreach ($remarks as $r)
  • {{ $r['label'] }} {{ number_format($r['records']) }}
  • @endforeach
@else @endif
@push('scripts') @endpush