<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

// use SoapClient;
// use SoapFault;

// Route::post('public/road-maintenance-project', 'RoadMaintenanceProjectController@store');
// Route::post('public/road-maintenance-project/{id}/edit', 'RoadMaintenanceProjectController@update');

// Route::post('public/road-observation-problems/{id}/edit', 'RoadObservationController@update');
// Route::middleware('cors:api')->get('public/danger-point/get-user-provinces', 'DangerPointPublicController@getUserProvince');

// Route::post('public/danger-point/create', 'DangerPointPublicController@storeDanger');
// Route::post('public/danger-point/{id}/edit', 'DangerPointPublicController@updateDanger');
// Route::post('public/danger-point/details', 'DangerPointPublicController@storeDangerDetails');
// Route::post('public/danger-point/accident', 'DangerPointPublicController@storeDangerAccident');
// Route::post('public/danger-point/details/{id}/edit', 'DangerPointPublicController@updateDangerDetails');
// Route::post('public/danger-point/accident/{id}/edit', 'DangerPointPublicController@updateDangerAccident');
// Route::post('public/danger-point/images', 'DangerPointPublicController@storeDangerImages');
// Route::get('public/danger-point/getlist', 'DangerPointPublicController@getDangerPoint');
// Route::middleware('cors:api')->get('public/danger-point/getlist-admin', 'DangerPointPublicController@getDangerPointAdmin');
// Route::get('public/danger-point/{id}/getacclist', 'DangerPointPublicController@getDangerAccidents');
// Route::post('public/danger-point/images/upload', 'DangerPointPublicController@storeDangerPreviewImage');
// Route::post('public/danger-point/images/delete', 'DangerPointPublicController@destroyDangerPreviewImage');
// Route::get('public/danger-point/{id}/preview/{op}', 'DangerPointPublicController@getDangerPointPreview');
// Route::post('public/danger-point/images/files', 'DangerPointPublicController@uploadDangerPointFiles');
// Route::post('public/danger-point/images/files/delete', 'DangerPointPublicController@destroyDangerFilesImage');
// Route::post('public/danger-point/status/province-submit', 'DangerPointPublicController@provinceFinalSubmit');
// Route::post('public/danger-point/{id}/delete', 'DangerPointPublicController@destroyDanger');
// Route::post('public/danger-point/status/admin-submit', 'DangerPointPublicController@adminSubmitStatus');
// Route::post('public/danger-point/delete/acc', 'DangerPointPublicController@destroyDangerPointAccident');

// // Route::middleware('cors:api')->get('public/road-maintenance-project/getlist', 'RoadMaintenanceProjectPublicController@getMaintenanceProjectList');
// // Route::get('public/road-maintenance-project/{id}/getproject', 'RoadMaintenanceProjectPublicController@getMaintenanceProject');
// // Route::post('public/road-maintenance-project/create', 'RoadMaintenanceProjectPublicController@storeMaintenanceProject');
// // Route::post('public/road-maintenance-project/{id}/edit', 'RoadMaintenanceProjectPublicController@updateMaintenanceProject');
// // Route::get('public/road-maintenance-project/{id}/get-distance', 'RoadMaintenanceProjectPublicController@getMaintenanceProjectDistance');
// // Route::post('public/road-maintenance-project/{id}/edit-distance', 'RoadMaintenanceProjectPublicController@updateMaintenanceProjectDistance');
// // Route::post('public/road-maintenance-project/{id}/submit-distance', 'RoadMaintenanceProjectPublicController@submitMaintenanceProjectDistance');
// // Route::post('public/road-maintenance-project/{id}/submit', 'RoadMaintenanceProjectPublicController@submitMaintenanceProject');
// // Route::post('public/road-maintenance-project/{id}/delete', 'RoadMaintenanceProjectPublicController@destroyMaintenanceProject');
// // Route::get('public/road-maintenance-project/{id}/get-distance-update', 'RoadMaintenanceProjectPublicController@getMaintenanceProjectDistanceUpdate');
// // Route::post('public/road-maintenance-project/{id}/edit-distance-update', 'RoadMaintenanceProjectPublicController@updateMaintenanceProjectDistanceUpdate');
// // Route::get('public/road-maintenance-project/{id}/get-distance-update-list', 'RoadMaintenanceProjectPublicController@getMaintenanceProjectDistanceUpdateList');
// // Route::post('public/road-maintenance-project/history-images/upload', 'RoadMaintenanceProjectPublicController@storeMaintenanceProjectHistoryImage');
// // Route::post('public/road-maintenance-project/history-images/delete-image', 'RoadMaintenanceProjectPublicController@destroyMaintenanceProjectHistoryImage');
// // Route::get('public/road-maintenance-project/getstat', 'RoadMaintenanceProjectPublicController@getMaintenanceProjectProvinceStat');
// // Route::get('public/road-maintenance-project/getpoints', 'RoadMaintenanceProjectPublicController@public/road-construction-rural/getpoints');
// // Route::post('public/road-maintenance-project/{id}/submit-history', 'RoadMaintenanceProjectPublicController@submitMaintenanceProjectHistory');


