<?php
declare(strict_types=1);

return [
    ['GET',  '/reservations',                    'Reservations\Controllers\ReservationController@index',    ['auth'], 'reservation.view'],
    ['GET',  '/reservations/create',             'Reservations\Controllers\ReservationController@create',   ['auth'], 'reservation.create'],
    ['POST', '/reservations',                    'Reservations\Controllers\ReservationController@store',    ['auth', 'csrf'], 'reservation.create'],
    ['GET',  '/reservations/calendar',           'Reservations\Controllers\ReservationController@calendar', ['auth'], 'reservation.view'],
    ['GET',  '/reservations/{id:\d+}',           'Reservations\Controllers\ReservationController@show',     ['auth'], 'reservation.view'],
    ['POST', '/reservations/{id:\d+}/confirm',   'Reservations\Controllers\ReservationController@confirm',  ['auth', 'csrf'], 'reservation.confirm'],
    ['POST', '/reservations/{id:\d+}/cancel',    'Reservations\Controllers\ReservationController@cancel',   ['auth', 'csrf'], 'reservation.cancel'],
    ['POST', '/reservations/{id:\d+}/checkin',   'Reservations\Controllers\ReservationController@checkIn',  ['auth', 'csrf'], 'reservation.view'],

    // Private Match Bookings
    ['GET',  '/private-matches',                    'Reservations\Controllers\PrivateMatchController@index',         ['auth'], 'reservation.view'],
    ['GET',  '/private-matches/create',             'Reservations\Controllers\PrivateMatchController@create',        ['auth'], 'reservation.create'],
    ['POST', '/private-matches',                    'Reservations\Controllers\PrivateMatchController@store',         ['auth', 'csrf'], 'reservation.create'],
    ['POST', '/private-matches/{id:\d+}/confirm',   'Reservations\Controllers\PrivateMatchController@confirm',      ['auth', 'csrf'], 'reservation.create'],
    ['POST', '/private-matches/{id:\d+}/cancel',    'Reservations\Controllers\PrivateMatchController@cancel',       ['auth', 'csrf'], 'reservation.create'],
    ['POST', '/private-matches/{id:\d+}/complete',  'Reservations\Controllers\PrivateMatchController@complete',     ['auth', 'csrf'], 'reservation.create'],
    ['POST', '/private-matches/{id:\d+}/pay',       'Reservations\Controllers\PrivateMatchController@recordPayment',['auth', 'csrf'], 'reservation.create'],
];
