@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') @foreach($calls as $callId => $callLabel) @endforeach @foreach($section['rows'] as $row) @foreach($calls as $callId => $callLabel) @endforeach @endforeach @php // Decode the saved JSON $callTotals = json_decode($final->call_total ?? '{}', true); @endphp @foreach($callTotals as $callId => $value) @endforeach
Metric Overall ScoreCall {{ $loop->iteration }}
{{ $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) . '%' : '' }} {!! $row['formatted'][$callId] ?? '' !!}
ACCESS SCORE {{$final->access_score}}{{ $value }}
@endslot @endcomponent