@extends('layouts.admin.master') @section('title', 'Events Management') @php $maintenanceFeePercent = config('services.maintenance_fee'); @endphp @section('content')

Events Management

Participants List for ({{ $event->name }})

{{-- Payment Status Filter --}}
Export to Excel
{{--
--}}
@foreach ($event->participants as $item) @endforeach
Name Faculty Mobile Email Participants Number Amount Date/Time Payment Status Actions
{{ $item->registration_type=='guest' ? $item->guest->name : $item->user->personalInformation?->full_name_english }} {{ $item->registration_type=='guest' ? '' : $item->user->personalInformation?->faculty?->name }} {{ $item->registration_type=='guest' ? $item->guest->phone : $item->user->personalInformation?->mobile_no }} {{ $item->registration_type=='guest' ? $item->guest->email : $item->user->personalInformation?->email }} {{ $item->alumni+$item->spouse+$item->children_below_5+$item->children_5_to_12+$item->children_above_12+$item->driver+$item->maid+$item->other_guest }} {{--

alumni : {{ $item->alumni }}

spouse : {{ $item->spouse }}

children below 5 : {{ $item->children_below_5 }}

children 5 to 12 : {{ $item->children_5_to_12 }}

children above 12 : {{ $item->children_above_12 }}

driver : {{ $item->driver }}

maid : {{ $item->maid }}

other guest : {{ $item->other_guest }}

@if (!empty($item->special_requirements))

special requirements : {{ $item->special_requirements ?? '' }}

@endif --}}
{{ $item->invoice['total'] ?? 0 }} + ({{ $maintenanceFeePercent }}%) = {{ number_format($item->invoice['total'] + ($item->invoice['total'] * $maintenanceFeePercent / 100), 2) }} {{ $item->created_at?->format('d M Y h:i A') }} @switch($item->payment_status) @case('pending') @case('refunded') @case('failed') @case('canceled') {{ $item->payment_status }} @break @default {{ $item->payment_status }} @endswitch View @if ($item->payment_status == 'success' && $item->paymentLog && $item->paymentLog->invoices->isNotEmpty()) Invoice @endif
@endsection @push('js') @endpush