@php $totalWeight = 0; $totalWeightValue = 0; @endphp KPI Data
@if (session('message'))
× {{ session('message') }}.
@endif @php // $kpi = App\Models\KpiEntry::where('user_id', $kpiEntries->user_id)->first(); // $user = App\Models\User::where('id', $kpi->user_id)->first(); // dd($kpi) @endphp
{{-- supervisor_assign Table goes here --}}
{{-- @php $supervisor = App\Models\User::where('id', $kpi->dataEntry_by)->first(); @endphp --}}
Staff Name: {{ $user->name }}
Staff ID: {{ $user->emp_id }}
Designation: {{ $user->designation->name ?? '' }}
Department: {{ $user->department->name ?? '' }}
Supervisor {{ $supervisor->name ?? '' }}
Period {{ $kpi_period ?? '' }}
user image
@foreach($kpiEntries as $entry) @php $totalWeight += $entry->weight_of_kpis; $totalWeightValue += $entry->weight_value; @endphp @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
{{ $entry->kra_id }} {{ $entry->kpi_id }} {{ $entry->weight_of_kpis }} {{ $entry->bench_mark_target }} % {{ $entry->achivement }} {{ $entry->sources_of_informations }} {{ $entry->score }} {{ $entry->weight_value }} {{ $entry->justification }}

Total Weight of KPIs: {{ $totalWeight }}

Total Weight Value: {{ $totalWeightValue }}

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