@foreach([
['label' => 'Active conversations', 'value' => $metrics['active'], 'hint' => 'Open, in progress, or waiting for customer', 'icon' => 'ti-message-circle', 'color' => 'primary'],
['label' => 'Unassigned', 'value' => $metrics['unassigned'], 'hint' => 'Active chats without an assigned executive', 'icon' => 'ti-user-question', 'color' => 'warning'],
['label' => 'Resolved in period', 'value' => $metrics['resolved'], 'hint' => 'Based on resolved_at from '.$from->format('d M').' to '.$to->format('d M Y'), 'icon' => 'ti-circle-check', 'color' => 'success'],
['label' => 'Callbacks waiting', 'value' => $metrics['callbacks'], 'hint' => 'Requested callbacks on active chats only', 'icon' => 'ti-phone-calling', 'color' => 'danger'],
] as $metric)
{{ number_format($metric['value']) }}
{{ $metric['label'] }}
{{ $metric['hint'] }}
@endforeach
Customer rating
@if($metrics['rating_average'] !== null)
{{ number_format($metrics['rating_average'], 2) }} average from {{ number_format($metrics['rating_count']) }} ratings
@else
No ratings in this period
@endif