// Route::middleware('cors:api')->get('public/road-maintenance-project/getlist', 'TestController@getMaintenanceProjectList');
// Route::get('public/road-maintenance-project/{id}/getproject', 'TestController@getMaintenanceProject');
// Route::post('public/road-maintenance-project/create', 'TestController@storeMaintenanceProject');
// Route::post('public/road-maintenance-project/{id}/edit', 'TestController@updateMaintenanceProject');
// Route::get('public/road-maintenance-project/{id}/get-distance', 'TestController@getMaintenanceProjectDistance');
// Route::post('public/road-maintenance-project/{id}/edit-distance', 'TestController@updateMaintenanceProjectDistance');
// Route::post('public/road-maintenance-project/{id}/submit-distance', 'TestController@submitMaintenanceProjectDistance');
// Route::post('public/road-maintenance-project/{id}/submit', 'TestController@submitMaintenanceProject');
// Route::post('public/road-maintenance-project/{id}/delete', 'TestController@destroyMaintenanceProject');
// Route::get('public/road-maintenance-project/{id}/get-distance-update', 'TestController@getMaintenanceProjectDistanceUpdate');
// Route::post('public/road-maintenance-project/{id}/edit-distance-update', 'TestController@updateMaintenanceProjectDistanceUpdate');
// Route::get('public/road-maintenance-project/{id}/get-distance-update-list', 'TestController@getMaintenanceProjectDistanceUpdateList');
// Route::post('public/road-maintenance-project/history-images/upload', 'TestController@storeMaintenanceProjectHistoryImage');
// Route::post('public/road-maintenance-project/history-images/delete-image', 'TestController@destroyMaintenanceProjectHistoryImage');
// Route::get('public/road-maintenance-project/getstat', 'TestController@getMaintenanceProjectProvinceStat');
// Route::get('public/road-maintenance-project/getpoints', 'TestController@public/road-construction-rural/getpoints');
// Route::post('public/road-maintenance-project/{id}/submit-history', 'TestController@submitMaintenanceProjectHistory');




// ////// road construction rural
// Route::get('public/road-construction-rural/getlist', 'RoadConstructionRuralPublicController@getConstructionRuralList');
// Route::get('public/road-construction-rural/{id}/getproject', 'RoadConstructionRuralPublicController@getConstructionRural');
// Route::post('public/road-construction-rural/create', 'RoadConstructionRuralPublicController@storeConstructionRural');
// Route::post('public/road-construction-rural/{id}/edit', 'RoadConstructionRuralPublicController@updateConstructionRural');
// Route::get('public/road-construction-rural/{id}/get-distance', 'RoadConstructionRuralPublicController@getConstructionRuralDistance');
// Route::post('public/road-construction-rural/{id}/edit-distance', 'RoadConstructionRuralPublicController@updateConstructionRuralDistance');
// Route::post('public/road-construction-rural/{id}/submit-distance', 'RoadConstructionRuralPublicController@submitConstructionRuralDistance');
// Route::post('public/road-construction-rural/{id}/submit', 'RoadConstructionRuralPublicController@submitConstructionRural');
// Route::post('public/road-construction-rural/{id}/delete', 'RoadConstructionRuralPublicController@destroyConstructionRural');
// Route::get('public/road-construction-rural/{id}/get-distance-update', 'RoadConstructionRuralPublicController@getConstructionRuralDistanceUpdate');
// Route::post('public/road-construction-rural/{id}/edit-distance-update', 'RoadConstructionRuralPublicController@updateConstructionRuralDistanceUpdate');
// Route::get('public/road-construction-rural/{id}/get-distance-update-list', 'RoadConstructionRuralPublicController@getConstructionRuralDistanceUpdateList');
// Route::post('public/road-construction-rural/history-images/upload', 'RoadConstructionRuralPublicController@storeConstructionRuralHistoryImage');
// Route::post('public/road-construction-rural/history-images/delete-image', 'RoadConstructionRuralPublicController@destroyConstructionRuralHistoryImage');
// Route::get('public/road-construction-rural/getstat', 'RoadConstructionRuralPublicController@getConstructionRuralProvinceStat');
// Route::get('public/road-construction-rural/getpoints', 'RoadConstructionRuralPublicController@indexPoints');
// Route::post('public/road-construction-rural/{id}/submit-history', 'RoadConstructionRuralPublicController@submitConstructionRuralHistory');

