@foreach ($result as $item) @php $total_marks = $item->pluck('fetch_criterias')->sum('point'); $obtain_score = $item->sum('score'); @endphp @endforeach
{{__('obs.employee')}} Appraisal {{__('obs.total')}} {{__('obs.marks')}} {{__('obs.obtain')}} {{__('obs.score')}}
{{count($item) >0? $item->first()->fetch_emp->emp_name:'' }} {{count($item) >0 ? ( $item->first()->fetch_app_emp_assign->fetch_app_assign->fetch_pa_form->title ?? null) : null }} {{$total_marks}} {{$obtain_score}}