KPI Data {{-- KPI Data --}}
@if (session('message'))
× {{ session('message') }}.
@endif @php $totalWeight = 0; $totalWeightValue = 0; $totalWeight1 = 0; $totalWeightValue1 = 0; $totalWeight2 = 0; $totalWeightValue2 = 0; @endphp
{{-- user information Table goes here --}}
user image

Performance Evaluation Form

@php $supervisor_id = App\Models\SupervisorAssign::where('user_id', $user->id)->first(); // dd($supervisor_id); if ($supervisor_id != null) { $supervisor = App\Models\User::where('id', $supervisor_id->supervisor_id)->first(); } @endphp @isset($supervisor) @endisset
Staff Name: {{ $user->name }}
Staff ID: {{ $user->emp_id }}
Designation: {{ $user->designation->name ?? '' }}
Department: {{ $user->department->name ?? '' }}
Supervisor: {{ Str::upper($supervisor->name) ?? '' }}
Period: {{ $kpi_period ?? '' }}
{{--
user image
--}}
user image
{{-- @foreach ($kpiNormal as $kpi) @php $kpi_name = App\Models\Kpi::where('id', $kpi->kpi_id)->first()->name; $kra_name = App\Models\Kra::where('id', $kpi->kra_id)->first()->name; @endphp @php $totalWeight1 += $kpi->weight_of_kpis; $totalWeightValue1 += $kpi->weight_value; @endphp @endforeach --}} @php $previous_kra_name = ''; $kpiNormal = collect($kpiNormal); @endphp @foreach ($kpiNormal->groupBy('kra_id') as $kra_id => $kpis) @php $kraObj = App\Models\Kra::find($kra_id); if (!$kraObj) { continue; } $kra_name = $kraObj->name; @endphp @foreach ($kpis as $kpi) @php $kpiObj = App\Models\Kpi::find($kpi->kpi_id); if (!$kpiObj) { continue; } $kpi_name = $kpiObj->name; @endphp @if ($loop->first) @endif @php $totalWeight1 += $kpi->weight_of_kpis; $totalWeightValue1 += $kpi->weight_value; @endphp @endforeach @endforeach {{-- @foreach ($kpiLate as $kpi) @php $kpi_name = App\Models\Kpi::where('id', $kpi->kpi_id)->first()->name; $kra_name = App\Models\Kra::where('id', $kpi->kra_id)->first()->name; @endphp @php $totalWeight2 += $kpi->weight_of_kpis; $totalWeightValue2 += $kpi->weight_value; @endphp @endforeach --}} @php $previous_kra_name = ''; $kpiLate = collect($kpiLate); @endphp @foreach ($kpiLate->groupBy('kra_id') as $kra_id => $kpis) @php $kraObj = App\Models\Kra::find($kra_id); if (!$kraObj) { continue; } $kra_name = $kraObj->name; @endphp @foreach ($kpis as $kpi) @php $kpiObj = App\Models\Kpi::find($kpi->kpi_id); if (!$kpiObj) { continue; } $kpi_name = $kpiObj->name; @endphp @if ($loop->first) @endif @php $totalWeight2 += $kpi->weight_of_kpis; $totalWeightValue2 += $kpi->weight_value; @endphp @endforeach @endforeach
Key Responsible Areas (KRA) Key Performance Indicators (KPI) Weight of KPIs Bench Mark/ Target Unit Achievement Sources of Information Score (Out of 100) Weightage Value Justification
{{ $kra_name }} {{ $kpi_name }} {{ $kpi->weight_of_kpis }} {{ $kpi->bench_mark_target }} % {{ $kpi->achivement }} {{ $kpi->sources_of_informations }} {{ $kpi->score }} {{ $kpi->weight_value }} {{ $kpi->justification }}
{{ $kra_name }}{{ $kpi_name }} {{ $kpi->weight_of_kpis }} {{ $kpi->bench_mark_target }} {{ $kpi->units }} {{ $kpi->achivement }} {{ $kpi->sources_of_informations }} {{ $kpi->score }} {{ $kpi->weight_value }} {{ $kpi->justification }}
{{ $totalWeight1 }} {{ $totalWeightValue1 }}
{{ $kra_name }} {{ $kpi_name }} {{ $kpi->weight_of_kpis }} {{ $kpi->bench_mark_target }} % {{ $kpi->achivement }} {{ $kpi->sources_of_informations }} {{ $kpi->score }} {{ $kpi->weight_value }} {{ $kpi->justification }}
{{ $kra_name }}{{ $kpi_name }} {{ $kpi->weight_of_kpis }} {{ $kpi->bench_mark_target }} {{ $kpi->units }} {{ $kpi->achivement }} {{ $kpi->sources_of_informations }} {{ $kpi->score }} {{ $kpi->weight_value }} {{ $kpi->justification }}
{{ $totalWeight2 }} {{ $totalWeightValue2 }}
Total Score {{ $totalWeight = $totalWeight1 + $totalWeight2 }} {{ $totalWeightValue = $totalWeightValue1 + $totalWeightValue2 }}
{{-- --}}
Staff Signature & Comment Supervisor Signature & Comment Next Level Supervisor Signature & Comment
@if (Auth::user()->role_id == 2) @else @endif @if (Auth::user()->role_id == 3) @else @endif @if (Auth::user()->role_id == 1) @else @endif