<?php

declare(strict_types=1);

$router->get(
    '/',
    'InstallController@index'
);

$router->get(
    '/install',
    'InstallController@index'
);

$router->get(
    '/install/create-admin',
    'InstallController@createAdmin'
);

$router->post(
    '/install/create-admin',
    'InstallController@storeAdmin'
);

$router->get(
    '/login',
    'LoginController@index'
);

$router->post(
    '/login',
    'LoginController@login'
);

$router->get(
    '/dashboard',
    'DashboardController@index'
);
$router->get(
    '/users',
    'UserController@index'
);
$router->get(
    '/users/create',
    'UserController@create'
);

$router->post(
    '/users/create',
    'UserController@store'
);
$router->get(
    '/users/edit',
    'UserController@edit'
);

$router->post(
    '/users/edit',
    'UserController@update'
);

$router->post(
    '/users/toggle-status',
    'UserController@toggleStatus'
);

$router->get(
    '/users/reset-password',
    'UserController@resetPasswordForm'
);

$router->post(
    '/users/reset-password',
    'UserController@resetPassword'
);
$router->get(
    '/roles',
    'RoleController@index'
);

$router->get(
    '/roles/create',
    'RoleController@create'
);

$router->post(
    '/roles/create',
    'RoleController@store'
);

$router->get(
    '/roles/edit',
    'RoleController@edit'
);

$router->post(
    '/roles/edit',
    'RoleController@update'
);

$router->post(
    '/roles/toggle-status',
    'RoleController@toggleStatus'
);
$router->get(
    '/permissions',
    'PermissionController@index'
);

$router->get(
    '/permissions/create',
    'PermissionController@create'
);

$router->post(
    '/permissions/create',
    'PermissionController@store'
);

$router->get(
    '/permissions/edit',
    'PermissionController@edit'
);

$router->post(
    '/permissions/edit',
    'PermissionController@update'
);

$router->post(
    '/permissions/toggle-status',
    'PermissionController@toggleStatus'
);
$router->get(
    '/roles/permissions',
    'RoleController@permissions'
);

$router->post(
    '/roles/permissions',
    'RoleController@savePermissions'
);
$router->get(
    '/403',
    'AccessDeniedController@index'
);
$router->get(
    '/organizations',
    'OrganizationController@index'
);

$router->get(
    '/organizations/create',
    'OrganizationController@create'
);

$router->post(
    '/organizations/create',
    'OrganizationController@store'
);

$router->get(
    '/organizations/edit',
    'OrganizationController@edit'
);

$router->post(
    '/organizations/edit',
    'OrganizationController@update'
);

$router->post(
    '/organizations/toggle-status',
    'OrganizationController@toggleStatus'
);
$router->get(
    '/branches',
    'BranchController@index'
);

$router->get(
    '/branches/create',
    'BranchController@create'
);

$router->post(
    '/branches/create',
    'BranchController@store'
);

$router->get(
    '/branches/edit',
    'BranchController@edit'
);

$router->post(
    '/branches/edit',
    'BranchController@update'
);

$router->post(
    '/branches/toggle-status',
    'BranchController@toggleStatus'
);
$router->get(
    '/departments',
    'DepartmentController@index'
);

$router->get(
    '/departments/create',
    'DepartmentController@create'
);

$router->post(
    '/departments/create',
    'DepartmentController@store'
);

$router->get(
    '/departments/edit',
    'DepartmentController@edit'
);

$router->post(
    '/departments/edit',
    'DepartmentController@update'
);

$router->post(
    '/departments/toggle-status',
    'DepartmentController@toggleStatus'
);
$router->get(
    '/positions',
    'PositionController@index'
);

$router->get(
    '/positions/create',
    'PositionController@create'
);

$router->post(
    '/positions/create',
    'PositionController@store'
);

$router->get(
    '/positions/edit',
    'PositionController@edit'
);

$router->post(
    '/positions/edit',
    'PositionController@update'
);

$router->post(
    '/positions/toggle-status',
    'PositionController@toggleStatus'
);
$router->get(
    '/ranks',
    'RankController@index'
);

$router->get(
    '/ranks/create',
    'RankController@create'
);

$router->post(
    '/ranks/create',
    'RankController@store'
);

$router->get(
    '/ranks/edit',
    'RankController@edit'
);

$router->post(
    '/ranks/edit',
    'RankController@update'
);

$router->post(
    '/ranks/toggle-status',
    'RankController@toggleStatus'
);
$router->get(
    '/states',
    'StateController@index'
);

$router->get(
    '/states/create',
    'StateController@create'
);

$router->post(
    '/states/create',
    'StateController@store'
);

$router->get(
    '/states/edit',
    'StateController@edit'
);

$router->post(
    '/states/edit',
    'StateController@update'
);

$router->post(
    '/states/toggle-status',
    'StateController@toggleStatus'
);
$router->get(
    '/counties',
    'CountyController@index'
);

$router->get(
    '/counties/create',
    'CountyController@create'
);

$router->post(
    '/counties/create',
    'CountyController@store'
);

$router->get(
    '/counties/edit',
    'CountyController@edit'
);

$router->post(
    '/counties/edit',
    'CountyController@update'
);

$router->post(
    '/counties/toggle-status',
    'CountyController@toggleStatus'
);
$router->get(
    '/payams',
    'PayamController@index'
);

