@foreach ($kpiEntries as $kpi)
@php
$kra_name = App\Models\Kra::where('id', $kpi->kra_id)->first()->name;
$kpi_name = App\Models\Kpi::where('id', $kpi->kpi_id)->first()->name;
@endphp
{{ $kra_name }} |
{{ $kpi_name }} |
{{ $kpi->weight_of_kpis }} |
{{ $kpi->bench_mark_target }}
|
{{ $kpi->units }} |
{{-- @if($kpi->sources_of_informations == null)
@else
@endif --}}
{{-- --}}
@if($kpi->achivement==null || Auth::user()->role_id == 1 || Auth::user()->role_id == 5 || Auth::user()->role_id == 4)
@else
@endif
|
|
@php
$totalWeight1 += $kpi->weight_of_kpis;
$totalWeightValue1 += $kpi->weight_value;
@endphp
@endforeach
|
{{ $totalWeight1 }} |
|