@include('manager.detailed_report.styles') @php $section = collect($sections)->firstWhere('label','ACCESS SCORE'); $label = $section['label'] ?? 'ACCESS SCORE'; $score = $final->access_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')
| Metric | Overall Score | @foreach($calls as $callId => $callLabel)Call {{ $loop->iteration }} | @endforeach
|---|---|---|
| {{ $row['label'] }} | @php $value = $final->{$row['data_col']} ?? null; $value = is_string($value) ? str_replace('%', '', $value) : $value; @endphp {{ is_numeric($value) ? round((float)$value, 0) . '%' : '' }} | @foreach($calls as $callId => $callLabel){!! $row['formatted'][$callId] ?? '' !!} | @endforeach
| ACCESS SCORE | {{$final->access_score}} | @foreach($callTotals as $callId => $value){{ $value }} | @endforeach