@extends('admin.master') @section('content') @section('title','Employee Performance Details ')
@yield('title')
Employee Name :
Department :
Month :

@php $totalRating = 0; $totalItem = 0; @endphp @foreach($criteriaDataFormat as $key => $value) @foreach($value as $k => $v) @if($k !=0) @endif @endforeach @endforeach
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 :
{{ Form::close() }}
@endsection