@extends('layouts.dashboard') @section('title', 'Employee Reviews') @section('content')

Employee Reviews

entries
@section('table')
@forelse($reviews as $review) @php $ratings = [ $review->communication, $review->team_collaboration, $review->quality_of_work, $review->ownership, ]; $validRatings = array_filter($ratings); $overall = count($validRatings) > 0 ? round(array_sum($validRatings) / count($validRatings), 1) : '-'; @endphp @empty @endforelse
Employee Department Reviewed By Communication Teamwork Quality of Work Leadership Overall Comments Date
{{ $review->employee->name }} {{ $review->employee->department->name ?? 'N/A' }} {{ $review->reviewer->name ?? 'N/A' }} {{ $review->communication ?? '-' }} {{ $review->team_collaboration ?? '-' }} {{ $review->quality_of_work ?? '-' }} {{ $review->ownership ?? '-' }} {{ $overall }} {{ Str::limit($review->comments ?? '-', 50) }} {{ $review->created_at->format('d M Y') }}
No reviews found
@show
@endsection