KPI Data KPI Data @if ($kpiEntries == null || $users == null)
Sorry! No Data Found.
@else
@if (session('message'))
× {{ session('message') }}.
@endif
{{-- supervisor_assign Table goes here --}} {{--
@csrf --}} {{-- @forelse ($kpiEntries 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 @empty @endforelse
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 Action
{{ $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 }} Edit @csrf @method('DELETE') No Data Found
--}}

Search Employee Information

{{-- @if (Auth::user()->role_id == 1) --}} {{-- --}} @foreach ($kpiEntries->unique(function ($entry) { return $entry->user_id . $entry->kpi_period; }) as $entry) @php $user = App\Models\User::findOrFail($entry->user_id); $kpiEntriesByUser = $kpiEntries->where('user_id', $entry->user_id)->where('kpi_period', $entry->kpi_period); $total_weight_of_kpis = 0; $total_weightage_value = 0; @endphp @foreach ($kpiEntriesByUser as $kpi) @php $kpi_name = App\Models\Kpi::findOrFail($kpi->kpi_id)->name; $kra_name = App\Models\Kra::findOrFail($kpi->kra_id)->name; $total_weight_of_kpis += $kpi->weight_of_kpis; $total_weightage_value += $kpi->weight_value; if ($kpi->sources_of_informationsFile == !null) { $sources_of_information = $kpi->sources_of_informationsFile; $sources = []; if ($sources_of_information) { $sources = json_decode($sources_of_information, true); $sources = App\Models\sourceFileUpload::whereIn('id', $sources) ->pluck('file_name') ->toArray(); } } else { $sources = null; } @endphp @endforeach @endforeach @if ($kpiEntries->isEmpty()) @endif
Emplyee IDKey Responsible Areas (KRA) Key Performance Indicators (KPI) Weight of KPIs Bench Mark/ Target Unit Achievement Sources of Information Sources File Score (Out of 100) Weightage Value Justification Action
@if (Auth::user()->role_id == 1 || Auth::user()->role_id == 3 || Auth::user()->role_id == 4 || Auth::user()->role_id == 5) Edit @endif
{{ $kra_name }} {{ $kpi_name }} {{ $kpi->weight_of_kpis }} {{ $kpi->bench_mark_target }} {{ $kpi->units }} {{ $kpi->achivement }} {{ $kpi->sources_of_informations ?? 'N/A' }} @if (Auth::user()->role_id == 1) @if ($sources) @else {{ $kpi->sources_of_informationsFile }} @endif @endif {{ $kpi->score }} {{ $kpi->weight_value }} {{ $kpi->justification }} @if (Auth::user()->role_id == 1)
@csrf @method('DELETE')
@endif
Total {{ $total_weight_of_kpis }} {{ $total_weightage_value }}
No Data Found
{{-- open modal for show employee details --}}
@endif