{{$title}}

@foreach($scores as $score)
{{date("d M Y h:iA", strtotime($score->validity_start))}} - {{date("d M Y h:iA", strtotime($score->validity_end)-1 )}}

{{$score->title}}

@foreach($score->metrics as $metric) @endforeach @php $rank = 0; $lastscore = 0; $metrics = $score->metrics; @endphp @foreach($score->userscore as $participant) @php $score = is_object($participant->score) ? 0 : $participant->score; if($lastscore == 0 && $score > 0) { $rank++; $lastscore = $score; } if($lastscore > 0 && $score < $lastscore) { $rank++; $lastscore = $score; } @endphp @foreach($metrics as $metric) @endforeach @endforeach
Rank User Name{{$metric->name}}Total Runs

{{$rank}}

{{$participant->name}}
{{ isset($participant->{$metric->id}) ? $participant->{$metric->id} : 0 }}{{ is_object($participant->score) ? '-' : $participant->score }}
@endforeach