Head Judge

The following judgements have been entered by other judges

@forelse($groups as $group)

{{ $group }}

@if ($categories[$group]->count() > 0) @foreach($categories[$group] as $category) @php $nominations = \App\Models\Nomination::where('category_id', $category->id)->get(); @endphp

{{ $category->name }} @if ($nominations->count() > 0) @endif

@if ($nominations->count() > 0) @foreach(\App\Models\Jury::where('category_id', $category->id)->get() as $judge) @endforeach
Judge Completed
{{$judge->user->forename}} {{$judge->user->surname}} @php $judgement_count = \App\Models\Judgement::where('user_id', $judge->user->id)->whereIn('nomination_id', $nominations->pluck('id')->toArray())->count(); $nominations_count = $nominations->count(); @endphp @if ($judgement_count == $nominations_count) Yes @else No @endif
@forelse($nominations as $nomination) @empty @endforelse
Nominee Points
{{$nomination->nominee_shortlist}} @php $score = $nomination->judgements()->sum('score'); @endphp {{$score}}
There are no nominations to judge
@if ($open === $category->id)
@php $judgements = \App\Models\Judgement::whereIn('nomination_id', $nominations->pluck('id')->toArray())->get(); @endphp @if ($judgements->count() > 0) @foreach($judgements as $judgement)
Name Judge Category Score
{{ $judgement->nomination->nominee_forename }} {{$judgement->nomination->nominee_surname}} {{ $judgement->user->forename }} {{ $judgement->user->surname }} {{ $judgement->nomination->category->name }} {{ $judgement->score ?? '-' }}
Reason for judgement {!! nl2br($judgement->reason) ?? '-' !!}
@endforeach @else

There are no judgements to display

@endif
@endif @else

There are no nominations to judge yet

@endif @endforeach @else

There are no categories to judge

@endif @empty

There are no groups to judge

@endforelse