// //// road technical building

// Route::get('public/road-technical-building/getlist', 'RoadTechnicalBuildingPublicController@getTechnicalBuildingList');
// Route::get('public/road-technical-building/{id}/getproject', 'RoadTechnicalBuildingPublicController@getTechnicalBuilding');
// Route::get('public/road-technical-building/{id}/get-distance', 'RoadTechnicalBuildingPublicController@getTechnicalBuildingDistance');
// Route::get('public/road-technical-building/{id}/get-distance-update', 'RoadTechnicalBuildingPublicController@getTechnicalBuildingDistanceUpdate');
// Route::get('public/road-technical-building/{id}/get-distance-update-list', 'RoadTechnicalBuildingPublicController@getTechnicalBuildingDistanceUpdateList');
// Route::get('public/road-technical-building/getstat', 'RoadTechnicalBuildingPublicController@getTechnicalBuildingProvinceStat');
// Route::get('public/road-technical-building/getpoints', 'RoadTechnicalBuildingPublicController@indexPoints');
// Route::post('public/road-technical-building/{id}/edit-distance-update', 'RoadTechnicalBuildingPublicController@updateTechnicalBuildingDistanceUpdate');
// Route::post('public/road-technical-building/{id}/edit-distance', 'RoadTechnicalBuildingPublicController@updateTechnicalBuildingDistance');
// Route::post('public/road-technical-building/{id}/submit-distance', 'RoadTechnicalBuildingPublicController@submitTechnicalBuildingDistance');
// Route::post('public/road-technical-building/{id}/submit', 'RoadTechnicalBuildingPublicController@submitTechnicalBuilding');
// Route::post('public/road-technical-building/{id}/delete', 'RoadTechnicalBuildingPublicController@destroyTechnicalBuilding');
// Route::post('public/road-technical-building/history-images/upload', 'RoadTechnicalBuildingPublicController@storeTechnicalBuildingHistoryImage');
// Route::post('public/road-technical-building/history-images/delete-image', 'RoadTechnicalBuildingPublicController@destroyTechnicalBuildingHistoryImage');
// Route::post('public/road-technical-building/create', 'RoadTechnicalBuildingPublicController@storeTechnicalBuilding');
// Route::post('public/road-technical-building/{id}/edit', 'RoadTechnicalBuildingPublicController@updateTechnicalBuilding');
// Route::post('public/road-technical-building/{id}/submit-history', 'RoadTechnicalBuildingPublicController@submitTechnicalBuildingHistory');


// /// road danger prevention

// Route::get('public/road-danger-prevention/getlist', 'RoadDangerPreventionPublicController@getDangerPreventionList');
// Route::get('public/road-danger-prevention/{id}/getproject', 'RoadDangerPreventionPublicController@getDangerPrevention');
// Route::get('public/road-danger-prevention/{id}/get-distance', 'RoadDangerPreventionPublicController@getDangerPreventionDistance');
// Route::get('public/road-danger-prevention/{id}/get-distance-update', 'RoadDangerPreventionPublicController@getDangerPreventionDistanceUpdate');
// Route::get('public/road-danger-prevention/{id}/get-distance-update-list', 'RoadDangerPreventionPublicController@getDangerPreventionDistanceUpdateList');
// Route::get('public/road-danger-prevention/getstat', 'RoadDangerPreventionPublicController@getDangerPreventionProvinceStat');
// Route::get('public/road-danger-prevention/getpoints', 'RoadDangerPreventionPublicController@indexPoints');
// Route::post('public/road-danger-prevention/{id}/edit-distance-update', 'RoadDangerPreventionPublicController@updateDangerPreventionDistanceUpdate');
// Route::post('public/road-danger-prevention/{id}/edit-distance', 'RoadDangerPreventionPublicController@updateDangerPreventionDistance');
// Route::post('public/road-danger-prevention/{id}/submit-distance', 'RoadDangerPreventionPublicController@submitDangerPreventionDistance');
// Route::post('public/road-danger-prevention/{id}/submit', 'RoadDangerPreventionPublicController@submitDangerPrevention');
// Route::post('public/road-danger-prevention/{id}/delete', 'RoadDangerPreventionPublicController@destroyDangerPrevention');
// Route::post('public/road-danger-prevention/history-images/upload', 'RoadDangerPreventionPublicController@storeDangerPreventionHistoryImage');
// Route::post('public/road-danger-prevention/history-images/delete-image', 'RoadDangerPreventionPublicController@destroyDangerPreventionHistoryImage');
// Route::post('public/road-danger-prevention/create', 'RoadDangerPreventionPublicController@storeDangerPrevention');
// Route::post('public/road-danger-prevention/{id}/edit', 'RoadDangerPreventionPublicController@updateDangerPrevention');
// Route::post('public/road-danger-prevention/{id}/submit-history', 'RoadDangerPreventionPublicController@submitDangerPreventionHistory');


