@include('manager.detailed_report.styles') @php $section = collect($sections)->firstWhere('label','Quality SCORE'); $label = $section['label'] ?? 'QUALITY SCORE'; $score = optional($final)->quality_score ?? ''; $score_class = $section['score_class'] ?? 'score-na'; @endphp @component('manager.detailed_report.accordion_section', [ 'label' => $label, 'score' => $score."%", 'score_class' => $score_class ]) @slot('content') @if(empty($final))
| Metric | Overall Score | @foreach($calls as $callId => $callLabel)Call {{ $loop->iteration }} | @endforeach
|---|---|---|
| {{ $row['label'] }} | {{ is_numeric($v = str_replace('%', '', data_get($final, $row['data_col']))) ? round((float)$v, 0) . '%' : '' }} | @foreach($calls as $callId => $callLabel)@php $value = $row['formatted'][$callId] ?? null; $clean = is_string($value) ? str_replace('%', '', strip_tags($value)) : $value; @endphp {!! is_numeric($clean) ? '' . round((float)$clean, 0) . '%' : '' !!} | @endforeach
| QUALITY SCORE | {{ optional($final)->quality_score }} | @foreach($callTotals as $callId => $value){{ $value }} | @endforeach