{{-- Extends layout --}} @extends('layout.default') {{-- Content --}} @section('content')
@if(session()->has('message'))
{{ session()->get('message') }}
@endif

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

@if(count($pendingparticipants)>0)
Pending Payments
@php $currentOrderId = null; $orderFees = []; $orderParticipants = []; $orderid = ''; @endphp @foreach ($pendingparticipants as $row) @php // Accumulate fees and participants for each orderid if (!isset($orderFees[$row->oid])) { $orderFees[$row->oid] = 0; $orderParticipants[$row->oid] = []; } $orderFees[$row->oid] += $row->fees; $orderParticipants[$row->oid][] = $row; $orderid = $row->oid; @endphp @if ($currentOrderId !== $row->oid) @if ($currentOrderId !== null) @endif @php $currentOrderId = $row->oid; @endphp @endif @if ($loop->last) @endif @endforeach
Name Category
@if (empty($orderParticipants[$currentOrderId][0]->amountpaid) && $orderParticipants[$currentOrderId][0]->remarks != 'success')
@csrf
@else Paid Rs. {{ $orderFees[$currentOrderId] }} @endif
{{ $row->name }} {{ $row->category }}
@if (empty($orderParticipants[$currentOrderId][0]->amountpaid) && $orderParticipants[$currentOrderId][0]->remarks != 'success')
@csrf
@else Paid Rs. {{ $orderFees[$currentOrderId] }} @endif
Add More Participant
@endif
@if(count($paidparticipants)>0)
Registered Gymnasts
@foreach ($paidparticipants as $row) @endforeach
Name Category
{{ $row->name }} {{ $row->category }}
@endif
@if(count($oldparticipants)>0)
@csrf
Select Gymnasts to Register and Click Submit
@foreach ($oldparticipants as $row) @endforeach
Name DOB Category
{{$row->name}} {{ \Carbon\Carbon::parse($row->dob)->format('d-m-Y') }}
@endif
@endsection {{-- Styles Section --}} @section('styles') @endsection {{-- Scripts Section --}} @section('scripts') {{-- vendors --}} @endsection