// /// road upgrade safety

// Route::get('public/road-upgrade-safety/getlist', 'RoadUpgradeSafetyPublicController@getUpgradeSafetyList');
// Route::get('public/road-upgrade-safety/{id}/getproject', 'RoadUpgradeSafetyPublicController@getUpgradeSafety');
// Route::get('public/road-upgrade-safety/{id}/get-distance', 'RoadUpgradeSafetyPublicController@getUpgradeSafetyDistance');
// Route::get('public/road-upgrade-safety/{id}/get-distance-update', 'RoadUpgradeSafetyPublicController@getUpgradeSafetyDistanceUpdate');
// Route::get('public/road-upgrade-safety/{id}/get-distance-update-list', 'RoadUpgradeSafetyPublicController@getUpgradeSafetyDistanceUpdateList');
// Route::get('public/road-upgrade-safety/getstat', 'RoadUpgradeSafetyPublicController@getUpgradeSafetyProvinceStat');
// Route::get('public/road-upgrade-safety/getpoints', 'RoadUpgradeSafetyPublicController@indexPoints');
// Route::post('public/road-upgrade-safety/{id}/edit-distance-update', 'RoadUpgradeSafetyPublicController@updateUpgradeSafetyDistanceUpdate');
// Route::post('public/road-upgrade-safety/{id}/edit-distance', 'RoadUpgradeSafetyPublicController@updateUpgradeSafetyDistance');
// Route::post('public/road-upgrade-safety/{id}/submit-distance', 'RoadUpgradeSafetyPublicController@submitUpgradeSafetyDistance');
// Route::post('public/road-upgrade-safety/{id}/submit', 'RoadUpgradeSafetyPublicController@submitUpgradeSafety');
// Route::post('public/road-upgrade-safety/{id}/delete', 'RoadUpgradeSafetyPublicController@destroyUpgradeSafety');
// Route::post('public/road-upgrade-safety/history-images/upload', 'RoadUpgradeSafetyPublicController@storeUpgradeSafetyHistoryImage');
// Route::post('public/road-upgrade-safety/history-images/delete-image', 'RoadUpgradeSafetyPublicController@destroyUpgradeSafetyHistoryImage');
// Route::post('public/road-upgrade-safety/create', 'RoadUpgradeSafetyPublicController@storeUpgradeSafety');
// Route::post('public/road-upgrade-safety/{id}/edit', 'RoadUpgradeSafetyPublicController@updateUpgradeSafety');
// Route::post('public/road-upgrade-safety/{id}/submit-history', 'RoadUpgradeSafetyPublicController@submitUpgradeSafetyHistory');

// /// road tollhouse management

// Route::get('public/road-tollhouse-management/getlist-public', 'RoadTollhouseManagementPublicController@getTollhouseManagementListPublic');
// Route::get('public/road-tollhouse-management/getlist', 'RoadTollhouseManagementPublicController@getTollhouseManagementList');
// Route::get('public/road-tollhouse-management/{id}/getproject', 'RoadTollhouseManagementPublicController@getTollhouseManagement');
// Route::get('public/road-tollhouse-management/{id}/get-distance', 'RoadTollhouseManagementPublicController@getTollhouseManagementDistance');
// Route::get('public/road-tollhouse-management/{id}/get-distance-update', 'RoadTollhouseManagementPublicController@getTollhouseManagementDistanceUpdate');
// Route::get('public/road-tollhouse-management/{id}/get-distance-update-list', 'RoadTollhouseManagementPublicController@getTollhouseManagementDistanceUpdateList');
// Route::get('public/road-tollhouse-management/getstat', 'RoadTollhouseManagementPublicController@getTollhouseManagementProvinceStat');
// Route::get('public/road-tollhouse-management/getpoints', 'RoadTollhouseManagementPublicController@indexPoints');
// Route::post('public/road-tollhouse-management/{id}/edit-distance-update', 'RoadTollhouseManagementPublicController@updateTollhouseManagementDistanceUpdate');
// Route::post('public/road-tollhouse-management/{id}/edit-distance', 'RoadTollhouseManagementPublicController@updateTollhouseManagementDistance');
// Route::post('public/road-tollhouse-management/{id}/submit-distance', 'RoadTollhouseManagementPublicController@submitTollhouseManagementDistance');
// Route::post('public/road-tollhouse-management/{id}/submit', 'RoadTollhouseManagementPublicController@submitTollhouseManagement');
// Route::post('public/road-tollhouse-management/{id}/delete', 'RoadTollhouseManagementPublicController@destroyTollhouseManagement');
// Route::post('public/road-tollhouse-management/history-images/upload', 'RoadTollhouseManagementPublicController@storeTollhouseManagementHistoryImage');
// Route::post('public/road-tollhouse-management/history-images/delete-image', 'RoadTollhouseManagementPublicController@destroyTollhouseManagementHistoryImage');
// Route::post('public/road-tollhouse-management/create', 'RoadTollhouseManagementPublicController@storeTollhouseManagement');
// Route::post('public/road-tollhouse-management/{id}/edit', 'RoadTollhouseManagementPublicController@updateTollhouseManagement');
// Route::post('public/road-tollhouse-management/{id}/submit-history', 'RoadTollhouseManagementPublicController@submitTollhouseManagementHistory');

