@extends('organizations.layouts.default') @section('content')
@include('organizations.layouts.partials.breadcrumb')
@if (count($evaluation) > 0) @php $groupedEvaluation = $evaluation->groupBy('criteria_name'); $uniqueEvaluators = $evaluation->pluck('evaluators.name', 'evaluator_id')->unique(); @endphp @foreach ($uniqueEvaluators as $evaluatorName) @endforeach @foreach ($groupedEvaluation as $criteria => $results) @foreach ($uniqueEvaluators as $evaluatorId => $evaluatorName) @php $marks = $results->where('evaluator_id', $evaluatorId)->first() ->obtained_marks ?? '-'; $remarks = $results->where('evaluator_id', $evaluatorId)->first() ->remarks ?? '-'; @endphp @endforeach @endforeach
S.N Criteria Full Mark

{{ $evaluatorName }}

Obt. Mark
Remark
{{ nepali_number($loop->iteration) }}. {{ $criteria }} {{ $results->first()->full_marks }}
{{ $marks }}
{{ $remarks }}
@else

Result not ready !!!

@endif
@foreach ($evaluation->unique('evaluator_id') as $key => $summary)

{{ $loop->index + 1 }} . Summary by {{ $summary->evaluators['name'] }} :

{!! $summary->summary ?? null !!}
@endforeach
@endsection