@extends('employee.layouts.app') @section('title', get_setting('site_name').' | '.__('Appraisal #').$instance->id) @section('content') @php $settings = \App\Models\PerformanceAppraisalSetting::settings(); $paperWorkflow = $settings->paperFormWorkflow(); $isAppraisee = (int) $instance->staff_id === (int) $staff->id; $stages = \App\Support\PerformanceAppraisal\AppraisalStages::ordered(); $currentStageIdx = \App\Support\PerformanceAppraisal\AppraisalStages::index($instance->current_stage); if ($currentStageIdx === false) { $currentStageIdx = 0; } $workflowStopped = ! $instance->isActive(); $workflowComplete = in_array($instance->status, [ \App\Models\AppraisalInstance::STATUS_FINALIZED, \App\Models\AppraisalInstance::STATUS_CLOSED, ], true); $scoringSubmission = $instance->submissions->firstWhere('stage', \App\Support\PerformanceAppraisal\AppraisalStages::scoringStage($paperWorkflow)); $scoringResponses = is_array($scoringSubmission?->responses) ? $scoringSubmission->responses : []; $showKpiReference = $instance->evaluationForm && ! $canSubmitThisStage; @endphp
{{ __('Your review') }} · {{ $instance->cycle?->name ?? '—' }}
@else{{ __('Evaluating') }}: {{ staff_evaluator_label($instance->staff) }} · {{ $instance->cycle?->name ?? '—' }}
@endif @include('partials.appraisal_eval_form_banner', ['title' => $instance->evaluationForm?->title])| {{ __('Stage') }} | {{ __('Evaluator') }} | {{ __('Score') }} | {{ __('Submitted') }} |
|---|---|---|---|
| {{ \App\Support\PerformanceAppraisal\AppraisalStages::label($sub->stage, $paperWorkflow) }} @if($instance->current_stage === $sub->stage && ! $workflowComplete && ! $workflowStopped) {{ __('Current') }} @endif | {{ staff_evaluator_label($sub->evaluator) }} | {{ $sub->total_score !== null ? number_format((float) $sub->total_score, 2).'%' : '—' }} | @if($sub->submitted_at) {{ $sub->submitted_at->format('d/m/Y H:i') }} @else {{ __('Pending') }} @endif |
{{ __('Strengths') }}
{{ __('Weaknesses') }}
| {{ __('KPI') }} | {{ __('Description') }} | {{ __('Score') }} |
|---|---|---|
| @if($k->title_bn){{ $k->title_bn }}@endif {{ $k->title }} ({{ $fk->weightage }}%) | @include('partials.kpi_description_hint', ['indicator' => $k]) | {{ $scoringResponses[$k->id] ?? '—' }} |