@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
{{-- Goals attached to this evaluation --}} @if($performance->goals->count())
Performance Goals ({{ $performance->goals->count() }}) Active when this evaluation was created
@foreach($performance->goals as $goal)
{{ $goal->title }}
{{ ucfirst($goal->priority) }} {{ $goal->status_label }}
@if($goal->target_metric)
{{ $goal->target_metric }}
@endif @if($goal->criterion)
Linked to: {{ $goal->criterion->name }}
@endif {{-- Self-assessment on this view --}} @if($goal->self_rating || $goal->self_comments)
Self-Assessment: @for($s=1;$s<=5;$s++) @endfor
@if($goal->self_comments)
{{ $goal->self_comments }}
@endif
@elseif(auth()->user()->employee?->id === $performance->employee_id)
Self-assessment not yet added. Add it from My Goals →
@endif {{-- Evaluator comments --}} @if($goal->evaluator_comments)
Manager / HR Feedback:
{{ $goal->evaluator_comments }}
@endif
@endforeach
@endif @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