@extends('layouts.master') @section('css') @endsection @section('content')

{{ $event->title }} Confirm Registrations ({{ $eventParticipants->total() }})

filter) value="{{ $request->filter }}" @endif>
email) value="{{ $request->email }}" @endif>
@if ($event->eventFormInputFields) @foreach ($event->eventFormInputFields as $inputFormFields) @if ($inputFormFields->visible == \App\Enums\EventFormFieldEnum::VISIBLE) @if (!in_array($inputFormFields->name, $basicFields)) @endif @endif @endforeach @endif @if (count($eventParticipants) > 0) @php $i = $eventParticipants->perPage() * ($eventParticipants->currentPage() - 1) + 1; @endphp @foreach ($eventParticipants as $eventParticipant) @php $user = $eventParticipant->user; $extra = $eventParticipant->extra; @endphp {{-- --}} @if ($event->eventFormInputFields) @foreach ($event->eventFormInputFields as $inputFormFields) @if ($inputFormFields->visible == \App\Enums\EventFormFieldEnum::VISIBLE) @if (!in_array($inputFormFields->name, $basicFields)) @endif @endif @endforeach @endif @if ($canEdit) @endif @endforeach @else @endif
Sr. No User Details Date {{ $inputFormFields->display_label }} Action
{{ $i++ }} {{ $user->name ?? '-' }}
{{ $user->email ?? '-' }}
{{ $user->full_mobile_number ?? '-' }}
@if ($canEdit) @endif
{{ $user->email ?? '-' }} {{ $user->full_mobile_number ?? '-' }}{{ $eventParticipant->created_at ? getTimezoneDateTime($eventParticipant->created_at, 'd-m-Y | h:i A') : '-' }} @php $extraColumn = isset($eventParticipant) ? (isset($eventParticipant->extra[$inputFormFields['name']]) ? $eventParticipant->extra[$inputFormFields['name']] : '-') : '-'; @endphp @php $eventRegistrationId = $user->eventRegistrations ? $user->eventRegistrations->first()->id : ''; @endphp @if ($inputFormFields->type == 'checkbox') @if (is_array($extraColumn)) @if (count($extraColumn) > 0)
    @foreach ($extraColumn as $key => $extraField)
  1. {{ $extraField }}
  2. @endforeach
@endif @endif @elseif($inputFormFields->type == 'file_input') @php $fileInput = $event->getFileInput($extraColumn); @endphp @if (isset($fileInput)) @else - @endif @elseif($inputFormFields->name == 'category') {{ $eventParticipant->extra['category_data']['category_name'] ?? '-' }}
{{ $eventParticipant->extra['category_data']['category_amount'] ?? '-' }} @elseif($inputFormFields->name == 'workshop') {{ $eventParticipant->extra['workshop_data']['workshop_name'] ?? ($eventParticipant->extra[$inputFormFields['name']] ?? '-') }}
{{ $eventParticipant->extra['workshop_data']['workshop_amount'] ?? '-' }} @elseif($inputFormFields->name == 'register_accompany') {{ $eventParticipant->extra['register_accompany'] ?? '-' }}
{{ $eventParticipant->extra['accompany_data']['accompany_amount'] ?? '' }} @elseif($inputFormFields->name == 'accompany_person') {{ $eventParticipant->extra['accompany_person'] ?? '-' }}
@if (isset($eventParticipant->extra['accompany_name'])) @foreach ($eventParticipant->extra['accompany_name'] as $data) {{ $data }}
@endforeach @endif @else {{ $extraColumn }} @endif
@if ( $canEdit && !Str::contains($inputFormFields->display_label, [ 'Category', 'Workshop', 'Accompany', 'Accompany Person', 'Payment Mode', 'Upload Payment Receipt', 'Transaction Date', 'UTR Id / Transaction Id.', ])) @endif
No Data Found
{{ $eventParticipants->appends(Request::all())->links() }}
{{-- Edit Model --}} {{-- Edit user Model --}} @endsection @section('js') @endsection