@foreach($submissionRows as $row)
@php
$sub = $row['submission'];
$statusClass = $row['is_submitted'] ? 'success' : ($row['is_current'] ? 'warning' : 'secondary');
$statusText = $row['is_submitted']
? __('Submitted')
: ($row['is_current'] ? __('Pending (current stage)') : __('Not submitted yet'));
@endphp
{{ __('Assigned evaluator') }}
{{ $row['evaluator_label'] ?? '—' }}
{{ __('Submitted at') }}
{{ $sub->submitted_at?->format('d M Y, H:i') ?? '—' }}
{{ __('Score') }}
{{ $sub->total_score !== null ? number_format((float) $sub->total_score, 2).'%' : '—' }}
@if($row['is_submitted'])
{{ __('Submitted by') }}:
{{ $row['evaluator_label'] ?? __('—') }}
@if($sub->submitted_at)
— {{ $sub->submitted_at->format('d/m/Y H:i') }}
@endif
@endif
@if($sub->comments)
{{ __('Comments') }}
{{ $sub->comments }}
@endif
@if(count($row['kpi_lines']) > 0)
{{ __('KPI ratings') }}
| {{ __('KPI') }} | {{ __('Score') }} |
@foreach($row['kpi_lines'] as $line)
| {{ $line['title'] }} |
{{ $line['score'] }} |
@endforeach
@endif
@endforeach