@extends('layouts.app') @section('title', __('Dashboard')) @section('content') @php($user = auth()->user())

{{ __('Welcome back,') }} {{ strtok($user->name, ' ') }}

{{ __('You review as') }} {{ $user->role->label() }} · {{ $user->job_title }}@if ($user->department) · {{ $user->department->name }}@endif

@if ($currentCycle){{ __('Appraisal cycle') }} {{ $currentCycle->year }}@endif
{{ __('1. Rate each question') }}{{ __('Choose 1 to 5 for every question in your section.') }}
{{ __('2. Save progress any time') }}{{ __('Come back later. Nothing is lost, and nothing is sent.') }}
{{ __('3. Final submit when complete') }}{{ __('Only possible when every question is rated. It then locks.') }}

{{ __('Continue where you left off') }}

{{ $finished }} / {{ $total }} {{ __('done') }}
@forelse ($active as $review) @php($pct = $review->section_total ? round($review->section_answered / $review->section_total * 100) : 0)
{{ $review->employee->name }}{{ $review->employee->job_title }}
{{ $review->section_answered }} / {{ $review->section_total }} {{ __('rated') }}
{{ $review->state->value === 'todo' ? __('Start') : __('Continue') }}
@empty @endforelse
@php($overall = $total ? round($finished / $total * 100) : 0)
{{ __('Overall progress') }}{{ $overall }}%
@endsection