<?php
declare(strict_types=1);

return [
    ['GET',  '/notifications/templates',              'Notifications\Controllers\NotificationController@templates',   ['auth'], 'sms.view_log'],
    ['POST', '/notifications/templates/{id}',         'Notifications\Controllers\NotificationController@updateTemplate', ['auth', 'csrf'], 'sms.edit_templates'],
    ['GET',  '/notifications/log',                    'Notifications\Controllers\NotificationController@log',         ['auth'], 'sms.view_log'],
    ['GET',  '/notifications/send',                   'Notifications\Controllers\NotificationController@sendForm',    ['auth'], 'sms.send_single'],
    ['POST', '/notifications/send',                   'Notifications\Controllers\NotificationController@send',        ['auth', 'csrf'], 'sms.send_single'],
    ['POST', '/notifications/send-bulk',              'Notifications\Controllers\NotificationController@sendBulk',    ['auth', 'csrf'], 'sms.send_bulk'],

    // Notification Triggers (Automated)
    ['GET',  '/notifications/triggers',               'Notifications\Controllers\TriggerController@index',            ['auth'], 'notification.triggers.view'],
    ['GET',  '/notifications/triggers/create',        'Notifications\Controllers\TriggerController@create',           ['auth'], 'notification.triggers.manage'],
    ['POST', '/notifications/triggers',               'Notifications\Controllers\TriggerController@store',            ['auth', 'csrf'], 'notification.triggers.manage'],
    ['GET',  '/notifications/triggers/{id}/edit',     'Notifications\Controllers\TriggerController@edit',             ['auth'], 'notification.triggers.manage'],
    ['POST', '/notifications/triggers/{id}',          'Notifications\Controllers\TriggerController@update',           ['auth', 'csrf'], 'notification.triggers.manage'],
    ['POST', '/notifications/triggers/{id}/toggle',   'Notifications\Controllers\TriggerController@toggle',           ['auth', 'csrf'], 'notification.triggers.manage'],
];