@php $paperWorkflow = $paperWorkflow ?? \App\Models\PerformanceAppraisalSetting::settings()->paperFormWorkflow(); $submissions = $instance->submissions->sortBy(fn ($s) => \App\Support\PerformanceAppraisal\AppraisalStages::index($s->stage)); @endphp
{{ __('Previous stages — comments & submissions') }}
{{ __('Review before final decision') }}
@foreach($submissions as $sub) @if($sub->stage === $activeSubmission->stage) @continue @endif
{{ \App\Support\PerformanceAppraisal\AppraisalStages::label($sub->stage, $paperWorkflow) }} @if($sub->submitted_at) {{ $sub->submitted_at->format('d/m/Y H:i') }} @else {{ __('Not submitted') }} @endif
{{ __('Evaluator') }}: {{ staff_evaluator_label($sub->evaluator) }}
@if($sub->total_score !== null)
{{ __('Score') }}: {{ number_format((float) $sub->total_score, 2) }}%
@endif @if($sub->comments)
{{ __('Comments') }}: {{ $sub->comments }}
@endif
@endforeach @if($instance->strength_1 || $instance->weakness_1)
{{ __('Qualitative feedback on record') }}
{{ __('Strengths') }}
  1. {{ $instance->strength_1 ?: '—' }}
  2. {{ $instance->strength_2 ?: '—' }}
  3. {{ $instance->strength_3 ?: '—' }}
{{ __('Weaknesses') }}
  1. {{ $instance->weakness_1 ?: '—' }}
  2. {{ $instance->weakness_2 ?: '—' }}
  3. {{ $instance->weakness_3 ?: '—' }}
@endif