// ////// 141 routes

// Route::post('public/get-accident-points', 'AccidentPointController@indexFor141');
// Route::post('public/get-tollhouse', 'RahdariPointController@indexFor141');

// //// statics data     geojson
// Route::get('provinces35geojson', 'GeoJsonController@GetProvinces35');
// Route::middleware('cors:api')->get('provinces35geojsonbi', 'GeoJsonController@GetProvinces35BI');
// Route::get('cities430geojson', 'GeoJsonController@GetCities430');




// ///// 



// /////   barname bodje excells

// Route::middleware('cors:api')->post('bbindicators', 'BB_Project_Indicator@index');
// Route::middleware('cors:api')->post('bbindicators-by-uid', 'BB_Project_Indicator@index_by_unique_id');
// Route::middleware('cors:api')->post('bbindicators-update', 'BB_Project_Indicator@update');

// Route::middleware('cors:api')->post('bbopeningall', 'BB_Opening_Controller@index');

// Route::middleware('cors:api')->post('bbpriority', 'BB_Priority_Controller@index');

// Route::middleware('cors:api')->post('bbjahesh', 'BB_Jahesh_Controller@index');
// Route::middleware('cors:api')->post('bbjahesh-update', 'BB_Jahesh_Controller@update');

// Route::middleware('cors:api')->get('danger-points-result', 'DangerPointController@danger_points_result');
// Route::middleware('cors:api')->post('danger-points-result', 'DangerPointController@danger_points_result');
// Route::middleware('cors:api')->post('danger-points-result-chart', 'DangerPointController@danger_points_result_chart');
// Route::middleware('cors:api')->post('danger-points-result-new', 'DangerPointController@danger_points_result_new');



// //// ghargah zemestani
// //// weather
// Route::middleware('cors:api')->get('/WStat/all', 'WeatherNoticeController@index');
// Route::middleware('cors:api')->post('/WStat/update', 'WeatherNoticeController@update');
// Route::middleware('cors:api')->post('/WStat/store', 'WeatherNoticeController@store');
// Route::middleware('cors:api')->post('/WStat/delete', 'WeatherNoticeController@destroy');

// // Route::middleware('cors:api')->post('danger-point/get-data', 'DangerPointPublicController@get_data');

// //// coridor ha
// ///
// Route::middleware('cors:api')->post('getcooridordata', 'CoridorsController@get_data');
// Route::middleware('cors:api')->get('/RahesEsential/all', 'CoridorsController@index');
// Route::middleware('cors:api')->post('/RahesEsential/all', 'CoridorsController@get_data'); ///index change to get_data
// Route::middleware('cors:api')->post('/RahesEsential/update', 'CoridorsController@update');
// Route::middleware('cors:api')->post('/RahesEsential/store', 'CoridorsController@store');
// Route::middleware('cors:api')->post('/RahesEsential/delete', 'CoridorsController@destroy');

// //// camp

// Route::middleware('cors')->get('camp', 'CampController@view');
// Route::middleware('cors')->get('camp/store', 'CampController@store');
// Route::middleware('cors')->get('camp/edit', 'CampController@edit');
// Route::middleware('cors')->get('camp/update', 'CampController@update');
// Route::middleware('cors')->get('camp/delete', 'CampController@destroy');
// Route::middleware('cors')->get('camp/get', 'CampController@show');
// Route::middleware('cors')->get('camp/map/{id}', 'CampController@show_on_map');

