@extends('layouts.app') @section('title','Evaluation — '.$performance->eval_number) @section('page-title','Performance Evaluation') @section('content')
Evaluation Summary
Employee
{{ $performance->employee->full_name ?? '—' }}
Period
{{ $performance->period->name ?? '—' }}
Evaluator
{{ $performance->evaluator->name ?? '—' }}
Overall Score
@php $score = $performance->weighted_score ? round($performance->weighted_score) : 0; $rMap = ['excellent'=>'#059669','very_good'=>'#0055b3','satisfactory'=>'#0284c7','needs_improvement'=>'#f59e0b','unsatisfactory'=>'#dc2626']; $rCol = $rMap[$performance->rating ?? ''] ?? '#6c757d'; @endphp
{{ $score }}%
{{ $performance->rating_label }}
{{-- Criteria scores --}} @if($performance->scores->count())
Criteria Breakdown
@foreach($performance->scores as $s) @php $pct = $s->criterion ? ($s->score / $s->criterion->max_score) * 100 : 0; @endphp
{{ $s->criterion->name ?? '—' }} {{ $s->score }} / {{ $s->criterion->max_score ?? '—' }}
@if($s->comments)
{{ $s->comments }}
@endif
@endforeach @endif
{{-- Comments --}}
Evaluator Comments
@if($performance->evaluator_comments)
{{ $performance->evaluator_comments }}
@endif @if($performance->development_goals)
Development Goals
{{ $performance->development_goals }}
@endif @if($performance->training_needs)
Training Needs
{{ $performance->training_needs }}
@endif
{{-- Actions --}} @if($performance->status === 'submitted' && auth()->user()->employee?->id === $performance->employee_id)
Acknowledge Evaluation

By acknowledging this evaluation, you confirm that you have read and understood your performance review. Acknowledging does not mean you agree with all assessments.

@csrf
@endif @if($performance->status === 'acknowledged' && auth()->user()->isHrOrAdmin())
HR Review
@csrf
@endif
Evaluation Status
Submitted
{{ $performance->created_at->format('M j, Y') }}
Employee Acknowledged
{{ $performance->acknowledged_at ? $performance->acknowledged_at->format('M j, Y') : 'Awaiting' }}
HR Review Complete
{{ $performance->status==='completed' ? 'Completed' : 'Awaiting' }}
@endsection