<?php
declare(strict_types=1);

return [
    ['GET',  '/pricing',                'Pricing\Controllers\PricingController@index',  ['auth'], 'pricing.view'],
    ['GET',  '/pricing/{id:\d+}/edit',  'Pricing\Controllers\PricingController@edit',   ['auth'], 'pricing.edit'],
    ['POST', '/pricing/{id:\d+}',       'Pricing\Controllers\PricingController@update', ['auth', 'csrf'], 'pricing.edit'],

    // Special Discounts
    ['GET',  '/pricing/special-discounts',                  'Pricing\Controllers\SpecialDiscountController@index',        ['auth'], 'pricing.special_discounts.view'],
    ['GET',  '/pricing/special-discounts/create',           'Pricing\Controllers\SpecialDiscountController@create',       ['auth'], 'pricing.special_discounts.create'],
    ['POST', '/pricing/special-discounts',                  'Pricing\Controllers\SpecialDiscountController@store',        ['auth', 'csrf'], 'pricing.special_discounts.create'],
    ['GET',  '/pricing/special-discounts/{id:\d+}/edit',    'Pricing\Controllers\SpecialDiscountController@edit',         ['auth'], 'pricing.special_discounts.edit'],
    ['POST', '/pricing/special-discounts/{id:\d+}',         'Pricing\Controllers\SpecialDiscountController@update',       ['auth', 'csrf'], 'pricing.special_discounts.edit'],
    ['POST', '/pricing/special-discounts/{id:\d+}/toggle',  'Pricing\Controllers\SpecialDiscountController@toggleActive', ['auth', 'csrf'], 'pricing.special_discounts.edit'],
];