// Route::middleware('cors:api')->post('camp/storeDevelop', 'CampController@storeDevelop');
// Route::middleware('cors:api')->post('camp/editDevelop/{id}', 'CampController@editDevelop');

// //=======================================ResearchDevelop:::::::::maxter:::::::::::::
// Route::middleware('cors:api')->get('/resdevlp/all', 'ResearchDevController@index');
// Route::middleware('cors:api')->post('/resdevlp/download/{id}', 'ResearchDevController@download');
// Route::middleware('cors:api')->post('/resdevlp/{id}/processRegistration', 'ResearchDevController@processRegistration');
// Route::middleware('cors:api')->get('/resdevlp/homepage', 'ResearchDevController@homepage');

// //=======================================SetadProvince:::::::::maxter:::::::::::::
// Route::middleware('cors:api')->get('/setad-province/all', 'SetadProvinceController@index');
// //=======================================NewRandD:::::::::maxter:::::::::::::
// Route::middleware('cors:api')->get('/newrandd/all', 'NewRandDCtrl@index');
// Route::middleware('cors:api')->post('/newrandd/delete/{id}', 'NewRandDCtrl@destroy');
// Route::middleware('cors:api')->post('/newrandd/operation/{id}', 'NewRandDCtrl@operationStatus');
// Route::middleware('cors:api')->get('/newrandd/homepage', 'NewRandDCtrl@homepage');
// Route::middleware('cors:api')->get('/newrandd/test', 'NewRandDCtrl@test');
// Route::middleware('cors:api')->get('/newrandd/search', 'NewRandDCtrl@search');
// //=============================first page==================================milad
// Route::middleware('cors:api')->get('/statics/randd', 'NewRandDCtrl@statics');
// //=============================Search API==================================Amirreza
// Route::middleware('cors:api')->get('rnd/search', 'NewRandDCtrl@search');




// //// test and develoup routes
// Route::get('/test', 'TestController@index');

// // Route::get('/miladof', 'UserPermissionController@createOstaniRole');
// Route::get('/mil', 'CoridorsController@get_coridor_10_report');
// Route::get('/mila', 'CoridorsController@coridorReportById');
// Route::get('/milaa', 'CoridorsController@update_road_items');
// Route::get('/public/accident-points', 'AccidentPointController@indexPublic');
// Route::post('/public/accident-points/{point}', 'AccidentPointController@update');
// Route::get('/public/accident-251-points', 'Accident251PointController@indexPublic');
// Route::post('/public/accident-251-points/{point}', 'Accident251PointController@update');

// Route::middleware('cors')->get('report/total-items-group-province', 'TotalRahdariProjectsReportController@get_items');
// Route::middleware('cors')->get('report/total-items-group-province-city', 'TotalRahdariProjectsReportController@get_items_city');
// Route::middleware('cors')->get('report/total-group-province', 'TotalRahdariProjectsReportController@excel1');
// Route::middleware('cors')->get('report/total-group-province-city', 'TotalRahdariProjectsReportController@excel1_city');
// /////
// Route::middleware('cors')->get('statics/road-patrol', 'RoadPatrolProjectController@statics');
// Route::middleware('cors')->get('statics/road-item', 'RoadItemsProjectController@statics');
// Route::middleware('cors')->get('statics/road-observed', 'RoadObservationController@statics');
// Route::middleware('cors')->get('statics/camp', 'CampController@statics');

// ///////
// // Route::middleware('cors')->get('road-observed/done', 'RoadObservationController@project_done');
// Route::middleware('cors')->get('road-observed/pending', 'RoadObservationController@project_pending');



// ///// items and sub items
Route::middleware('cors:api')->get('/get-items-and-subs', 'TotalRahdariProjectsReportController@get_sub_items');

// // sharareh begin 
// // Route::middleware('cors:api')->get('/get-items-on-map', 'RoadItemsProjectController@show_item');
// // sharareh end

// Route::middleware('cors:api')->get('/public/rahdarKhanehMapFilter', 'RahdariPointController@MapFilterForRahdarkhaneh');


// //// bi routes
// Route::middleware('cors:api')->get('bi', 'BiController@index');
// Route::middleware('cors:api')->get('milad', 'BiController@index_n');
// Route::middleware('cors:api')->post('bi', 'BiController@index');



// Route::middleware('cors:api')->get('danger-point-new-report-danesh', 'DangerPointController@get_danger_report_danesh');






// /// User Controller Routes [Kheradmand]


