@extends('layouts.app') @section('content')

Welcome back, {{ $employee->first_name ?? $user->name }}

{{ $user->role }} Overview • {{ $evalMonthName }}

@if(in_array($user->role, ['Admin', 'HR']))
@csrf
@endif
@if(in_array($user->role, ['Admin', 'HR']))

Company Avg Score

{{ number_format($adminStats['avg_score'] ?? 0, 1) }} / 100

Based on finalized evaluations

Completion Rate

{{ $adminStats['completion_rate'] }}%
{{ $adminStats['total_completed'] }} of {{ $adminStats['total_evals'] }} Submitted

Awaiting Managers

{{ $adminStats['total_draft'] }}

Evaluations stuck in Draft

Awaiting Cross-Dept

{{ $adminStats['total_cross'] }}

Bottlenecked at other depts

AI Executive Summary

Powered by Gemini AI

@endif

Recent Submissions

View All →
@forelse($recentSubmissions as $submission) @empty @endforelse
Employee Department Final Score
{{ $submission->employee->first_name }} {{ $submission->employee->last_name }} @if($submission->employee->hasDoubleKpiAward($submission->start_date, $submission->total_score)) 🏆 @endif {{ optional($submission->employee->department)->name }} {{ floatval($submission->total_score) }}
No recent submissions found.

Administration

@if($employee)

My Performance History

@forelse($myHistory as $h) @empty @endforelse
Month Status Final Score
{{ \Carbon\Carbon::parse($h->start_date)->format('F Y') }} @if($h->status == 'Submitted' && $employee->hasDoubleKpiAward($h->start_date, $h->total_score)) 🏆 Awarded @endif {{ $h->status == 'Submitted' ? 'Finalized' : 'Under Review' }} {{ floatval($h->total_score) }}/100
No evaluations recorded yet.
@endif @endsection