{{-- Title Section --}} {{ config('app.name') }} | @yield('title', $page_title ?? '') {{-- Meta Data --}} {{-- Favicon --}} {{-- Fonts --}} {{ Metronic::getGoogleFontsInclude() }}

{{$eventdata[0]->Name}}

@foreach ($apparatus as $row) @php $dataRecords= app\Http\Controllers\EventController::displayleaderboard_table($row->apid,$level,$eventdata[0]->id,$eventdata[0]->gender,'60'); @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 Penalty Final Score Prize
{{$cnt}}
{{ucfirst($row->name)}}
{{strtoupper($row->club)}} {{$row->dscore}}
{{$row->penalty}}
{{ $row->total}}
 
@endif @endforeach