// Route::get('permissions', 'Api\PermissionsController@index');
// Route::get('permissions/create', 'Api\PermissionsController@create');
// Route::post('permissions/create', 'Api\PermissionsController@store');
// Route::delete('permissions/delete/{id}', 'Api\PermissionsController@delete');
// Route::get('permissions/edit/{id}', 'Api\PermissionsController@edit');
// Route::put('permissions/edit/{id}/update', 'Api\PermissionsController@update');
// // CRUD & Submit info Front




// // Amirreza | Forgot password
// Route::post('password/reset', 'Api\ForgotPasswordController@sendResetCodeMobile');
// Route::post('password/reset/{token}', 'Api\ForgotPasswordController@getCodeMobile')->name('password.reset.token');
// Route::post('password/change/{token}', 'Api\ForgotPasswordController@changePassword')->name('password.reset.change');

// // Amirreza | Status routes


// // Amirreza | CMMS Routes
// Route::middleware('cors:api')->get('cmms/all', 'Api\CMMSController@index');
// Route::middleware('cors:api')->get('cmms/public/all', 'Api\CMMSController@publicIndex');
// Route::middleware('cors:api')->get('cmms/getVehicleData', 'Api\CMMSController@getVehicleData');
Route::middleware('cors:api')->get('cmms/getVehicleActivity', 'Api\CMMSController@getVehicleActivity');
// Route::middleware('cors:api')->get('cmms/getVehicleLastPoints', 'Api\CMMSController@getVehicleLastPoints');
Route::middleware('cors:api')->get('cmms/getVehicleActivitySummary', 'Api\CMMSController@getVehicleActivitySummary');

// Route::middleware('cors:api')->post('cmms/create', 'Api\CMMSController@store');
// Route::middleware('cors:api')->post('cmms/machine', 'Api\CMMSController@getByMachineCode');
// Route::middleware('cors:api')->get('cmms/provinces/all', 'Api\CMMSController@getProvinces');
// Route::middleware('cors:api')->post('cmms/search', 'Api\CMMSController@search');
Route::middleware('cors:api')->get('cmms/{id}/show', 'Api\CMMSController@edit');

// /// milad  |  cmms cities
Route::middleware('cors:api')->get('cmms/cities', 'Api\CMMSController@get_cities');

// // road items
// Route::post('road-items-amir', 'RoadItemsProjectController@store');

// Route::get('randd/role', 'Api\RandDVoting\AdminVoterController@role');
// Route::get('randd/result/{id}', 'Api\RandDVoting\VoterController@showResult');
// Route::get('randd/result', 'Api\RandDVoting\VoterController@showUserPaper');


// Route::get('finance/maintenance', 'Api\FinanceProjectController@getMaintenanceProjectList');
// Route::get('finance/upgradeSafety', 'Api\FinanceProjectController@getUpgradeSafetyList');
// Route::get('finance/danger', 'Api\FinanceProjectController@getDangerPreventionList');
// Route::get('finance/technical', 'Api\FinanceProjectController@getTechnicalBuildingList');
// Route::get('finance/tollhouse', 'Api\FinanceProjectController@getTollhouseManagementListPublic');

// // singles
// Route::get('finance/danger/show', 'Api\FinanceProjectController@showDangerPreventionData');
// Route::get('finance/upgradesafety/show', 'Api\FinanceProjectController@showUpgradeSafetyData');
// Route::get('finance/maintanance/show', 'Api\FinanceProjectController@showMaintenanceProjectData');
// Route::get('finance/technical/show', 'Api\FinanceProjectController@showTechnicalBuildingData');
// Route::get('finance/tollhouse/show', 'Api\FinanceProjectController@showTollhouseManagementData');


// Route::middleware('cors:api')->get('randd/research_members', 'ResearchDevController@researchMembers');
// Route::middleware('cors:api')->get('randd/interface_members', 'ResearchDevController@interfaceMembers');


