<?php
return [
    // ── Sports Catalog ──
    ['GET',  '/sports',                          'SportController@index',       'sports.view'],
    ['GET',  '/sports/create',                   'SportController@create',      'sports.manage'],
    ['POST', '/sports',                          'SportController@store',       'sports.manage'],
    ['GET',  '/sports/view/{id}',                'SportController@show',        'sports.view'],
    ['GET',  '/sports/{id}/edit',                'SportController@edit',        'sports.manage'],
    ['POST', '/sports/{id}',                     'SportController@update',      'sports.manage'],
    ['POST', '/sports/{id}/delete',              'SportController@destroy',     'sports.manage'],

    // ── Categories ──
    ['GET',  '/sports/categories',               'SportController@categories',  'sports.manage'],
    ['POST', '/sports/categories',               'SportController@storeCategory','sports.manage'],
    ['POST', '/sports/categories/{id}',          'SportController@updateCategory','sports.manage'],

    // ── Seasons ──
    ['GET',  '/sports/seasons',                  'SeasonController@index',      'sports.view'],
    ['GET',  '/sports/seasons/create',           'SeasonController@create',     'sports.manage'],
    ['POST', '/sports/seasons',                  'SeasonController@store',      'sports.manage'],
    ['GET',  '/sports/seasons/{id}/edit',        'SeasonController@edit',       'sports.manage'],
    ['POST', '/sports/seasons/{id}',             'SeasonController@update',     'sports.manage'],

    // ── Coaches ──
    ['GET',  '/sports/coaches',                  'CoachController@index',       'sports.view'],
    ['GET',  '/sports/coaches/create',           'CoachController@create',      'sports.manage'],
    ['POST', '/sports/coaches',                  'CoachController@store',       'sports.manage'],
    ['GET',  '/sports/coaches/{id}',             'CoachController@show',        'sports.view'],
    ['GET',  '/sports/coaches/{id}/edit',        'CoachController@edit',        'sports.manage'],
    ['POST', '/sports/coaches/{id}',             'CoachController@update',      'sports.manage'],

    // ── Classes ──
    ['GET',  '/sports/classes',                  'ClassController@index',       'classes.view'],
    ['GET',  '/sports/classes/create',           'ClassController@create',      'classes.manage'],
    ['POST', '/sports/classes',                  'ClassController@store',       'classes.manage'],
    ['GET',  '/sports/classes/{id}',             'ClassController@show',        'classes.view'],
    ['GET',  '/sports/classes/{id}/edit',        'ClassController@edit',        'classes.manage'],
    ['POST', '/sports/classes/{id}',             'ClassController@update',      'classes.manage'],
    ['GET',  '/sports/classes/{id}/attendance',  'ClassController@attendance',  'classes.attendance'],
    ['POST', '/sports/classes/{id}/attendance',  'ClassController@saveAttendance','classes.attendance'],
    ['POST', '/sports/classes/{id}/enroll',      'ClassController@enroll',      'classes.manage'],
    ['POST', '/sports/classes/{id}/withdraw',    'ClassController@withdraw',    'classes.manage'],

    // ── Teams ──
    ['GET',  '/sports/teams',                    'TeamController@index',        'teams.view'],
    ['GET',  '/sports/teams/create',             'TeamController@create',       'teams.manage'],
    ['POST', '/sports/teams',                    'TeamController@store',        'teams.manage'],
    ['GET',  '/sports/teams/{id}',               'TeamController@show',         'teams.view'],
    ['GET',  '/sports/teams/{id}/edit',          'TeamController@edit',         'teams.manage'],
    ['POST', '/sports/teams/{id}',               'TeamController@update',       'teams.manage'],
    ['POST', '/sports/teams/{id}/add-member',    'TeamController@addMember',    'teams.manage'],
    ['POST', '/sports/teams/{id}/remove-member', 'TeamController@removeMember', 'teams.manage'],

    // ── Leagues ──
    ['GET',  '/sports/leagues',                  'LeagueController@index',      'sports.view'],
    ['GET',  '/sports/leagues/create',           'LeagueController@create',     'sports.manage'],
    ['POST', '/sports/leagues',                  'LeagueController@store',      'sports.manage'],
    ['GET',  '/sports/leagues/{id}',             'LeagueController@show',       'sports.view'],
    ['GET',  '/sports/leagues/{id}/edit',        'LeagueController@edit',       'sports.manage'],
    ['POST', '/sports/leagues/{id}',             'LeagueController@update',     'sports.manage'],
    ['POST', '/sports/leagues/{id}/register-team','LeagueController@registerTeam','sports.manage'],

    // ── Matches ──
    ['GET',  '/sports/matches',                  'MatchController@index',       'sports.view'],
    ['GET',  '/sports/matches/create',           'MatchController@create',      'sports.manage'],
    ['POST', '/sports/matches',                  'MatchController@store',       'sports.manage'],
    ['GET',  '/sports/matches/{id}',             'MatchController@show',        'sports.view'],
    ['POST', '/sports/matches/{id}/result',      'MatchController@recordResult','sports.manage'],
    ['POST', '/sports/matches/{id}/status',      'MatchController@updateStatus','sports.manage'],

    // ── Tournaments ──
    ['GET',  '/sports/tournaments',              'TournamentController@index',  'tournaments.view'],
    ['GET',  '/sports/tournaments/create',       'TournamentController@create', 'tournaments.manage'],
    ['POST', '/sports/tournaments',              'TournamentController@store',  'tournaments.manage'],
    ['GET',  '/sports/tournaments/{id}',         'TournamentController@show',   'tournaments.view'],
    ['GET',  '/sports/tournaments/{id}/edit',    'TournamentController@edit',   'tournaments.manage'],
    ['POST', '/sports/tournaments/{id}',         'TournamentController@update', 'tournaments.manage'],
    ['POST', '/sports/tournaments/{id}/register','TournamentController@register','tournaments.manage'],

    // ── Equipment ──
    ['GET',  '/sports/equipment',                'EquipmentController@index',   'equipment.view'],
    ['GET',  '/sports/equipment/create',         'EquipmentController@create',  'equipment.manage'],
    ['POST', '/sports/equipment',                'EquipmentController@store',   'equipment.manage'],
    ['GET',  '/sports/equipment/{id}/edit',      'EquipmentController@edit',    'equipment.manage'],
    ['POST', '/sports/equipment/{id}',           'EquipmentController@update',  'equipment.manage'],
    ['GET',  '/sports/equipment/rentals',        'EquipmentController@rentals', 'equipment.view'],
    ['POST', '/sports/equipment/rentals',        'EquipmentController@storeRental','equipment.manage'],
    ['POST', '/sports/equipment/rentals/{id}/return','EquipmentController@returnRental','equipment.manage'],

    // ── Lockers ──
    ['GET',  '/sports/lockers',                  'LockerController@index',      'sports.view'],
    ['POST', '/sports/lockers/rooms',            'LockerController@storeRoom',  'sports.manage'],
    ['POST', '/sports/lockers',                  'LockerController@storeLocker','sports.manage'],
    ['POST', '/sports/lockers/{id}/assign',      'LockerController@assign',     'sports.manage'],
    ['POST', '/sports/lockers/{id}/release',     'LockerController@release',    'sports.manage'],

    // ── Sport Memberships ──
    ['GET',  '/sports/memberships',              'SportMembershipController@index','sports.view'],
    ['POST', '/sports/memberships',              'SportMembershipController@store','sports.manage'],

    // ── Achievements ──
    ['GET',  '/sports/achievements',             'AchievementController@index', 'sports.view'],
    ['GET',  '/sports/achievements/create',      'AchievementController@create','sports.manage'],
    ['POST', '/sports/achievements',             'AchievementController@store', 'sports.manage'],

    // ── API / DataTable ──
    ['GET',  '/api/sports/datatable',            'SportApiController@sportsDatatable',   'sports.view'],
    ['GET',  '/api/sports/seasons/datatable',    'SportApiController@seasonsDatatable',  'sports.view'],
    ['GET',  '/api/sports/coaches/datatable',    'SportApiController@coachesDatatable',  'sports.view'],
    ['GET',  '/api/sports/classes/datatable',    'SportApiController@classesDatatable',  'classes.view'],
    ['GET',  '/api/sports/teams/datatable',      'SportApiController@teamsDatatable',    'teams.view'],
    ['GET',  '/api/sports/leagues/datatable',    'SportApiController@leaguesDatatable',  'sports.view'],
    ['GET',  '/api/sports/matches/datatable',    'SportApiController@matchesDatatable',  'sports.view'],
    ['GET',  '/api/sports/tournaments/datatable','SportApiController@tournamentsDatatable','tournaments.view'],
    ['GET',  '/api/sports/equipment/datatable',  'SportApiController@equipmentDatatable','equipment.view'],
    ['GET',  '/api/sports/equipment/rentals/datatable','SportApiController@rentalsDatatable','equipment.view'],
    ['GET',  '/api/sports/memberships/datatable','SportApiController@membershipsDatatable','sports.view'],
    ['GET',  '/api/sports/achievements/datatable','SportApiController@achievementsDatatable','sports.view'],
    ['GET',  '/api/sports/list',                 'SportApiController@sportsList',        'sports.view'],
    ['GET',  '/api/sports/coaches/list',         'SportApiController@coachesList',       'sports.view'],
    ['GET',  '/api/sports/teams/list',           'SportApiController@teamsList',         'sports.view'],
];