@extends('user.layouts.app') @section('title','My Conferences') @section('page-title','My Conferences') @section('page-subtitle','View and register for conferences') @section('content') @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
My Registrations
@forelse($registrations as $reg)
{{ $reg->conference->name }}

{{ $reg->conference->theme }}

{{ $reg->conference->start_date?->format('M d') }} - {{ $reg->conference->end_date?->format('M d, Y') }} · {{ $reg->conference->venue }}
{{ str_replace('_', ' ', ucfirst($reg->registration_category)) }}
{{ ucfirst($reg->payment_status) }}
@empty

You have not registered for any conference yet.

@endforelse
@if($availableConferences->isNotEmpty())
Available Conferences
@foreach($availableConferences as $conference)
{{ $conference->name }} ({{ $conference->conference_year }})

{{ $conference->theme }}

Venue: {{ $conference->venue }} · Closes: {{ $conference->registration_close_date?->format('M d, Y') ?? 'Open' }}

{{ ucfirst($conference->attendance_mode ?? 'physical') }}

@endforeach
@endif @endsection