<div class="row justify-content-center"><div class="col-lg-8"><div class="card"><div class="card-header"><h5 class="mb-0">Edit Season</h5></div><div class="card-body">
<form method="POST" action="/sports/seasons/<?=$season['id']?>" data-ajax="true"><?=csrf_field()?>
<div class="row g-3">
<div class="col-md-6"><label class="form-label">Name (EN)</label><input type="text" name="name_en" class="form-control" value="<?=e($season['name_en'])?>" required></div>
<div class="col-md-6"><label class="form-label">Name (AR)</label><input type="text" name="name_ar" class="form-control" dir="rtl" value="<?=e($season['name_ar'])?>" required></div>
<div class="col-md-3"><label class="form-label">Start Date</label><input type="date" name="start_date" class="form-control" value="<?=$season['start_date']?>" required></div>
<div class="col-md-3"><label class="form-label">End Date</label><input type="date" name="end_date" class="form-control" value="<?=$season['end_date']?>" required></div>
<div class="col-md-3"><label class="form-label">Reg Start</label><input type="date" name="registration_start" class="form-control" value="<?=$season['registration_start']?>"></div>
<div class="col-md-3"><label class="form-label">Reg End</label><input type="date" name="registration_end" class="form-control" value="<?=$season['registration_end']?>"></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?>" <?=selected($st,$season['status'])?>><?=ucfirst($st)?></option><?php endforeach;?></select></div>
<div class="col-md-4"><label class="form-label">Max Participants</label><input type="number" name="max_participants" class="form-control" value="<?=$season['max_participants']?>"></div>
<div class="col-md-4"><label class="form-label">Fee</label><input type="number" name="fee_amount" class="form-control" step="0.01" value="<?=$season['fee_amount']?>"></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>