change nominatim original function
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\App;
|
||||
|
||||
Route::get('errors', 'V2\Dashboard\GeneralController@errors');
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
@@ -85,7 +87,7 @@ Route::prefix('road_patrols')->group(function () {
|
||||
Route::post('/store', 'V2\Dashboard\RoadPatrolProjectController@store');
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::prefix('report')->group(function () {
|
||||
Route::get('/map', 'V2\Dashboard\RoadPatrolProjectController@getAllDataToMap')->name('v2.road_patrols.report.map');
|
||||
Route::get('/', 'V2\Dashboard\RoadPatrolReportController@index')->name('v2.road_patrol.reports');
|
||||
@@ -95,10 +97,10 @@ Route::prefix('road_patrols')->group(function () {
|
||||
Route::get('/total-items-group-province-city', 'V2\Dashboard\RoadPatrolReportController@get_items_city');
|
||||
Route::get('/excel', 'V2\Dashboard\RoadPatrolReportController@roadPatrolsReportTable');
|
||||
Route::get('/{road_patrol}', 'V2\Dashboard\RoadPatrolProjectController@detail')->name('v2.road_patrols.detail');
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
Route::prefix('road_observations')->group(function () {
|
||||
@@ -133,7 +135,7 @@ Route::prefix('road_observations')->group(function () {
|
||||
Route::get('/index', 'V2\Dashboard\RoadObservationReportController@index')->name('v2.road_observations.reports');
|
||||
Route::get('pending', 'V2\Dashboard\RoadObservationController@pendingReport');
|
||||
Route::get('/report', 'V2\Dashboard\RoadObservationController@report');
|
||||
Route::get('/map', 'V2\Dashboard\RoadPatrolProjectController@map')->name('v2.road_patrols.report.map');
|
||||
Route::get('/map', 'V2\Dashboard\RoadPatrolProjectController@map')->name('v2.road_patrols.report.map');
|
||||
// Route::get('/map', 'V2\Dashboard\RoadPatrolProjectController@getAllDataToMap')->name('v2.road_patrols.report.map');
|
||||
// dd("rrr");
|
||||
Route::get('/report_table', 'V2\Dashboard\RoadObservationReportController@reportTable');
|
||||
@@ -192,7 +194,7 @@ Route::prefix('daily_accidents')->group(function () {
|
||||
}
|
||||
return abort(403);
|
||||
})->name('v2.daily_accidents.create');
|
||||
|
||||
|
||||
Route::get('map', function (Request $request) {
|
||||
return view('version2.dashboard_pages.accident_points.daily_accidents_map');
|
||||
})->name('v2.daily_accidents.map');
|
||||
@@ -210,9 +212,9 @@ Route::prefix('winter_camp')->group(function () {
|
||||
});
|
||||
|
||||
Route::prefix('rahdari_points')->group(function () {
|
||||
|
||||
|
||||
Route::get('/', function (Request $request) {
|
||||
if (Auth::user()->can('show-tollhouse') || Auth::user()->can('show-tollhouse-province') ) {
|
||||
if (Auth::user()->can('show-tollhouse') || Auth::user()->can('show-tollhouse-province')) {
|
||||
return view('version2.dashboard_pages.rahdari_points.create');
|
||||
}
|
||||
return abort(403);
|
||||
@@ -230,10 +232,10 @@ Route::prefix('receipt')->group(function () {
|
||||
Route::get('province-data', 'ReceiptReportController@provinceReceiptData');
|
||||
Route::get('city-data', 'ReceiptReportController@cityReceiptData');
|
||||
Route::get('/excel', 'ReceiptReportController@excelReport');
|
||||
|
||||
|
||||
});
|
||||
|
||||
Route::get('', 'ReceiptController@view')->name('v2.receipt');
|
||||
|
||||
Route::get('', 'ReceiptController@view')->name('v2.receipt');
|
||||
Route::get('show', 'ReceiptController@show');
|
||||
Route::get('get-damages', 'ReceiptController@getDamages');
|
||||
Route::post('store', 'ReceiptController@store');
|
||||
@@ -241,21 +243,21 @@ Route::prefix('receipt')->group(function () {
|
||||
Route::post('delete/{accident}', 'ReceiptController@delete');
|
||||
Route::get('get-damages/{accident}', 'ReceiptController@getAccidentDamages');
|
||||
Route::get('{accident}', 'ReceiptController@details');
|
||||
|
||||
|
||||
Route::get('send-to-insurance/{accident}', 'ReceiptController@sendToInsurance');
|
||||
|
||||
Route::post('upload-payment-info/{accident}', 'ReceiptController@uploadPaymentInfo');
|
||||
|
||||
Route::post('invoice-bill/{accident}', 'ReceiptController@invoiceBill');
|
||||
|
||||
|
||||
Route::post('call-payment-status/{accident}', 'ReceiptController@callPaymentStatus');
|
||||
|
||||
|
||||
Route::get('document-release/{accident}', 'ReceiptController@documentRelease');
|
||||
|
||||
|
||||
Route::get('send-sms-again/{accident}', 'ReceiptController@sendSmsAgain');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
// receipt end
|
||||
@@ -310,7 +312,7 @@ Route::prefix('safety_and_privacy')->group(function () {
|
||||
Route::get('/show', 'V2\Dashboard\SafetyAndPrivacyController@operatorShow');
|
||||
Route::get('/unserialize/judiciary_document/{safety_and_privacy}', 'V2\Dashboard\SafetyAndPrivacyController@unserialize');
|
||||
});
|
||||
|
||||
|
||||
Route::prefix('operator')->group(function () {
|
||||
Route::get('/first_step', 'V2\Dashboard\SafetyAndPrivacyController@operatorFirstStepView')->name('v2.safety_and_privacy.operator.create');
|
||||
Route::post('/first_step', 'V2\Dashboard\SafetyAndPrivacyController@operatorFirstStepStore');
|
||||
@@ -318,9 +320,9 @@ Route::prefix('safety_and_privacy')->group(function () {
|
||||
Route::post('/third_step/{safety_and_privacy}', 'V2\Dashboard\SafetyAndPrivacyController@operatorThirdStepStore');
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::prefix('report')->group(function () {
|
||||
|
||||
|
||||
Route::get('map', 'V2\Dashboard\SafetyAndPrivacyController@getAllDataToMap')->name('v2.safety_and_privacy.report.map');
|
||||
|
||||
Route::get('', 'V2\Dashboard\SafetyAndPrivacyReportController@index')->name('v2.safety_and_privacy.report');
|
||||
@@ -328,7 +330,7 @@ Route::prefix('safety_and_privacy')->group(function () {
|
||||
Route::get('total_group_province_city', 'V2\Dashboard\SafetyAndPrivacyReportController@totalGroupProvinceCity')->name('v2.safety_and_privacy.total_group_province_city');
|
||||
|
||||
Route::get('excel', 'V2\Dashboard\SafetyAndPrivacyReportController@safetyAndPrivacyExcel')->name('v2.safety_and_privacy.safety_and_privacy_excel');
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -339,9 +341,12 @@ Route::prefix('safety_and_privacy')->group(function () {
|
||||
|
||||
/** TEST routes begin */
|
||||
use Illuminate\Http\Request;
|
||||
Route::get('mamad', function (Request $request) {
|
||||
return \App\Models\Otp::where('phone_number', $request->phone_number)->latest()->first();
|
||||
});
|
||||
|
||||
if (App::environment('local')) {
|
||||
Route::get('otp', function (Request $request) {
|
||||
return \App\Models\Otp::where('phone_number', $request->phone_number)->latest()->first();
|
||||
});
|
||||
}
|
||||
/** TEST routes end */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user