<?php
declare(strict_types=1);

return [
    ['GET',  '/academy-contracts',                    'AcademyContracts\Controllers\AcademyContractController@index',     ['auth'], 'academy_contract.view'],
    ['GET',  '/academy-contracts/create',             'AcademyContracts\Controllers\AcademyContractController@create',    ['auth'], 'academy_contract.manage'],
    ['POST', '/academy-contracts',                    'AcademyContracts\Controllers\AcademyContractController@store',     ['auth', 'csrf'], 'academy_contract.manage'],
    ['GET',  '/academy-contracts/{id:\d+}',           'AcademyContracts\Controllers\AcademyContractController@show',      ['auth'], 'academy_contract.view'],
    ['GET',  '/academy-contracts/{id:\d+}/edit',      'AcademyContracts\Controllers\AcademyContractController@edit',      ['auth'], 'academy_contract.manage'],
    ['POST', '/academy-contracts/{id:\d+}',           'AcademyContracts\Controllers\AcademyContractController@update',    ['auth', 'csrf'], 'academy_contract.manage'],
    ['POST', '/academy-contracts/{id:\d+}/activate',  'AcademyContracts\Controllers\AcademyContractController@activate',  ['auth', 'csrf'], 'academy_contract.manage'],
    ['POST', '/academy-contracts/{id:\d+}/terminate', 'AcademyContracts\Controllers\AcademyContractController@terminate', ['auth', 'csrf'], 'academy_contract.manage'],

    ['GET',  '/academy-settlements',                  'AcademyContracts\Controllers\SettlementController@index',    ['auth'], 'academy_contract.settlement'],
    ['GET',  '/academy-settlements/{id:\d+}',         'AcademyContracts\Controllers\SettlementController@show',     ['auth'], 'academy_contract.settlement'],
    ['POST', '/academy-settlements/generate',         'AcademyContracts\Controllers\SettlementController@generate', ['auth', 'csrf'], 'academy_contract.settlement'],
    ['POST', '/academy-settlements/{id:\d+}/approve', 'AcademyContracts\Controllers\SettlementController@approve',  ['auth', 'csrf'], 'academy_contract.settlement'],
];
