@extends('layouts.frontend.master') @section('title', 'My Event Registrations') @section('content')

My Event Registrations

View and manage your event registrations. You can see the status of each registration and cancel if needed.

@if($registrations->count() > 0)
@foreach($registrations as $registration)

{{ $registration->event->name }}

{{ $registration->eventDate->date->format('M d, Y') }} @if($registration->eventDate->start_time) at {{ $registration->eventDate->start_time->format('g:i A') }} @endif
{{ $registration->event->venue }}
@if($registration->guests->count() > 0)
{{ $registration->guests->count() }} guest(s)
@endif
{{ ucfirst($registration->status) }} {{ ucfirst($registration->payment_status) }}
Registration Date: {{ $registration->created_at->format('M d, Y g:i A') }}
Total Amount: ${{ number_format($registration->total_amount, 2) }}
@if($registration->guests->count() > 0)

Registered Guests:

@foreach($registration->guests as $guest)
{{ $guest->name }} ({{ $guest->relationship_text }})
@if($guest->email) {{ $guest->email }} @endif
@endforeach
@endif @if($registration->special_requirements)

Special Requirements:

{{ $registration->special_requirements }}

@endif @if($registration->notes)

Notes:

{{ $registration->notes }}

@endif
View Details View Event @if($registration->status !== 'cancelled' && $registration->eventDate->date > now())
@csrf
@endif
@endforeach
{{ $registrations->links() }}
@else

No registrations found

You haven't registered for any events yet.

@endif
@endsection