<?php $this->push('styles')?><link rel="stylesheet" href="<?=module_asset('sports','css/sports.css')?>"><?php $this->endPush()?>
<div class="d-flex justify-content-between align-items-center mb-3"><h4 class="mb-0"><i class="fas fa-calendar me-2"></i><?=lang('sports.seasons')?></h4>
<?php if(auth_can('sports.manage')):?><a href="/sports/seasons/create" class="btn btn-primary btn-sm"><i class="fas fa-plus me-1"></i>New Season</a><?php endif;?></div>
<div class="card"><div class="card-body">
<table id="seasons-table" class="table table-striped w-100" data-url="/api/sports/seasons/datatable"
    data-columns='[{"data":"season_code","title":"Code"},{"data":"name_en","title":"Season"},{"data":"sport_name","title":"Sport"},{"data":"start_date","title":"Start"},{"data":"end_date","title":"End"},{"data":"status_badge","title":"Status","orderable":false},{"data":"actions","title":"","orderable":false}]'></table>
</div></div>
<?php $this->push('scripts')?><script>document.addEventListener('DOMContentLoaded',()=>DataTableHelper.init('seasons-table'));</script><?php $this->endPush()?>