New-OMIS/routes/web.php
2024-04-16 10:54:23 +05:45

68 lines
2.2 KiB
PHP

<?php
use App\Http\Controllers\PermissionController;
use Illuminate\Support\Facades\Route;
use Modules\User\Http\Controllers\RoleController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('/invoice-test', function () {
return view('invoice');
});
Auth::routes();
Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::resource('roles', RoleController::class)->names('roles');
Route::resource('permissions', PermissionController::class)->names('permissions');
Route::get('/initialize-db', function () {
OMIS::initDB();
});
// require __DIR__ . '/route.client.php';
Route::middleware('auth')->group(function () {
// require __DIR__ . '/CRUDgenerated/route.users.php';
// require __DIR__ . '/route.roles.php';
// require __DIR__ . '/route.rolepermissions.php';
// require __DIR__ . '/route.settings.php';
// require __DIR__ . '/route.form.php';
require __DIR__ . '/CRUDgenerated/route.companytypes.php';
require __DIR__ . '/CRUDgenerated/route.companies.php';
require __DIR__ . '/CRUDgenerated/route.branches.php';
require __DIR__ . '/CRUDgenerated/route.vendors.php';
require __DIR__ . '/CRUDgenerated/route.vendortypes.php';
// require __DIR__ . '/CRUDgenerated/route.ethnicities.php';
// require __DIR__ . '/CRUDgenerated/route.dags.php';
// require __DIR__ . '/CRUDgenerated/route.employees.php';
// require __DIR__ . '/CRUDgenerated/route.onboardings.php';
require __DIR__ . '/CRUDgenerated/route.departments.php';
require __DIR__ . '/CRUDgenerated/route.designations.php';
// require __DIR__ . '/CRUDgenerated/route.shifts.php';
// require __DIR__ . '/CRUDgenerated/route.workoptions.php';
// require __DIR__ . '/CRUDgenerated/route.leavetypes.php';
// require __DIR__ . '/CRUDgenerated/route.leaves.php';
});