freshbitsweb / laravel-traveller

VS Code extension to travel through your Laravel app by just clicking on links.
5 stars 0 forks source link

Route -> Controller Not working #10

Open simabhyvikkgit opened 2 years ago

simabhyvikkgit commented 2 years ago

I installed this extension and i am not able to cntrl + click in routes. i am using namespace for controllers in group function.

// Route::namespace = NAMESPACE
Route::namespace ('Website')->group(function () {
    Route::get("/", "HomeController@home");`

i followed above structure, links working fine in logs file. also followed this: // Route::namespace = Website but not working at all.

simabhyvikkgit commented 2 years ago

still no any reply :(

gauravmak commented 2 years ago

Please make changes as per:

-Route::namespace = NAMESPACE
+Route::namespace = Website
-Route::namespace ('Website')->group(function () {
+Route::namespace('Website')->group(function () {
simabhyvikkgit commented 2 years ago

I am using admin.php file for prefix /admin defined in RouteServiceProvider.php.

also in web.php when you use default laravel auth like Auth::routes(); statement it stopped workingo on ctrl + click

gauravmak commented 2 years ago

Please share full code of the routes file.

simabhyvikkgit commented 2 years ago

routes/admin.php

`
<?php
Auth::routes();

// Route::namespace = Admin
Route::namespace('Admin')->group(function () {    

    Route::get('otp-login',function(){
       return view('auth.otp_login'); 
    });
    Route::post('otp-login','HomeController@otp_login')->name('otp-login');
    Route::post('send-otp','HomeController@send_otp');
    Route::post('sp/send-otp','SupportPersonBookingController@send_otp');
    Route::post('driver/send-otp','DriversController@send_otp');
    Route::get('test-login', 'Testcontroller@login');

    Route::get("/clear_cache", function () {
        Artisan::call('optimize:clear');
        Artisan::call('cache:clear');
        Artisan::call('view:clear');
        Artisan::call('route:clear');
        Artisan::call('config:clear');
    });

    Route::get("/", 'HomeController@index')->middleware(['lang_check', 'auth','UserActive']);
    Route::group(['middleware' => ['lang_check', 'auth', 'officeadmin','UserActive']], function () {

        Route::post('refund-extra-amount','SelfDriveBookingController@refund_extra_amount');

        Route::get('email-chk','ComplaintController@test');

        Route::get('test-play',function(){
            return view('tracking.play');
        });

        Route::get('get-customers-by-org/{id}','SelfDriveBookingController@get_customer_by_org');

        Route::post('get-customers','CustomersController@post_index');
        Route::get('get-customers','CustomersController@index');

        # new reports        
        Route::get("reports/transaction-report", "ReportsController@transaction")->name("reports.transaction")->middleware('userpermission:4');
        Route::post("reports/transaction-report", "ReportsController@transaction_post")->name("reports.transaction")->middleware('userpermission:4');
        Route::post('print-transaction-report', 'ReportsController@print_transaction_report');

        Route::get("reports/security-transaction", "ReportsController@security_transaction")->name("reports.security-transaction")->middleware('userpermission:4');
        Route::post("reports/security-transaction", "ReportsController@security_transaction_post")->name("reports.security-transaction")->middleware('userpermission:4');
        Route::post('print-security-transaction-report', 'ReportsController@print_security_transaction');

        Route::get("reports/service", "ReportsController@service")->name("reports.service")->middleware('userpermission:4');
        Route::post("reports/service", "ReportsController@service_post")->name("reports.service")->middleware('userpermission:4');
        Route::post('print-service-report', 'ReportsController@print_service');

        Route::get("reports/bookings", "ReportsController@bookings")->name("reports.bookings")->middleware('userpermission:4');
        Route::post("reports/bookings", "ReportsController@bookings_post")->name("reports.bookings")->middleware('userpermission:4');
        Route::post('print-bookings-report', 'ReportsController@print_bookings');

        Route::get("reports/cancelled", "ReportsController@cancelled")->name("reports.cancelled")->middleware('userpermission:4');
        Route::post("reports/cancelled", "ReportsController@cancelled_post")->name("reports.cancelled")->middleware('userpermission:4');
        Route::post('print-cancelled-report', 'ReportsController@print_cancelled');

        Route::get("reports/corporate", "ReportsController@corporate")->name("reports.corporate")->middleware('userpermission:4');
        Route::post("reports/corporate", "ReportsController@corporate_post")->name("reports.corporate")->middleware('userpermission:4');
        Route::post('print-corporate-report', 'ReportsController@print_corporate');

        Route::get('booking-update-requests','SelfDriveBookingController@booking_updates');

        Route::post('change-complaint-status','ComplaintController@change_status');
        Route::get('complaints/replies/{id}','ComplaintController@view');
        Route::get('complaints','ComplaintController@index');
        Route::post('replay-complaint','ComplaintController@reply');
        Route::post('assign-user','ComplaintController@assign_user');

        Route::get('msg','HomeController@msg');

        Route::get('support-person/escalated-bookings','SupportPersonBookingController@escalated_bookings');

        Route::get('tracking-history1','TrackingController@track_history');
        Route::get('tracking-history/{id}','TrackingController@history');
        Route::post('tracking-history1','TrackingController@history1');

        Route::get('single-vehicle/{id}', 'TrackingController@single_vehicle');
        Route::get('device-markers', 'TrackingController@markers');
        Route::get('track-vehicle/{deviceid}','TrackingController@track_vehicle');
        Route::get('tracking','TrackingController@index');
        Route::post('gmap','WorkshopPartnerController@gmap');
        Route::get('support-person/transactions/{id}','BookingsController@support_person_transactions');
        Route::post('view-fare-details','SelfDriveBookingController@view_fare_calculation');

        Route::post('dropoff-booking','SupportPersonBookingController@dropoff');
        Route::post('pickup-booking','SupportPersonBookingController@pickup');

        Route::get('support-person/bookings/{id}/edit','SupportPersonBookingController@edit');
        Route::post('support-person/bookings/update','SupportPersonBookingController@update');

        Route::get('support-person/completed-bookings','SupportPersonBookingController@completed');
        Route::post('support-person/completed-bookings','SupportPersonBookingController@completed_post');

        Route::get('support-person/bookings','SupportPersonBookingController@index');
        Route::post('support-person/bookings','SupportPersonBookingController@post_index');

        Route::get('view-service/{id}','ServiceRequestController@view');
        Route::post('end-service','ServiceRequestController@end_service');
        Route::post('start-service','ServiceRequestController@start_service');
        Route::get('service-requests/list','ServiceRequestController@sp_list');

        Route::post('start-movement','MovementController@start_movement');
        Route::post('end-movement','MovementController@end_movement');
        Route::get('movements/list','MovementController@sp_list');

        Route::resource('insurance-types','InsuranceTypeController');
        Route::post('delete-insurance-types','InsuranceTypeController@bulk_delete');

        Route::resource('insurers','InsurerController');
        Route::post('delete-insurers','InsurerController@bulk_delete');

        Route::get('payment-transactions','BookingsController@transactions');

        Route::get('view-breakdown/{person_id}','BookingsController@payment_breakdown');
        Route::post('accept-payment','BookingsController@accept_cash_payment');
        Route::get('received-payments','BookingsController@received');
        Route::get('pending-payments','BookingsController@pending');
        Route::post('received-payments','BookingsController@received_post');

        Route::get('escalated-bookings','SelfDriveBookingController@escalated_bookings');

        Route::post('assign-taxi-driver','BookingsController@assign_taxi');
        Route::get('available-drivers/{id}','BookingsController@drivers');
        Route::get('available-taxies/{id}','BookingsController@cars');
        Route::get('taxi-booking/view/{id}','BookingsController@view_details');

        Route::post('delete-rates','SettingsController@delete_rates');
        Route::post('delete-rate','SettingsController@delete_rate');
        Route::post('rate-settings/update','SettingsController@update_rate');
        Route::get('rate-settings/{id}/edit','SettingsController@edit_rate');
        Route::post('rate-settings/store','SettingsController@store_rate');
        Route::get('rate-settings/create','SettingsController@create_rate');

        Route::get('booking-history','SelfDriveBookingController@history');
        Route::get('movement-history','MovementController@history');
        Route::get('service-history','ServiceRequestController@history');
        Route::get('activate-company/{id}','CorporateCompanyController@activate');
        Route::get('deactivate-company/{id}','CorporateCompanyController@deactivate');

        Route::resource('companies','CorporateCompanyController')->middleware('userpermission:SO');
        Route::post('delete-companies', 'CorporateCompanyController@bulk_delete');

        Route::post('refund','SelfDriveBookingController@refund');
        Route::post('refund-security-amount','SelfDriveBookingController@refund_security_amount');

        Route::post('self-drive-bookings','SelfDriveBookingController@post_index');
        Route::get('self-drive-bookings','SelfDriveBookingController@index')->middleware('userpermission:SO');

        Route::get('completed-bookings','SelfDriveBookingController@completed');
        Route::post('completed-bookings','SelfDriveBookingController@completed_post');

        Route::resource('movements','MovementController')->middleware('userpermission:SO');
        Route::post('delete-movements', 'MovementController@bulk_delete');

        Route::post('get-cars','SelfDriveBookingController@get_vehicle');

        Route::post('products-filter','ProductController@index')->middleware('userpermission:SO')->name('products.filter');

        Route::post('products/get-models-by-vendor','ProductController@get_models_by_vendor');
        Route::resource('products','ProductController')->middleware('userpermission:SO');
        Route::post('delete-products', 'ProductController@bulk_delete');

        Route::get('rate-settings','SettingsController@rate_settings');
        Route::post('rate-settings','SettingsController@save_rate_settings');

        Route::get('rental-days/{from_date}/{to_date}','SelfDriveBookingController@get_days');

        Route::get('available-cars/{id}','SelfDriveBookingController@cars');
        Route::post('assign-car','SelfDriveBookingController@assign_car');
        Route::post('assign-poc','SelfDriveBookingController@assign_poc');
        Route::post('accept-booking','SelfDriveBookingController@accept');
        Route::post('reject-booking','SelfDriveBookingController@reject');
        Route::get('get-vendors/{model_id}','SelfDriveBookingController@ajax_get_vendors');
        Route::resource('self-drives','SelfDriveBookingController')->middleware('userpermission:SO');

        Route::resource('service-requests','ServiceRequestController')->middleware('userpermission:SO');
        Route::post('delete-service-requests', 'ServiceRequestController@bulk_delete');

        Route::get('towing-partners/list','TowingPartnerController@lists');
        Route::get('workshops/list','WorkshopPartnerController@lists');

        Route::resource('towing-partners','TowingPartnerController')->middleware('userpermission:SO');
        Route::post('delete-towing-partners', 'TowingPartnerController@bulk_delete');

        Route::resource('workshops','WorkshopPartnerController')->middleware('userpermission:SO');
        Route::post('delete-workshops', 'WorkshopPartnerController@bulk_delete');

        Route::resource('support-persons','SupportPersonController');
        Route::post('delete-support-persons', 'SupportPersonController@bulk_delete');

        Route::get('activate-user/{id}','UsersController@activate');
        Route::get('deactivate-user/{id}','UsersController@deactivate');

        Route::get('new', 'UserAccessController@add_permission'); //test only
        Route::resource('roles', 'UserAccessController')->middleware('userpermission:SO');

        Route::resource('colors','ColorController')->middleware('userpermission:SO');
        Route::post('delete-colors', 'ColorController@bulk_delete');

        Route::resource('discount-coupons','DiscountCouponController')->middleware('userpermission:SO');
        Route::post('delete-discount-coupons', 'DiscountCouponController@bulk_delete');

        Route::post('hubs-filter','HubController@index')->middleware('userpermission:SO')->name('hubs.filter');
        Route::resource('hubs','HubController')->middleware('userpermission:SO');
        Route::post('delete-hubs', 'HubController@bulk_delete');

        Route::resource('cities','CityController')->middleware('userpermission:SO');
        Route::post('delete-cities', 'CityController@bulk_delete');

        Route::post('filter-vehicles','VehiclesController@post_index');
        Route::post('change-vehicle-status','VehiclesController@change_status');
        Route::get('get-models/{id}', 'VehiclesController@get_models');

        Route::post('models-filter','ModelController@index')->middleware('userpermission:SO')->name('models.filter');
        Route::resource('models','ModelController')->middleware('userpermission:SO');
        Route::post('delete-models', 'ModelController@bulk_delete');

        Route::resource('brands','BrandController')->middleware('userpermission:SO');
        Route::post('delete-brands', 'BrandController@bulk_delete');

        Route::resource('users', 'UsersController')->middleware('userpermission:0');

        Route::get('twilio-settings', 'TwilioController@index');
        Route::post('twilio-settings', 'TwilioController@update');

        Route::post('reject-quotation', 'BookingQuotationController@reject');

        Route::get('fetch-data', 'Testcontroller@fetch');

        Route::post('clear-database', 'SettingsController@clear_database')->middleware('userpermission:SO');
        Route::post('cancel-booking', 'BookingsController@cancel_booking');
        Route::resource('team', 'TeamController');
        Route::resource('company-services', 'CompanyServicesController')->middleware('userpermission:SO');
        Route::get('parts-used/{id}', 'WorkOrdersController@parts_used')->middleware('userpermission:7');
        Route::get('remove-part/{id}', 'WorkOrdersController@remove_part')->middleware('userpermission:7');
        Route::post('add-stock', 'PartsController@add_stock');
        Route::resource('booking-quotation', 'BookingQuotationController')->middleware('userpermission:3');
        Route::post('add-booking', 'BookingQuotationController@add_booking');
        Route::get('booking-quotation/invoice/{id}', 'BookingQuotationController@invoice')->middleware('userpermission:3');
        Route::get('print-quote/{id}', 'BookingQuotationController@print')->middleware('userpermission:3');
        Route::get('booking-quotation/approve/{id}', 'BookingQuotationController@approve')->middleware('userpermission:3');
        Route::post('import-vehicles', 'VehiclesController@importVehicles');
        Route::post('import-drivers', 'DriversController@importDrivers');
        Route::post('import-income', 'IncomeCategories@importIncome');
        Route::post('import-expense', 'ExpenseCategories@importExpense');
        Route::post('import-customers', 'CustomersController@importCutomers');
        Route::post('import-vendors', 'VendorController@importVendors');
        Route::get('frontend-settings', 'SettingsController@frontend')->middleware('userpermission:SO');
        Route::post('frontend-settings', 'SettingsController@store_frontend');
        Route::resource('testimonials', 'TestimonialController')->middleware('userpermission:15');
        # routes for bulk delete action
        Route::post('delete-admins', 'UsersController@bulk_delete');
        Route::post('delete-team', 'TeamController@bulk_delete');
        Route::post('delete-company-services', 'CompanyServicesController@bulk_delete');
        Route::post('delete-testimonials', 'TestimonialController@bulk_delete');
        Route::post('delete-reasons', 'ReasonController@bulk_delete');
        Route::post('delete-income', 'Income@bulk_delete');
        Route::post('delete-expense', 'ExpenseController@bulk_delete');
        Route::post('delete-reminders', 'ServiceReminderController@bulk_delete');
        Route::post('delete-service-items', 'ServiceItemsController@bulk_delete');
        Route::post('delete-parts', 'PartsController@bulk_delete');
        Route::post('delete-work-orders', 'WorkOrdersController@bulk_delete');
        Route::post('delete-parts-category', 'PartsCategoryController@bulk_delete');
        Route::post('delete-users', 'CustomersController@bulk_delete');
        Route::post('delete-drivers', 'DriversController@bulk_delete');
        Route::post('delete-vehicles', 'VehiclesController@bulk_delete');
        Route::post('delete-fuel', 'FuelController@bulk_delete');
        Route::post('delete-vendors', 'VendorController@bulk_delete');
        Route::post('delete-bookings', 'BookingsController@bulk_delete');
        Route::post('delete-quotes', 'BookingQuotationController@bulk_delete');
        Route::post('delete-vehicle-types', 'VehicleTypeController@bulk_delete');
        Route::post('delete-vehicle-groups', 'VehicleGroupController@bulk_delete');
        Route::post('delete-vehicle-reviews', 'VehiclesController@bulk_delete_reviews');

        Route::get('reports/income', 'ReportsController@income')->middleware('userpermission:4');
        Route::post('reports/income', 'ReportsController@income_post')->middleware('userpermission:4');
        Route::post('print-income', 'ReportsController@income_print');

        Route::get('reports/expense', 'ReportsController@expense')->middleware('userpermission:4');
        Route::post('reports/expense', 'ReportsController@expense_post')->middleware('userpermission:4');
        Route::post('print-expense', 'ReportsController@expense_print');

        Route::get('work_order/logs', 'WorkOrdersController@logs')->middleware('userpermission:7');
        Route::resource('parts-category', 'PartsCategoryController')->middleware('userpermission:14');

        Route::get('driver-logs', 'VehiclesController@driver_logs')->middleware('userpermission:1');
        Route::resource('/vehicle-types', 'VehicleTypeController')->middleware('userpermission:1');
        Route::get('print-vehicle-review/{id}', 'VehiclesController@print_vehicle_review')->middleware('userpermission:1');
        Route::get('view-vehicle-review/{id}', 'VehiclesController@view_vehicle_review')->middleware('userpermission:1');
        Route::get('vehicle-reviews-create', 'VehiclesController@vehicle_review')->middleware('userpermission:1');
        Route::get('vehicle-reviews', 'VehiclesController@vehicle_review_index')->name('vehicle_reviews')->middleware('userpermission:1');
        Route::get('vehicle-review/{id}/edit', 'VehiclesController@review_edit')->middleware('userpermission:1');
        Route::post('vehicle-review-update', 'VehiclesController@update_vehicle_review')->middleware('userpermission:1');
        Route::post('store-vehicle-review', 'VehiclesController@store_vehicle_review')->middleware('userpermission:1');
        Route::delete('delete-vehicle-review/{id}', 'VehiclesController@destroy_vehicle_review')->middleware('userpermission:1');
        //maps
        Route::get('single-driver/{id}', 'DriversController@single_driver');
        Route::get('driver-maps/', 'DriversController@driver_maps')->middleware('userpermission:12');
        Route::get('markers/', 'DriversController@markers');
        Route::get('track-driver/{id}', 'DriversController@track_driver');

        Route::post('print-users-report', 'ReportsController@print_users');
        Route::post('print-customer-report', 'ReportsController@print_customer');
        Route::get('print-vendor-report', 'ReportsController@print_vendor');
        Route::post('print-driver-report', 'ReportsController@print_driver');
        Route::post('print-yearly-report', 'ReportsController@print_yearly');
        Route::post('print-fuel-report', 'ReportsController@print_fuel');
        Route::post('print-booking-report', 'ReportsController@print_booking');
        Route::post('print-deliquent-report', 'ReportsController@print_deliquent');
        Route::post('print-monthly-report', 'ReportsController@print_monthly');
        # Route::get('print-bookings', 'BookingsController@print_bookings');
        Route::get('reviews', 'ReviewRatings@index')->middleware('userpermission:10');
        Route::get('messages', 'ContactUs@index');
        Route::get('api-settings', 'SettingsController@api_settings')->middleware('userpermission:SO');
        Route::post('api-settings', 'SettingsController@store_settings')->middleware('userpermission:SO');

        Route::get('fb', 'SettingsController@fb_create')->name('fb');
        Route::post('firebase-settings', 'SettingsController@firebase')->middleware('userpermission:SO');
        Route::get('fare-settings', 'SettingsController@fare_settings')->middleware('userpermission:SO');
        Route::post('fare-settings', 'SettingsController@store_fareSettings')->middleware('userpermission:SO');
        Route::post('store-key', 'SettingsController@store_key')->middleware('userpermission:SO');
        Route::get('test-key', 'SettingsController@test_key')->middleware('userpermission:SO');
        Route::post('store-api', 'SettingsController@store_api')->middleware('userpermission:SO');
        Route::resource('service-reminder', 'ServiceReminderController')->middleware('userpermission:9');
        Route::resource('service-item', 'ServiceItemsController')->middleware('userpermission:9');
        Route::resource('/vehicle_group', 'VehicleGroupController')->middleware('userpermission:1');
        Route::post('/income_records', 'Income@income_records')->middleware('userpermission:2');
        Route::post('/expense_records', 'ExpenseController@expense_records')->middleware('userpermission:2');
        Route::post('/store_insurance', 'VehiclesController@store_insurance');
        Route::get('vehicle/event/{id}', 'VehiclesController@view_event')->middleware('userpermission:1');
        Route::post('assignDriver', 'VehiclesController@assign_driver');
        Route::resource('/work_order', 'WorkOrdersController')->middleware('userpermission:7');
        Route::get('vendors/event/{id}','VendorController@view_event')->middleware('userpermission:6');
        Route::resource('/vendors', 'VendorController')->middleware('userpermission:6');
        Route::get("/vendors/enable/{id}", 'VendorController@enable')->middleware('userpermission:6');
        Route::get("/vendors/disable/{id}", 'VendorController@disable')->middleware('userpermission:6');
        Route::resource('/fuel', 'FuelController')->middleware('userpermission:5');
        Route::resource('/drivers', 'DriversController')->middleware('userpermission:0');
        Route::resource('/parts', 'PartsController')->middleware('userpermission:14');
        Route::resource('/vehicles', 'VehiclesController')->middleware('userpermission:1');
        Route::resource('/bookings', 'BookingsController')->middleware('userpermission:3');
        Route::post('/prev-address', 'BookingsController@prev_address');
        Route::get('print/{id}', 'BookingsController@print')->middleware('userpermission:3');
        Route::resource('/acquisition', 'AcquisitionController');
        Route::resource('/income', 'Income')->middleware('userpermission:2');
        Route::resource('/settings', 'SettingsController')->middleware('userpermission:SO');
        Route::resource('/customers', 'CustomersController')->middleware('userpermission:0');
        Route::resource('/expense', 'ExpenseController')->middleware('userpermission:2');
        Route::resource('/expensecategories', 'ExpenseCategories')->middleware('userpermission:SO');
        Route::resource('/incomecategories', 'IncomeCategories')->middleware('userpermission:SO');
        Route::get('/bookings/complete/{id}', 'BookingsController@complete')->middleware('userpermission:3');
        Route::post('/bookings/complete-journey', 'BookingsController@complete_journey')->middleware('userpermission:3');
        Route::get('/bookings/receipt/{id}', 'BookingsController@receipt')->middleware('userpermission:3');
        Route::get('/bookings/payment/{id}', 'BookingsController@payment')->middleware('userpermission:3');
        Route::get("/reports/monthly", "ReportsController@monthly")->name("reports.monthly")->middleware('userpermission:4');
        Route::get("/reports/vendors", "ReportsController@vendors")->name("reports.vendors")->middleware('userpermission:4');
        Route::post("/reports/vendors", "ReportsController@vendors_post")->name("reports.vendors")->middleware('userpermission:4');
        Route::get("reports/drivers", "ReportsController@drivers")->name("reports.drivers")->middleware('userpermission:4');
        Route::post("reports/drivers", "ReportsController@drivers_post")->name("reports.drivers")->middleware('userpermission:4');
        Route::get("reports/customers", "ReportsController@customers")->name("reports.customers")->middleware('userpermission:4');
        Route::post("reports/customers", "ReportsController@customers_post")->name("reports.customers")->middleware('userpermission:4');
        Route::get("/reports/booking", "ReportsController@booking")->name("reports.booking")->middleware('userpermission:4');
        Route::get("/reports/delinquent", "ReportsController@delinquent")->name("reports.delinquent")->middleware('userpermission:4');
        Route::get("/reports/users", "ReportsController@users")->name("reports.users")->middleware('userpermission:4');
        Route::post("/reports/users", "ReportsController@users_post")->name("reports.users")->middleware('userpermission:4');
        Route::get('/calendar', 'BookingsController@calendar');
        Route::get('/calendar/event/{id}', 'BookingsController@calendar_event');
        Route::get("/drivers/enable/{id}", 'DriversController@enable');
        Route::get("/drivers/disable/{id}", 'DriversController@disable');
        Route::get("/reports/vehicle", "ReportsController@vehicle")->name("reports.vehicle");
        Route::post("/reports/booking", "ReportsController@booking_post")->name("reports.booking")->middleware('userpermission:4');
        Route::post("/reports/fuel", "ReportsController@fuel_post")->name("reports.fuel")->middleware('userpermission:4');
        Route::get("/reports/fuel", "ReportsController@fuel")->name("reports.fuel")->middleware('userpermission:4');
        Route::get("/reports/yearly", "ReportsController@yearly")->name("reports.yearly")->middleware('userpermission:4');
        Route::post("/reports/yearly", "ReportsController@yearly_post")->name("reports.yearly")->middleware('userpermission:4');

        Route::post('/customer/ajax_save', 'CustomersController@ajax_store')->name('customers.ajax_store');
        Route::get("/bookings_calendar", 'BookingsController@calendar_view')->name("bookings.calendar")->middleware('userpermission:3');
        Route::get('/calendar/event/calendar/{id}', 'BookingsController@calendar_event');
        Route::get('/calendar/event/service/{id}', 'BookingsController@service_view');
        Route::get('/calendar', 'BookingsController@calendar');
        Route::post('/get_driver', 'BookingsController@get_driver');
        Route::post('/get_vehicle', 'BookingsController@get_vehicle');
        Route::post('/bookings/complete', 'BookingsController@complete_post')->name("bookings.complete");
        Route::get('/bookings/complete', 'BookingsController@complete_post')->name("bookings.complete")->middleware('userpermission:3');

        Route::post("/reports/monthly", "ReportsController@monthly_post")->name("reports.monthly")->middleware('userpermission:4');
        Route::post("/reports/booking", "ReportsController@booking_post")->name("reports.booking")->middleware('userpermission:4');
        Route::post("/reports/delinquent", "ReportsController@delinquent_post")->name("reports.delinquent")->middleware('userpermission:4');
        Route::get("/send-email", "SettingsController@send_email")->middleware('userpermission:SO');
        Route::post("/email-settings", "SettingsController@email_settings")->middleware('userpermission:SO');
        Route::post('enable-mail', 'SettingsController@enable_mail')->middleware('userpermission:SO');
        Route::get("/set-email", "SettingsController@set_email")->middleware('userpermission:SO');
        Route::post("/set-content/{type}", "SettingsController@set_content")->middleware('userpermission:SO');

        Route::get('ajax-api-store/{api}', 'SettingsController@ajax_api_store');

        Route::get('payment-settings', 'SettingsController@payment_settings');
        Route::post('payment-settings', 'SettingsController@payment_settings_post');
    });

    Route::group(['middleware' => ['lang_check', 'auth','UserActive']], function () {

        Route::get('approve-request/{id}','SelfDriveBookingController@approve_request');
        Route::get('booking/view-request/{id}','SelfDriveBookingController@view_request');

        Route::get('payment-history','BookingsController@payment_history');
        Route::get('sent-payments','BookingsController@sent');
        Route::post('sent-payments','BookingsController@post_sent');

        Route::post('escalate-booking','SelfDriveBookingController@escalate');

        Route::get('driver/escalated-bookings','DriverBookingController@escalated_bookings');
        Route::get('booking/view/{id}','SelfDriveBookingController@view_details');
        Route::post('start-booking','DriverBookingController@pickup');
        Route::post('complete-ride','DriverBookingController@dropoff');

        Route::get('driver/bookings', 'DriverBookingController@index');
        Route::post('driver/bookings', 'DriverBookingController@post_index');
        Route::get('driver/completed-bookings','DriverBookingController@completed');
        Route::post('driver/completed-bookings','DriverBookingController@completed_post');

        Route::post('delete-notes', 'NotesController@bulk_delete');
        Route::get('changepassword/{id}', 'UtilityController@change');
        Route::post('changepassword/{id}', 'UtilityController@change_post');
        Route::get('/change-details/{id}', 'UtilityController@changepass')->name("changepass");
        Route::post('/change-details/{id}', 'UtilityController@changepassword')->name("changepass");
        Route::post('/change_password', 'UtilityController@password_change');
        Route::get('/vehicle_notification/{type}', 'NotificationController@vehicle_notification');
        Route::resource('/notes', 'NotesController')->middleware('userpermission:8');
        Route::get('driver_notification/{type}', 'NotificationController@driver_notification');
        Route::get('/reminder/{type}', 'NotificationController@service_reminder');
        Route::get('/my_bookings', 'DriverBookingController@index')->name('my_bookings');

        # driver reports
        Route::get("/driver-reports/yearly", "DriversController@yearly")->name("dreports.yearly");
        Route::post("/driver-reports/yearly", "DriversController@yearly_post")->name("dreports.yearly");
        Route::get("/driver-reports/monthly", "DriversController@monthly")->name("dreports.monthly");
        Route::post("/driver-reports/monthly", "DriversController@monthly_post")->name("dreports.monthly");
        Route::get('/addresses', 'AddressController@index');

        Route::resource('/cancel-reason', 'ReasonController')->middleware('userpermission:3');
    });

});
gauravmak commented 2 years ago

The link is being shown in the wrong place

image

simabhyvikkgit commented 2 years ago

which wrong place? can you explain me what could be the issue?

is your extension rely on system?