<?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-user-tie me-2"></i><?=lang('sports.coaches')?></h4>
<?php if(auth_can('sports.manage')):?><a href="/sports/coaches/create" class="btn btn-primary btn-sm"><i class="fas fa-plus me-1"></i>New Coach</a><?php endif;?></div>
<div class="card"><div class="card-body">
<table id="coaches-table" class="table table-striped w-100" data-url="/api/sports/coaches/datatable"
    data-columns='[{"data":"coach_code","title":"Code"},{"data":"full_name","title":"Name","orderable":false},{"data":"phone","title":"Phone"},{"data":"experience_years","title":"Exp (yr)"},{"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('coaches-table'));</script><?php $this->endPush()?>