$router->get(
    '/payams/create',
    'PayamController@create'
);

$router->post(
    '/payams/create',
    'PayamController@store'
);

$router->get(
    '/payams/edit',
    'PayamController@edit'
);

$router->post(
    '/payams/edit',
    'PayamController@update'
);

$router->post(
    '/payams/toggle-status',
    'PayamController@toggleStatus'
);
$router->get(
    '/employees',
    'EmployeeController@index'
);

$router->get(
    '/employees/create',
    'EmployeeController@create'
);

$router->post(
    '/employees/create',
    'EmployeeController@store'
);

$router->get(
    '/employees/edit',
    'EmployeeController@edit'
);

$router->post(
    '/employees/edit',
    'EmployeeController@update'
);

$router->get(
    '/employees/show',
    'EmployeeController@show'
);
$router->post(
    '/employees/family/create',
    'EmployeeFamilyController@store'
);

$router->post(
    '/employees/family/update',
    'EmployeeFamilyController@update'
);

$router->post(
    '/employees/family/deactivate',
    'EmployeeFamilyController@deactivate'
);
$router->post(
    '/employees/documents/create',
    'EmployeeDocumentController@store'
);

$router->post(
    '/employees/documents/deactivate',
    'EmployeeDocumentController@deactivate'
);

$router->post(
    '/employees/documents/toggle-status',
    'EmployeeDocumentController@toggleStatus'
);

$router->get(
    '/employees/documents/view',
    'EmployeeDocumentController@view'
);
$router->post(
    '/employees/training/create',
    'EmployeeTrainingController@store'
);

$router->post(
    '/employees/training/toggle-status',
    'EmployeeTrainingController@toggleStatus'
);

$router->get(
    '/employees/training/certificate',
    'EmployeeTrainingController@viewCertificate'
);
$router->post(
    '/employees/training/create',
    'EmployeeTrainingController@store'
);

$router->post(
    '/employees/training/update',
    'EmployeeTrainingController@update'
);

$router->post(
    '/employees/training/toggle-status',
    'EmployeeTrainingController@toggleStatus'
);

$router->get(
    '/employees/training/certificate',
    'EmployeeTrainingController@viewCertificate'
);
/*
|--------------------------------------------------------------------------
| Employee Transfer History
|--------------------------------------------------------------------------
*/

$router->post(
    '/employees/transfers/create',
    'EmployeeTransferController@store'
);

$router->post(
    '/employees/transfers/update',
    'EmployeeTransferController@update'
);

$router->post(
    '/employees/transfers/toggle-status',
    'EmployeeTransferController@toggleStatus'
);

$router->get(
    '/employees/transfers/document',
    'EmployeeTransferController@viewDocument'
);
/*
|--------------------------------------------------------------------------
| Employee Rank Promotion History
|--------------------------------------------------------------------------
*/

$router->post(
    '/employees/promotions/create',
    'EmployeeRankPromotionController@store'
);

$router->post(
    '/employees/promotions/toggle-status',
    'EmployeeRankPromotionController@toggleStatus'
);

$router->get(
    '/employees/promotions/document',
    'EmployeeRankPromotionController@viewDocument'
);
$router->post(
    '/employees/promotions/create',
    'EmployeeRankPromotionController@store'
);

$router->post(
    '/employees/promotions/update',
    'EmployeeRankPromotionController@update'
);

$router->post(
    '/employees/promotions/toggle-status',
    'EmployeeRankPromotionController@toggleStatus'
);

$router->get(
    '/employees/promotions/document',
    'EmployeeRankPromotionController@viewDocument'
);
/*
|--------------------------------------------------------------------------
| Dynamic Form Management
|--------------------------------------------------------------------------
*/

$router->get(
    '/dynamic-forms',
    'DynamicFormController@index'
);

$router->post(
    '/dynamic-forms/create',
    'DynamicFormController@store'
);

$router->post(
    '/dynamic-forms/update',
    'DynamicFormController@update'
);

$router->post(
    '/dynamic-forms/publish',
    'DynamicFormController@publish'
);

$router->post(
    '/dynamic-forms/archive',
    'DynamicFormController@archive'
);
$router->get(
    '/dynamic-forms/designer',
    'DynamicFormController@designer'
);

$router->post(
    '/dynamic-forms/sections/create',
    'DynamicFormController@storeSection'
);

$router->post(
    '/dynamic-forms/sections/update',
    'DynamicFormController@updateSection'
);
$router->post(
    '/dynamic-forms/fields/create',
    'DynamicFormController@storeField'
);

$router->post(
    '/dynamic-forms/fields/update',
    'DynamicFormController@updateField'
);
$router->get(
    '/dynamic-forms/preview',
    'DynamicFormController@preview'
);
$router->post(
    '/dynamic-forms/submit',
    'DynamicFormController@submit'
);
$router->post(
    '/dynamic-forms/delete',
    'DynamicFormController@delete'
);
$router->post(
    '/dynamic-forms/sections/deactivate',
    'DynamicFormController@deactivateSection'
);
$router->post(
    '/dynamic-forms/fields/deactivate',
    'DynamicFormController@deactivateField'
);
$router->post(
    '/dynamic-forms/fields/reorder',
    'DynamicFormController@reorderFields'
);
$router->get(
    '/logout',
    'LoginController@logout'
);