New-OMIS/routes/web.php

68 lines
2.2 KiB
PHP
Raw Normal View History

2024-04-04 13:08:00 +05:45
<?php
2024-04-04 13:31:19 +05:45
use App\Http\Controllers\PermissionController;
2024-04-04 13:08:00 +05:45
use Illuminate\Support\Facades\Route;
2024-04-10 18:06:18 +05:45
use Modules\User\Http\Controllers\RoleController;
2024-04-04 13:08:00 +05:45
/*
|--------------------------------------------------------------------------
| 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!
|
2024-04-04 17:53:23 +05:45
*/
2024-04-04 13:08:00 +05:45
Route::get('/', function () {
return view('welcome');
});
2024-04-16 10:54:23 +05:45
Route::get('/invoice-test', function () {
2024-04-11 16:37:12 +05:45
return view('invoice');
});
2024-04-04 13:08:00 +05:45
Auth::routes();
Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
2024-04-04 13:31:19 +05:45
Route::resource('roles', RoleController::class)->names('roles');
Route::resource('permissions', PermissionController::class)->names('permissions');
2024-04-04 17:53:23 +05:45
Route::get('/initialize-db', function () {
OMIS::initDB();
});
2024-04-05 11:07:15 +05:45
2024-04-07 13:13:58 +05:45
// require __DIR__ . '/route.client.php';
2024-04-09 18:00:26 +05:45
2024-04-05 11:07:15 +05:45
Route::middleware('auth')->group(function () {
2024-04-09 18:00:26 +05:45
2024-04-07 13:13:58 +05:45
// 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';
2024-04-09 18:00:26 +05:45
2024-04-05 11:07:15 +05:45
require __DIR__ . '/CRUDgenerated/route.companytypes.php';
require __DIR__ . '/CRUDgenerated/route.companies.php';
require __DIR__ . '/CRUDgenerated/route.branches.php';
require __DIR__ . '/CRUDgenerated/route.vendors.php';
2024-04-11 16:44:09 +05:45
require __DIR__ . '/CRUDgenerated/route.vendortypes.php';
2024-04-05 11:07:15 +05:45
2024-04-10 18:06:18 +05:45
// require __DIR__ . '/CRUDgenerated/route.ethnicities.php';
// require __DIR__ . '/CRUDgenerated/route.dags.php';
2024-04-07 13:13:58 +05:45
// require __DIR__ . '/CRUDgenerated/route.employees.php';
2024-04-10 15:21:30 +05:45
// require __DIR__ . '/CRUDgenerated/route.onboardings.php';
2024-04-05 11:07:15 +05:45
require __DIR__ . '/CRUDgenerated/route.departments.php';
require __DIR__ . '/CRUDgenerated/route.designations.php';
2024-04-11 16:44:09 +05:45
2024-04-10 15:21:30 +05:45
// require __DIR__ . '/CRUDgenerated/route.shifts.php';
// require __DIR__ . '/CRUDgenerated/route.workoptions.php';
2024-04-07 13:13:58 +05:45
// require __DIR__ . '/CRUDgenerated/route.leavetypes.php';
// require __DIR__ . '/CRUDgenerated/route.leaves.php';
2024-04-05 11:07:15 +05:45
});