@php($evaluation = $project->evaluations->firstWhere('panel_id', $assignment->panel_id))
{{ $assignment->panel->name }}
{{ $assignment->panel->email }} · Assigned {{ $assignment->assigned_at?->format('d M Y') }}
{{ $evaluation?->status ?: 'not started' }} @if($evaluation?->finalised_at) · Finalised {{ $evaluation->finalised_at->format('d M Y, h:i A') }} @endif
@if($evaluation) {{ number_format((float) $evaluation->total_score, 2) }}% @else Awaiting evaluation @endif
@if($evaluation)

Panel Evaluation Comment

{{ filled($evaluation->comments) ? $evaluation->comments : 'No comment provided.' }}

Score Justification

{{ filled($evaluation->justification) ? $evaluation->justification : 'No justification provided.' }}
@if(($showScores ?? false) && $evaluation->scores->isNotEmpty()) @foreach($evaluation->scores->sortBy(fn ($score) => $score->criterion?->display_order ?? 0) as $score) @endforeach
Criterion Raw score Maximum Weightage Weighted score
{{ $score->criterion?->name ?? 'Deleted criterion' }} {{ number_format((float) $score->raw_score, 2) }} {{ number_format((float) ($score->criterion?->max_score ?? 0), 2) }} {{ number_format((float) ($score->criterion?->weightage ?? 0), 2) }}% {{ number_format((float) $score->weighted_score, 2) }}
@endif @else
This assigned panel has not started the evaluation.
@endif