@extends('admin.master') @section('content') @section('title','Employee Performance Details ')
| Performance Category | Performance Criteria | Rating(Out of 10) |
|---|---|---|
| {{$key}} | {{$value[0]['performance_criteria_name']}} | {{$value[0]['rating']}} @php $totalRating += $value[0]['rating']; $totalItem +=1 ; $full_name = $value[0]['first_name']." ".$value[0]['last_name']; $department_name = $value[0]['department_name']; $monthAndYear = explode('-',$value[0]['month']); $month = $monthAndYear[1]; $dateObj = DateTime::createFromFormat('!m', $month); $monthName = $dateObj->format('F'); $year = $monthAndYear[0]; $monthAndYearName = $monthName." ".$year ; @endphp |
| {{$v['performance_criteria_name']}} | {{$v['rating']}} @php $totalRating += $v['rating']; $totalItem +=1 ; @endphp | |
| Total Rating : | {{$totalRating}} | |
| Average Rating : | @php if($totalItem !=0 && $totalRating !=0){ echo round($totalRating / $totalItem,2); }else{ echo 0; } @endphp | |
| Star Rating : | ||