Customer Reports

Showing metrics for your company: {{ $company ?: 'Not configured' }}

@if(!$company)
Your user profile does not have a configured company. Please ask an administrator to set your user company and sector.
@elseif(!$latest_yearmonth)
No metrics found yet for {{ $company }}.
@endif
@if($company && $latest_yearmonth)
Company

{{ $company }}

Reporting Month

{{ $latest_yearmonth }}

Selected Tab

{{ ucfirst(str_replace('_', ' ', $active_tab)) }}

{{ ucfirst(str_replace('_', ' ', $active_tab)) }} Metrics
@php $tab = $active_tab ?? 'overall'; $rows = $rows_by_tab[$tab] ?? []; $months = $month_keys ?? []; $monthLabels = $month_labels ?? []; @endphp @if($tab === 'access') @php // expose variables the manager detailed-report partials expect $calls = $access_report['calls'] ?? []; $allCalls = $access_report['allCalls'] ?? collect(); $sections = $access_report['sections'] ?? []; $final = $access_report['final'] ?? null; $assignment = $access_report['assignment'] ?? null; $assignment_id = $access_report['assignment_id'] ?? ($assignment->id ?? null); @endphp @include('manager.detailed_report.summary') @include('manager.detailed_report.controls') @include('manager.detailed_report.overall_access') @include('manager.detailed_report.search') @include('manager.detailed_report.design') @include('manager.detailed_report.ease') @include('manager.detailed_report.audio') @include('manager.detailed_report.timing') @include('manager.detailed_report.deductions') @include('manager.detailed_report.timestamps') @include('manager.detailed_report.additional_insight') @include('manager.detailed_report.overall_timestamps') @elseif($tab === 'agent_mastery') @include('admin.customer-report-agent-mastery', ['quality_report' => $quality_report, 'company' => $company]) @elseif(empty($rows))
No metrics available for this tab.
@else
@foreach($monthLabels as $label) @endforeach @foreach($rows as $row) @foreach($months as $m) @endforeach @endforeach
Metric Lifetime{{ $label }}CHANGE
{{ $row['label'] }} {{ $row['lifetime'] }}{{ $row['values'][$m] ?? '-' }}{{ $row['change'] ?? '-' }}
@if($tab === 'overall')
@foreach($rows as $row)
{{ $row['label'] }}
@endforeach
@endif @endif
@endif