{{-- Extends layout --}}
@extends('layout.default')
{{-- Content --}}
@section('content')
@if(count($pendingparticipants)>0)
| Name |
Category |
|
@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)
|
@if (empty($orderParticipants[$currentOrderId][0]->amountpaid) && $orderParticipants[$currentOrderId][0]->remarks != 'success')
@else
Paid Rs. {{ $orderFees[$currentOrderId] }}
@endif
|
@endif
@php $currentOrderId = $row->oid; @endphp
@endif
| {{ $row->name }} |
{{ $row->category }} |
|
@if ($loop->last)
|
@if (empty($orderParticipants[$currentOrderId][0]->amountpaid) && $orderParticipants[$currentOrderId][0]->remarks != 'success')
@else
Paid Rs. {{ $orderFees[$currentOrderId] }}
@endif
|
@endif
@endforeach
|
Add More Participant
|
@endif
@if(count($paidparticipants)>0)
| Name |
Category |
@foreach ($paidparticipants as $row)
| {{ $row->name }} |
{{ $row->category }} |
@endforeach
@endif
@if(count($oldparticipants)>0)
@endif
@endsection
{{-- Styles Section --}}
@section('styles')
@endsection
{{-- Scripts Section --}}
@section('scripts')
{{-- vendors --}}
@endsection