@if($applications->isEmpty())

No applications found.

@else
@foreach($applications as $application)

{{ $application->child_name }} - {{ $application->camp_package?->name ?? 'N/A' }}

Location: {{ $application->location ?? 'Not Specified' }}

Package Name: {{ $application->camp_package?->label ?? 'N/A' }} ({{ $application->camp_package?->name ?? 'N/A' }})

Status: {{ ucfirst($application->status) }}

@if(auth()->user()->is_admin)

Parent Email: {{ $application->parent_email }}

Parent Phone: {{ $application->parent_phone ?? 'N/A' }}

Child DOB: {{ $application->child_dob->format('M d, Y') }}

Child Gender: {{ $application->child_gender ?? 'N/A' }}

Special Needs: {{ $application->special_needs ?: 'None' }}

Payment Reference: {{ $application->payment_reference }}

@endif
@endforeach
{{ $applications->links() }}
@endif