{{ __('Back to instance') }}

{{ __('Submission history') }}

{{ __('Instance') }}: #{{ $instance->id }}

{{ __('Employee') }}: {{ $instance->staff?->user?->name }} (ID {{ $instance->staff?->user?->id }})

{{ __('Cycle') }}: {{ $instance->cycle?->name }} · {{ __('Status') }}: {{ $instance->status }}

{{ __('Current stage') }}: {{ \App\Support\PerformanceAppraisal\AppraisalStages::label($instance->current_stage) }}

{{ __('Printed') }}: {{ now()->format('d/m/Y H:i') }}

@foreach($submissionRows as $row) @php $sub = $row['submission']; @endphp

{{ $row['stage_label'] }} @if($row['is_submitted']) {{ __('Submitted') }} @else {{ __('Not submitted') }} @endif

@if($sub->comments) @endif
{{ __('Field') }} {{ __('Detail') }}
{{ __('Assigned evaluator') }} {{ $row['evaluator_label'] ?? '—' }}
{{ __('Submitted by') }} @if($row['is_submitted']) {{ $row['evaluator_label'] ?? '—' }} — {{ $sub->submitted_at?->format('d/m/Y H:i') }} @else — @endif
{{ __('Score') }} {{ $sub->total_score !== null ? number_format((float) $sub->total_score, 2).'%' : '—' }}
{{ __('Comments') }} {{ $sub->comments }}
@if(count($row['kpi_lines']) > 0) @foreach($row['kpi_lines'] as $line) @endforeach
{{ __('KPI ratings') }}
{{ __('KPI') }}{{ __('Score') }}
{{ $line['title'] }} {{ $line['score'] }}
@endif
@endforeach @if($instance->strength_1 || $instance->weakness_1)

{{ __('Qualitative feedback (saved on instance)') }}

{{ __('Strengths') }}{{ $instance->strength_1 }} / {{ $instance->strength_2 }} / {{ $instance->strength_3 }}
{{ __('Weaknesses') }}{{ $instance->weakness_1 }} / {{ $instance->weakness_2 }} / {{ $instance->weakness_3 }}
@endif