{{-- Title Section --}} LEAP | Gymnastics results {{-- Meta Data --}} {{-- Favicon --}}
user
@foreach ($apparatus as $row) @php $homeController = new App\Http\Controllers\HomeController(); $dataRecords=$homeController->displayleaderboard_table($row->apid,$category,$level,$eventdata[0]->id,$gender,'150'); @endphp @if(count($dataRecords) > 0)

{{$row->gname}}

@php $rank = 1; $prevtotal = 1; $prevescore = 1; $prevdscore = 1; $cnt = 1; @endphp @foreach ($dataRecords as $row) @php if ($prevtotal != $row->total) { $rank = $cnt; } elseif ($prevescore != $row->subtotal) { $rank = $cnt; } elseif ($prevdscore != $row->dscore) { $rank = $cnt; } else { } @endphp @php $cnt++; $prevtotal = $row->total; $prevescore = $row->subtotal; $prevdscore = $row->dscore; @endphp @endforeach
S no. Name Club D Score E Score Penalty Final Score
{{$cnt}}
{{ucfirst($row->name)}}
{{strtoupper($row->club)}} {{$row->dscore}} {{$row->escore}}
{{$row->penalty}}
{{ $row->total}}
@endif @endforeach @php $homeController = new App\Http\Controllers\HomeController(); $dataRecords=$homeController->displayleaderboard_vault($category,$level,$eventdata[0]->id,$gender,'150'); @endphp @if(count($dataRecords) > 0)

Vault

@php $rank = 1; $prevtotal = 1; $cnt = 1; @endphp @foreach ($dataRecords as $row) @php if ($prevtotal != $row->vt) { $rank = $cnt; } else { } @endphp @php $cnt++; $prevtotal = $row->vt; @endphp @endforeach
S no. Name Club Vault 1 Vault 2 Final Score
{{$cnt}}
{{ucfirst($row->name)}}
{{strtoupper($row->club)}} {{$row->vt1}} {{$row->vt2}}
{{$row->vt}}
@endif