@extends('layouts.app') @section('title', __('All reviews')) @section('content')

{{ __('All reviews') }}

{{ __('Every employee in the cycle. Open a review to inspect it.') }}

@if (! $cycle)
{{ __('Go to cycles') }}
@else
{{ __('All') }}{{ $counts->sum() }} @foreach (\App\Enums\Stage::cases() as $s) {{ $s->label() }}{{ $counts[$s->value] ?? 0 }} @endforeach
@if ($reviews->isEmpty()) @else
@foreach ($reviews as $r) @foreach ([['team_lead_submitted_at', 'team_lead', $r->teamLead], ['department_head_submitted_at', 'department_head', $r->departmentHead], ['hr_submitted_at', 'hr', $r->hrReviewer]] as [$col, $stageKey, $person]) @endforeach @endforeach
{{ __('Employee') }}{{ __('Stage') }}{{ __('Team lead') }}{{ __('Dept. head') }}HR{{ __('Score') }}
{{ $r->employee->name }}{{ $r->employee->employee_code }}
@if ($r->{$col}) {{ $r->{$col}->translatedFormat('j M') }} @elseif ($r->stage->value === $stageKey) {{ $person->name }} @else — @endif {{ $r->isCompleted() ? (float) $r->final_score.' / 100' : '—' }}
{{ $reviews->links() }} @endif
@endif @endsection