@extends('admin.layouts.app') @section('title','Conference Fees — '.$conference->name) @section('page-title','Structured Fee Configuration') @section('page-subtitle',$conference->name) @section('content') @if(session('success'))
{{ session('success') }}
@endif
← Edit Conference Conference Registration Dates Virtual Access
Conference Edit dates control when registration is open. This page sets fee amounts only. Optional override dates below can narrow a period further, but they cannot extend registration beyond the conference dates set under Edit Conference → Important Dates. Registration is allowed only when the conference period is open and the fee row is active (and within any override window, if set).
@csrf @php $periods = [ 'early_bird' => ['regular', 'student', 'spouse', 'foreign'], 'regular' => ['regular', 'student', 'spouse', 'foreign'], 'virtual' => ['virtual'], 'late' => ['late_registration'], 'onsite' => ['onsite_registration'], ]; $idx = 0; @endphp @foreach($periods as $period => $categories) @php $periodWindow = $conference->registrationPeriodWindow($period); $periodLabel = \App\Models\ConferenceFee::PERIODS[$period] ?? ucfirst($period); @endphp
{{ $periodLabel }} Fees
Edit {{ $periodLabel }} dates
@if($periodWindow['is_configured'])
Master period (Conference Edit): {{ $periodWindow['formatted'] }} — registration must fall within this window first.
@else
No {{ strtolower($periodLabel) }} dates set on the conference. Set them under Edit Conference → Important Dates before fee overrides on this page will matter.
@endif
@foreach($categories as $category) @php $existing = ($fees[$period] ?? collect())->firstWhere('participant_category', $category); @endphp @php $idx++; @endphp @endforeach
Category Currency Amount Override opens Optional · narrower only Override closes Optional · narrower only Active
{{ \App\Models\ConferenceFee::CATEGORIES[$category] ?? $category }} amount ?? '') }}" placeholder="0.00"> opens_at?->format('Y-m-d\TH:i')) }}" title="Leave blank to use only the conference period dates"> closes_at?->format('Y-m-d\TH:i')) }}" title="Leave blank to use only the conference period dates"> is_active ?? true))>

Leave override dates empty to rely entirely on the conference {{ strtolower($periodLabel) }} period above.

@endforeach
@push('scripts') @endpush @endsection