<div class="row justify-content-center"><div class="col-lg-8"><div class="card"><div class="card-header"><h5 class="mb-0">New Season</h5></div><div class="card-body">
<form method="POST" action="/sports/seasons" data-ajax="true"><?=csrf_field()?>
<div class="row g-3">
<div class="col-md-4"><label class="form-label">Code <span class="text-danger">*</span></label><input type="text" name="season_code" class="form-control" required><div class="invalid-feedback" data-field="season_code"></div></div>
<div class="col-md-4"><label class="form-label">Sport <span class="text-danger">*</span></label><select name="sport_id" class="form-select" required><option value="">--</option><?php foreach($sports as $s):?><option value="<?=$s['id']?>"><?=e($s['name_en'])?></option><?php endforeach;?></select></div>
<div class="col-md-4"><label class="form-label">Status</label><select name="status" class="form-select"><?php foreach(['upcoming','registration','active','completed','cancelled'] as $st):?><option value="<?=$st?>"><?=ucfirst($st)?></option><?php endforeach;?></select></div>
<div class="col-md-6"><label class="form-label">Name (EN) <span class="text-danger">*</span></label><input type="text" name="name_en" class="form-control" required></div>
<div class="col-md-6"><label class="form-label">Name (AR) <span class="text-danger">*</span></label><input type="text" name="name_ar" class="form-control" dir="rtl" required></div>
<div class="col-md-3"><label class="form-label">Start Date</label><input type="date" name="start_date" class="form-control datepicker" required></div>
<div class="col-md-3"><label class="form-label">End Date</label><input type="date" name="end_date" class="form-control datepicker" required></div>
<div class="col-md-3"><label class="form-label">Reg Start</label><input type="date" name="registration_start" class="form-control datepicker"></div>
<div class="col-md-3"><label class="form-label">Reg End</label><input type="date" name="registration_end" class="form-control datepicker"></div>
<div class="col-md-3"><label class="form-label">Max Participants</label><input type="number" name="max_participants" class="form-control"></div>
<div class="col-md-3"><label class="form-label">Fee</label><input type="number" name="fee_amount" class="form-control" step="0.01" value="0"></div>
</div><div class="mt-4 d-flex gap-2"><button type="submit" class="btn btn-primary"><i class="fas fa-save me-1"></i>Save</button><a href="/sports/seasons" class="btn btn-secondary">Cancel</a></div>
</form></div></div></div></div>