// /// Bi APIs | Amirreza
// Route::middleware('cors:api')->get('bi/subtitleCounts', 'Api\BiController@getSubtitleCounts');
Route::middleware('cors:api')->get('bi/status-diagram', 'Api\BiController@getDiagram');
Route::middleware('cors:api')->get('bi/status-diagram-tile', 'Api\BiController@getDiagramForTile');
Route::middleware('cors:api')->get('bi/rahdari-activity', 'Api\BiController@getItems');
Route::middleware('cors:api')->get('bi/road-infrastructure', 'Api\BiController@TollhousesCount');
Route::middleware('cors:api')->get('bi/average-progress-rahdari-projects', 'Api\BiController@averagePhysicalProgressRahdariProjects');
Route::middleware('cors:api')->get('bi/separation-project-type-rahdari-projects', 'Api\BiController@separationProjectTypeRahdariProjects');
Route::middleware('cors:api')->get('bi/separation-last-status-rahdari-projects', 'Api\BiController@separationLastStatusRahdariProjects');
Route::middleware('cors:api')->get('bi/separation-axis-type-rahdari-projects', 'Api\BiController@separationAxisTypeRahdariProjects');
Route::middleware('cors:api')->get('bi/percent-complaints-handled', 'Api\BiController@percentComplaintsHandled');
Route::middleware('cors:api')->get('bi/count-numbers-accident-points', 'Api\BiController@CountByNumbersAccidentPoints');
Route::middleware('cors:api')->get('bi/count-accident-points', 'Api\BiController@CountAccidentPoints');
Route::middleware('cors:api')->get('bi/road-item-project-item', 'Api\BiController@roadItemProjectItemChart');
Route::middleware('cors:api')->get('bi/separation-activity-type-rahdari-activities', 'Api\BiController@separationActivityTypeRahdariActivities');
Route::middleware('cors:api')->get('bi/separation-complain-type-rahdari-complains', 'Api\BiController@separationComplainTypeRahdariComplains');
Route::middleware('cors:api')->get('bi/primary-estimates-damages', 'Api\BiController@primaryEstimatesDamages');
Route::middleware('cors:api')->get('bi/total-length-damaged-axes', 'Api\BiController@totalLengthDamagedAxes');

// /// bama begin
// // Route::get('bama', 'BamaController@showList');
// // Route::get('/bama/{id}', 'BamaController@getSingleData');
// // Route::get('/public/bamamap', 'BamaController@indexformap');
// Route::get('/public/bamamap', 'BamaController@indexformap');
// Route::post('/public/bama', 'BamaController@indexwithquery');
// // Route::post('/public/bamatest', 'BamaController@indexwithqueryy');
// // Route::post('road-patrol-test', 'RoadPatrolProjectController@store');
// /// bama end



Route::get('axis-report', 'CoridorsController@axisReportByLatAndLng')->name('api.axis-report');
// Route::get('axis-report/single', 'CoridorsController@getAxisReportDataFromID');
// Route::post('change', function () {
//     $data = App\Models\UserActivityLog::create([
//         'user_id' => '470',
//         'description' => 'test'
//     ]);

//     return $data;
// });




// Route::middleware('cors:api')->get('/road-observed', 'RoadObservationController@indexDevelop');
// Route::middleware('cors:api')->post('/road-observed/referral', 'RoadObservationController@referralToOtherCities');
// Route::middleware('cors:api')->get('/road-observed/count', 'RoadObservationController@roadObservedCounts');

// Route::get('axis-excel', 'DevelopController@AxisExcel');




// ///// milad for update data
// Route::get('data-road-observed', 'DevelopController@update_road_observed_times');
// Route::post('fuckingMostaphaAndDanesh', 'DevelopController@fuckingMostaphaAndDanesh');

 Route::get('axis-report-excel', 'CoridorsController@axisReportExcelRedirector');

// Route::post('/proposal/update/{proposal}', 'ProposalController@update');
// Route::get('/proposal/histories/{proposal}', 'ProposalController@getHistory');


// /// Lawmakers
Route::get('get-units', 'LawmakersController@getUnits');
Route::get('get-constituencies/{province_id}', 'LawmakersController@getConstituencies');
// Route::get('lawmakers/index', 'LawmakersController@index');
// Route::get('lawmakers/show/{lawmakers}', 'LawmakersController@show');
// Route::post('lawmakers/dev', 'LawmakersController@dev');


// Route::post('dev-img', 'DevelopController@uploadImage');



// Route::get('miladtest', function () {
//     // $client = new SoapClient("http://172.30.5.36/webservice/smspro.asmx?WSDL", ['trace' => true, 'cache_wsdl' => WSDL_CACHE_MEMORY]);
//     $client = new SoapClient("http://172.30.5.36/webservice/sms.asmx?WSDL");
//     $result = $client->Send(
//         array(
//             'Username' => 'RMS',
//             'Password' => 'Rms@141',
//             'ShortCode' => '1000141',
//             'Cellphones' => '09106610969',
//             'Message' => 'salam azizam',
//             'Farsi' => true
//         )
//     );
//     dd($result);
// });

// Route::get('add-perm', 'DevelopController@addPermissions');

// ////// for 141 toll house   rahdar khane ha
Route::middleware('cors:api')->get('/get_road_toll', 'RahdariPointController@get_road_toll_for_141');
