KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/flavourapps.com/webmaster.flavourapps.com/routes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/flavourapps.com/webmaster.flavourapps.com/routes/web.php
<?php
use Illuminate\Support\Facades\Route;
// Auth
use App\Http\Controllers\AuthController;
// Dashboard & Profile
use App\Http\Controllers\Admin\DashboardController;
use App\Http\Controllers\Admin\ProfileController;
use App\Http\Controllers\Admin\ModuleController;
use App\Http\Controllers\Admin\LogController;
use App\Http\Controllers\Admin\UserController;
use App\Http\Controllers\Admin\RoleController;
use App\Http\Controllers\Admin\PermissionController;
use App\Http\Controllers\Admin\CloudsettingController;
use App\Http\Controllers\Admin\MasterTagController;
use App\Http\Controllers\LocalizationController;
use App\Http\Controllers\Admin\EmployeeController;
use App\Http\Controllers\Admin\SettingController;
use App\Http\Controllers\Admin\DistributorController;
use App\Http\Controllers\Admin\RestaurantController;
use App\Http\Controllers\Admin\RestaurantKeyController;
use App\Http\Controllers\Admin\ReportsController;
use App\Http\Controllers\Admin\DealerController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
// Default
Route::get('/', [AuthController::class, 'login']);
// login Get POST
Route::get('/login', [AuthController::class, 'login']);
Route::post('/login', [AuthController::class, 'makeLogin'])->name('login');
// Logout
Route::get('/logout', [AuthController::class, 'logout']);
Route::get('change/lang', [LocalizationController::class,'lang_change'])->name('LangChange');
Route::group(['middleware' => 'auth'], function () {
 
 Route::get('dashboard', [DashboardController::class, 'dashboard'])->name("dashboard");
 
 Route::post('edit-profile', [ProfileController::class, 'save_edit_profile']);
 Route::post('change-password', [ProfileController::class, 'save_change_password']);
 Route::post('two-factor-change', [ProfileController::class, 'twoFactorCheck']);
 Route::post('change-loggedin-school', [ProfileController::class, 'change_school_session']);
 // Profile end ==============================

 // User Permission Routes With Role & Permissions
  

  Route::get('user-permissions/{id}', [UserController::class, 'user_permission']);
   Route::post('user-permissions', [UserController::class, 'post_user_permission']);
 

  
 // cloud setting permission
 Route::group(['middleware' => 'role:view-cloudsetting'], function () {
  Route::get('cloudsetting', [CloudsettingController::class, 'index']);
  Route::get('view-cloudsetting/{id}', [CloudsettingController::class, 'show']);
  // Add
  Route::group(['middleware' => 'role:add-cloudsetting'], function () {
   Route::get('add-cloudsetting', [CloudsettingController::class, 'create']);
   Route::post('add-cloudsetting', [CloudsettingController::class, 'store']);
  });
  // edit
  Route::group(['middleware' => 'role:edit-cloudsetting'], function () {
   Route::get('edit-cloudsetting/{id}', [CloudsettingController::class, 'edit']);
   Route::post('edit-cloudsetting/{id}', [CloudsettingController::class, 'update']);
  //  Route::post('change-status', [CloudsettingController::class, 'change_status']);
  });
  // Delete
  Route::group(['middleware' => 'role:delete-cloudsetting'], function () {
   Route::get('delete-cloudsetting/{id}', [CloudsettingController::class, 'destroy']);
  });
 });
//  end cloud setting permission

 
  
 
   
  Route::get('modules', [ModuleController::class, 'index']);
  Route::get('module/permissions/{id}', [ModuleController::class, 'module_permissions']);
  // add
  
   // module
   Route::post('add-module', [ModuleController::class, 'store']);
   // Module Permission
   Route::post('module/add-permission/{id}', [ModuleController::class, 'post_module_add_permissions']);
  
  // edit
  
   Route::get('edit-module/{id}', [ModuleController::class, 'edit']);
   Route::post('edit-module/{id}', [ModuleController::class, 'update']);
   // Module Permission
   Route::get('module/edit-permission/{id}', [ModuleController::class, 'module_edit_permissions']);
   Route::post('module/edit-permission/{id}', [ModuleController::class, 'post_module_edit_permissions']);
  

  // delete
  
   Route::get('delete-module/{id}', [ModuleController::class, 'destory']);
   // Module Permission
   Route::get('module/delete-permission/{id}', [ModuleController::class, 'destory_module_permission']);
  

 // End Module ====================
 // Logs ===========================================
 
  Route::get('logs', [LogController::class, 'logList']);
  Route::get('add-to-log', [LogController::class, 'myTestAddToLog']);

  // notification setting
	Route::group(['middleware' => 'role:view-notificationsetting'], function () {
		Route::get('notificationsetting', [NotificationsettingController::class, 'index']);
		Route::get('view-notificationsetting/{id}', [NotificationsettingController::class, 'show']);
		// Add
		Route::group(['middleware' => 'role:add-notificationsetting'], function () {
		 Route::get('add-notificationsetting', [NotificationsettingController::class, 'create']);
		 Route::post('add-notificationsetting', [NotificationsettingController::class, 'store']);
		});
		// edit
		Route::group(['middleware' => 'role:edit-notificationsetting'], function () {
		 Route::get('edit-notificationsetting/{id}', [NotificationsettingController::class, 'edit']);
		 Route::post('edit-notificationsetting/{id}', [NotificationsettingController::class, 'update']);
		//  Route::post('change-status', [CloudsettingController::class, 'change_status']);
		});
		// Delete
		Route::group(['middleware' => 'role:delete-notificationsetting'], function () {
		 Route::get('delete-notificationsetting/{id}', [NotificationsettingController::class, 'destroy']);
		});
	 });


  

    Route::get('roles', [RoleController::class, 'index']);
    Route::get('view-role/{id}', [RoleController::class, 'show']);
    Route::get('add-role', [RoleController::class, 'create']);
    Route::post('add-role', [RoleController::class, 'store']);
    Route::get('edit-role/{id}', [RoleController::class, 'edit']);
    Route::post('edit-role/{id}', [RoleController::class, 'update']);
    Route::get('delete-role/{id}', [RoleController::class, 'destroy']);
    Route::get('permission/{id?}', [PermissionController::class, 'index']);
    Route::get('add-permission/{role_id}', [PermissionController::class, 'create']);
    Route::post('add-permission/{role_id}', [PermissionController::class, 'store']);
    Route::get('delete-permission/{id}', [PermissionController::class, 'destroy']);
    // Create New Permission
    Route::post('add-new-permission', [PermissionController::class, 'add_new_permission']);

        
    
    

    //employee
    Route::get('employee',[EmployeeController::class,'index']);
    Route::get('add-employee',[EmployeeController::class,'addEmployee']);
    Route::post('add-employee',[EmployeeController::class,'storeEmployee']);
    Route::get('view-employee/{id}',[EmployeeController::class,'viewEmployee']);
    Route::get('edit-employee/{id}',[EmployeeController::class,'editEmployee']);
    Route::post('edit-employee',[EmployeeController::class,'updateEmployee']);
    Route::post('delete-employee',[EmployeeController::class,'delete']);
    //Route::post('filter-company',[CompanyController::class,'filterCompany']);
    Route::post('search-company',[EmployeeController::class,'searchCompany']);
    Route::post('employee-delete-multiple',[EmployeeController::class,"deleteMultiple"]);
    Route::get('export-employee',[EmployeeController::class,'export']);
    Route::post('import-employee',[EmployeeController::class,'import']);
    Route::get('reset-employee-password/{id}',[EmployeeController::class,"resetPassword"]);
    Route::post('reset-employee-password',[EmployeeController::class,"updatePassword"]);


   //distributor
   Route::get('distributor',[DistributorController::class,'index']);
   Route::get('add-distributor',[DistributorController::class,'addDistributor']);
   Route::post('add-distributor',[DistributorController::class,'storeDistributor']);
   Route::get('view-distributor/{id}',[DistributorController::class,'viewDistributor']);
   Route::get('edit-distributor/{id}',[DistributorController::class,'editDistributor']);
   Route::post('edit-distributor',[DistributorController::class,'updateDistributor']);
   Route::post('delete-distributor',[DistributorController::class,'delete']);
   
   Route::post('distributor-delete-multiple',[DistributorController::class,"deleteMultiple"]);
   Route::get('export-distributor',[DistributorController::class,'export']);
   Route::post('import-distributor',[DistributorController::class,'import']);
   Route::get('reset-distributor-password/{id}',[DistributorController::class,"resetPassword"]);
   Route::post('reset-distributor-password',[DistributorController::class,"updatePassword"]);

   //restaurant
   Route::get('restaurant',[RestaurantController::class,'index']);
   Route::get('add-restaurant',[RestaurantController::class,'addRestaurant']);
   Route::post('add-restaurant',[RestaurantController::class,'storeRestaurant']);
   Route::get('view-restaurant/{id}',[RestaurantController::class,'viewRestaurant']);
   Route::get('edit-restaurant/{id}',[RestaurantController::class,'editRestaurant']);
   Route::post('edit-restaurant',[RestaurantController::class,'updateRestaurant']);
   Route::post('delete-restaurant',[RestaurantController::class,'delete']);
   
   Route::post('restaurant-delete-multiple',[RestaurantController::class,"deleteMultiple"]);
   Route::get('export-restaurant',[RestaurantController::class,'export']);
   Route::post('import-restaurant',[RestaurantController::class,'import']);

   //licencekey
   Route::get('licencekey',[RestaurantKeyController::class,'index']);
   Route::get('add-licencekey',[RestaurantKeyController::class,'addLicence']);
   Route::post('add-licencekey',[RestaurantKeyController::class,'storeLicence']);
   Route::get('view-licencekey/{id}',[RestaurantKeyController::class,'viewLicence']);
   Route::get('edit-licencekey/{id}',[RestaurantKeyController::class,'editLicence']);
   Route::post('edit-licencekey',[RestaurantKeyController::class,'updateLicence']);
   Route::post('delete-licencekey',[RestaurantKeyController::class,'delete']);
   
   Route::post('licencekey-delete-multiple',[RestaurantKeyController::class,"deleteMultiple"]);
   Route::get('export-licencekey',[RestaurantKeyController::class,'export']);
   Route::post('import-licencekey',[RestaurantKeyController::class,'import']);
  
   //country code 
   Route::post('fetch-state',[EmployeeController::class,'fetachState']);
   Route::post('search-city',[EmployeeController::class,'searchCity']);
   Route::post('add-city',[EmployeeController::class,'addCity']);
   Route::get('fetch-city',[EmployeeController::class,'fetchCity']);

   

   //reports
   Route::get('reports',[ReportsController::class,'index']);
   Route::post('generate-reports',[ReportsController::class,'generateReports']);

   //dealer

   Route::get('dealer',[DealerController::class,'index']);
   Route::get('add-dealer',[DealerController::class,'addDistributor']);
   Route::post('add-dealer',[DealerController::class,'storeDistributor']);
   Route::get('view-dealer/{id}',[DealerController::class,'viewDistributor']);
   Route::get('edit-dealer/{id}',[DealerController::class,'editDistributor']);
   Route::post('edit-dealer',[DealerController::class,'updateDistributor']);
   Route::post('delete-dealer',[DealerController::class,'delete']);
   
   Route::post('dealer-delete-multiple',[DealerController::class,"deleteMultiple"]);
   Route::get('export-dealer',[DealerController::class,'export']);
   Route::post('import-dealer',[DealerController::class,'import']);
   Route::get('reset-dealer-password/{id}',[DealerController::class,"resetPassword"]);
   Route::post('reset-dealer-password',[DealerController::class,"updatePassword"]);


});

Route::get('privacy',function(){
  return view('privacy');
});
Route::get('term-condition',function(){
  return view('terms-condition');
});

Route::get('test-reports',function(){
  return view('pdf.distributor.report');
});

Anon7 - 2021