{{$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}}

@php $rank = 0; $lastscore = 0; @endphp @foreach($score->participants as $participant) @if($participant->type == 'Team') @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 @endif @endforeach
Team Name Rx Rank
contact-img
{{$participant->team->name}}
{{ is_object($participant->score) ? '-' : $participant->score }}

{{$rank}}

@endforeach