<?php
declare(strict_types=1);

return [
    ['GET',  '/scheduling',                          'Scheduling\Controllers\SchedulingController@dashboard',      ['auth'], 'scheduling.view'],
    ['GET',  '/scheduling/rules',                    'Scheduling\Controllers\SchedulingController@rules',           ['auth'], 'scheduling.manage_rules'],
    ['GET',  '/scheduling/rules/create',             'Scheduling\Controllers\SchedulingController@createRule',      ['auth'], 'scheduling.manage_rules'],
    ['POST', '/scheduling/rules',                    'Scheduling\Controllers\SchedulingController@storeRule',       ['auth', 'csrf'], 'scheduling.manage_rules'],
    ['POST', '/scheduling/rules/{id:\d+}/toggle',    'Scheduling\Controllers\SchedulingController@toggleRule',      ['auth', 'csrf'], 'scheduling.manage_rules'],
    ['POST', '/scheduling/rules/{id:\d+}/delete',    'Scheduling\Controllers\SchedulingController@deleteRule',      ['auth', 'csrf'], 'scheduling.manage_rules'],
    ['GET',  '/scheduling/conflicts',                'Scheduling\Controllers\SchedulingController@conflicts',       ['auth'], 'scheduling.view'],
    ['POST', '/scheduling/conflicts/{id:\d+}/resolve','Scheduling\Controllers\SchedulingController@resolveConflict',['auth', 'csrf'], 'scheduling.resolve'],
    ['GET',  '/scheduling/requests',                 'Scheduling\Controllers\SchedulingController@changeRequests',  ['auth'], 'scheduling.manage_requests'],
    ['POST', '/scheduling/requests/{id:\d+}/approve','Scheduling\Controllers\SchedulingController@approveRequest', ['auth', 'csrf'], 'scheduling.manage_requests'],
    ['POST', '/scheduling/requests/{id:\d+}/reject', 'Scheduling\Controllers\SchedulingController@rejectRequest',  ['auth', 'csrf'], 'scheduling.manage_requests'],
    ['POST', '/scheduling/check-conflicts',          'Scheduling\Controllers\SchedulingController@checkConflicts',  ['auth', 'csrf'], 'scheduling.view'],
];
