change the bundle and fix the bugs
This commit is contained in:
@@ -17,7 +17,7 @@ use App\Http\Controllers\V3\Dashboard\ObservedItemController;
|
||||
use App\Http\Controllers\V3\Dashboard\OtpManagementController;
|
||||
use App\Http\Controllers\V3\Dashboard\Reports\RoadItemsReportController;
|
||||
use App\Http\Controllers\V3\Dashboard\RoadMaintenanceStationController;
|
||||
use App\Http\Controllers\V3\Dashboard\RoadPatrolProjectController;
|
||||
use App\Http\Controllers\V3\Dashboard\RoadPatrol\ReportController;
|
||||
use App\Http\Controllers\V3\Dashboard\SafetyAndPrivacy\OperatorController;
|
||||
use App\Http\Controllers\V3\Dashboard\SafetyAndPrivacy\OperatorReportController;
|
||||
use App\Http\Controllers\V3\Dashboard\SafetyAndPrivacy\SupervisorController;
|
||||
@@ -28,7 +28,6 @@ use App\Http\Controllers\V3\NotificationController;
|
||||
use App\Http\Controllers\V3\PermissionManagementController;
|
||||
use App\Http\Controllers\V3\ProfileController;
|
||||
use App\Http\Controllers\V3\RahdaranController;
|
||||
use App\Http\Controllers\V3\RoadPatrole\ReportController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('admin/permissions', function () {
|
||||
@@ -200,28 +199,24 @@ Route::prefix('road_patrol')
|
||||
->group(function () {
|
||||
Route::prefix('details')
|
||||
->name('details.')
|
||||
->controller(\App\Http\Controllers\V3\RoadPatrole\DetailController::class)
|
||||
->controller(\App\Http\Controllers\V3\Dashboard\RoadPatrol\DetailController::class)
|
||||
->group(function () {
|
||||
Route::get('/{roadPatrol}', 'show')
|
||||
->name('show');
|
||||
Route::get('/{roadPatrol}', 'show')->name('show');
|
||||
Route::get('/machines/{roadPatrol}', 'roadPatrolMachine')->name('roadPatrolMachine');
|
||||
Route::get('/rahdaran/{roadPatrol}', 'roadPatrolRahdar')->name('roadPatrolRahdar');
|
||||
});
|
||||
|
||||
Route::prefix('operator')
|
||||
->name('operator.')
|
||||
->controller(App\Http\Controllers\V3\RoadPatrole\OperatorController::class)
|
||||
->controller(\App\Http\Controllers\V3\Dashboard\RoadPatrol\OperatorController::class)
|
||||
->group(function () {
|
||||
Route::get('/', 'index')
|
||||
->middleware('permission:add-road-patrol')
|
||||
->name('index');
|
||||
|
||||
Route::get('/report', 'operatorCartableReport')
|
||||
->name('cartableReport');
|
||||
Route::get('/', 'index')->middleware('permission:add-road-patrol')->name('index');
|
||||
Route::get('/excel', 'excel')->name('excel');
|
||||
Route::post('/delete/{roadPatrol}', 'delete')
|
||||
->middleware('permission:partial-delete-road-patrol|complete-delete-road-patrol')
|
||||
->name('delete');
|
||||
Route::post('/store', 'store')
|
||||
->middleware('permission:add-road-patrol')
|
||||
->middleware(['permission:add-road-patrol', 'validate-store-access'])
|
||||
->name('store');
|
||||
});
|
||||
|
||||
@@ -235,19 +230,17 @@ Route::prefix('road_patrol')
|
||||
Route::get('/province_activity_excel', 'provinceActivityExcel')->name('provinceActivityExcel');
|
||||
Route::get('/activities_on_map', 'activitiesOnMap')->name('activitiesOnMap');
|
||||
Route::get('/show_on_map/{roadPatrol}', 'showOnMap')->name('showOnMap');
|
||||
Route::get('/{roadPatrol}', 'getReport')
|
||||
->name('getReport');
|
||||
Route::get('/{roadPatrol}', 'getReport')->name('getReport');
|
||||
});
|
||||
|
||||
Route::prefix('supervisor')
|
||||
->name('supervisor.')
|
||||
->controller(App\Http\Controllers\V3\RoadPatrole\SupervisorController::class)
|
||||
->controller(\App\Http\Controllers\V3\Dashboard\RoadPatrol\SupervisorController::class)
|
||||
->group(function () {
|
||||
Route::get('/','index')
|
||||
->middleware(['permission:show-road-patrol-supervise-cartable|show-road-patrol-supervise-cartable-province'])
|
||||
->name('index');
|
||||
Route::get('/report', 'supervisorCartableReport')
|
||||
->name('cartableReport');
|
||||
|
||||
Route::get('/excel', 'excel')->name('excel');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user