<?php
declare(strict_types=1);

return [
    ['GET',  '/training-groups',                          'TrainingGroups\Controllers\TrainingGroupController@index',          ['auth'], 'training_group.view'],
    ['GET',  '/training-groups/create',                   'TrainingGroups\Controllers\TrainingGroupController@create',         ['auth'], 'training_group.manage'],
    ['POST', '/training-groups',                          'TrainingGroups\Controllers\TrainingGroupController@store',          ['auth', 'csrf'], 'training_group.manage'],
    ['GET',  '/training-groups/{id:\d+}',                 'TrainingGroups\Controllers\TrainingGroupController@show',           ['auth'], 'training_group.view'],
    ['GET',  '/training-groups/{id:\d+}/edit',            'TrainingGroups\Controllers\TrainingGroupController@edit',           ['auth'], 'training_group.manage'],
    ['POST', '/training-groups/{id:\d+}',                 'TrainingGroups\Controllers\TrainingGroupController@update',         ['auth', 'csrf'], 'training_group.manage'],
    ['POST', '/training-groups/{id:\d+}/toggle',          'TrainingGroups\Controllers\TrainingGroupController@toggle',         ['auth', 'csrf'], 'training_group.manage'],
    ['POST', '/training-groups/{id:\d+}/add-player',      'TrainingGroups\Controllers\TrainingGroupController@addPlayer',      ['auth', 'csrf'], 'training_group.manage'],
    ['POST', '/training-groups/{id:\d+}/remove-player',   'TrainingGroups\Controllers\TrainingGroupController@removePlayer',   ['auth', 'csrf'], 'training_group.manage'],
    ['POST', '/training-groups/{id:\d+}/transfer-player', 'TrainingGroups\Controllers\TrainingGroupController@transferPlayer', ['auth', 'csrf'], 'training_group.manage'],
    ['GET',  '/waiting-list',                             'TrainingGroups\Controllers\WaitingListController@index',            ['auth'], 'training_group.view'],
    ['POST', '/waiting-list/{id:\d+}/offer',              'TrainingGroups\Controllers\WaitingListController@offer',            ['auth', 'csrf'], 'training_group.manage'],
    ['POST', '/waiting-list/{id:\d+}/cancel',             'TrainingGroups\Controllers\WaitingListController@cancel',           ['auth', 'csrf'], 'training_group.manage'],

    // Group Transfer Requests
    ['GET',  '/transfer-requests',                        'TrainingGroups\Controllers\TransferRequestController@index',        ['auth'], 'training_group.manage'],
    ['GET',  '/transfer-requests/create',                 'TrainingGroups\Controllers\TransferRequestController@create',       ['auth'], 'training_group.manage'],
    ['POST', '/transfer-requests',                        'TrainingGroups\Controllers\TransferRequestController@store',        ['auth', 'csrf'], 'training_group.manage'],
    ['POST', '/transfer-requests/{id:\d+}/approve',       'TrainingGroups\Controllers\TransferRequestController@approve',      ['auth', 'csrf'], 'training_group.manage'],
    ['POST', '/transfer-requests/{id:\d+}/reject',        'TrainingGroups\Controllers\TransferRequestController@reject',       ['auth', 'csrf'], 'training_group.manage'],
];
