<?php
return [
    // Board Terms
    ['GET',  '/board/terms',                    'BoardTermController@index',       'board.view'],
    ['GET',  '/board/terms/datatable',          'BoardTermController@datatable',   'board.view'],
    ['GET',  '/board/terms/create',             'BoardTermController@create',      'board.manage'],
    ['POST', '/board/terms',                    'BoardTermController@store',       'board.manage'],
    ['GET',  '/board/terms/{id}',               'BoardTermController@show',        'board.view'],
    ['GET',  '/board/terms/{id}/edit',          'BoardTermController@edit',        'board.manage'],
    ['POST', '/board/terms/{id}',               'BoardTermController@update',      'board.manage'],
    ['POST', '/board/terms/{id}/delete',        'BoardTermController@delete',      'board.manage'],

    // Board Members
    ['GET',  '/board/members',                  'BoardMemberController@index',     'board.view'],
    ['GET',  '/board/members/datatable',        'BoardMemberController@datatable', 'board.view'],
    ['GET',  '/board/members/create',           'BoardMemberController@create',    'board.manage'],
    ['POST', '/board/members',                  'BoardMemberController@store',     'board.manage'],
    ['GET',  '/board/members/{id}/edit',        'BoardMemberController@edit',      'board.manage'],
    ['POST', '/board/members/{id}',             'BoardMemberController@update',    'board.manage'],
    ['POST', '/board/members/{id}/resign',      'BoardMemberController@resign',    'board.manage'],
    ['POST', '/board/members/{id}/delete',      'BoardMemberController@delete',    'board.manage'],

    // Committees
    ['GET',  '/board/committees',               'CommitteeController@index',       'board.view'],
    ['GET',  '/board/committees/datatable',     'CommitteeController@datatable',   'board.view'],
    ['GET',  '/board/committees/create',        'CommitteeController@create',      'board.manage'],
    ['POST', '/board/committees',               'CommitteeController@store',       'board.manage'],
    ['GET',  '/board/committees/{id}/edit',     'CommitteeController@edit',        'board.manage'],
    ['POST', '/board/committees/{id}',          'CommitteeController@update',      'board.manage'],
    ['POST', '/board/committees/{id}/add-member',    'CommitteeController@addMember',    'board.manage'],
    ['POST', '/board/committees/{id}/remove-member', 'CommitteeController@removeMember', 'board.manage'],

    // Meetings
    ['GET',  '/board/meetings',                 'MeetingController@index',         'board.view'],
    ['GET',  '/board/meetings/datatable',       'MeetingController@datatable',     'board.view'],
    ['GET',  '/board/meetings/create',          'MeetingController@create',        'board.manage'],
    ['POST', '/board/meetings',                 'MeetingController@store',         'board.manage'],
    ['GET',  '/board/meetings/{id}',            'MeetingController@show',          'board.view'],
    ['GET',  '/board/meetings/{id}/edit',       'MeetingController@edit',          'board.manage'],
    ['POST', '/board/meetings/{id}',            'MeetingController@update',        'board.manage'],
    ['POST', '/board/meetings/{id}/attendance', 'MeetingController@saveAttendance','board.manage'],
    ['POST', '/board/meetings/{id}/approve-minutes', 'MeetingController@approveMinutes', 'board.manage'],
    ['POST', '/board/meetings/{id}/status',     'MeetingController@changeStatus',  'board.manage'],

    // Resolutions
    ['GET',  '/board/resolutions',              'ResolutionController@index',      'board.resolutions'],
    ['GET',  '/board/resolutions/datatable',    'ResolutionController@datatable',  'board.resolutions'],
    ['GET',  '/board/resolutions/create',       'ResolutionController@create',     'board.resolutions'],
    ['POST', '/board/resolutions',              'ResolutionController@store',      'board.resolutions'],
    ['GET',  '/board/resolutions/{id}',         'ResolutionController@show',       'board.resolutions'],
    ['GET',  '/board/resolutions/{id}/edit',    'ResolutionController@edit',       'board.resolutions'],
    ['POST', '/board/resolutions/{id}',         'ResolutionController@update',     'board.resolutions'],
    ['POST', '/board/resolutions/{id}/vote',    'ResolutionController@recordVote', 'board.resolutions'],
    ['POST', '/board/resolutions/{id}/implement','ResolutionController@markImplemented','board.resolutions'],

    // Membership Transfers
    ['GET',  '/transfers',                      'TransferController@index',        'transfers.view'],
    ['GET',  '/transfers/datatable',            'TransferController@datatable',    'transfers.view'],
    ['GET',  '/transfers/create',               'TransferController@create',       'transfers.manage'],
    ['POST', '/transfers',                      'TransferController@store',        'transfers.manage'],
    ['GET',  '/transfers/{id}',                 'TransferController@show',         'transfers.view'],
    ['POST', '/transfers/{id}/status',          'TransferController@changeStatus', 'transfers.manage'],
    ['POST', '/transfers/{id}/document',        'TransferController@uploadDocument','transfers.manage'],
    ['POST', '/transfers/{id}/heir',            'TransferController@addHeir',      'transfers.manage'],
    ['POST', '/transfers/{id}/heir-delete',     'TransferController@removeHeir',   'transfers.manage'],
    ['POST', '/transfers/{id}/approve',         'TransferController@approve',      'transfers.approve'],
    ['POST', '/transfers/{id}/complete',        'TransferController@complete',     'transfers.approve'],

    // Transfer Types
    ['GET',  '/transfer-types',                 'TransferTypeController@index',    'transfers.manage'],
    ['GET',  '/transfer-types/datatable',       'TransferTypeController@datatable','transfers.manage'],
    ['GET',  '/transfer-types/create',          'TransferTypeController@create',   'transfers.manage'],
    ['POST', '/transfer-types',                 'TransferTypeController@store',    'transfers.manage'],
    ['GET',  '/transfer-types/{id}/edit',       'TransferTypeController@edit',     'transfers.manage'],
    ['POST', '/transfer-types/{id}',            'TransferTypeController@update',   'transfers.manage'],

    // Special Offers
    ['GET',  '/offers',                         'SpecialOfferController@index',    'offers.view'],
    ['GET',  '/offers/datatable',               'SpecialOfferController@datatable','offers.view'],
    ['GET',  '/offers/create',                  'SpecialOfferController@create',   'offers.manage'],
    ['POST', '/offers',                         'SpecialOfferController@store',    'offers.manage'],
    ['GET',  '/offers/{id}',                    'SpecialOfferController@show',     'offers.view'],
    ['GET',  '/offers/{id}/edit',               'SpecialOfferController@edit',     'offers.manage'],
    ['POST', '/offers/{id}',                    'SpecialOfferController@update',   'offers.manage'],
    ['POST', '/offers/{id}/apply',              'SpecialOfferController@applyToMember', 'offers.manage'],
];