2024-04-04 07:23:00 +00:00
|
|
|
<?php
|
|
|
|
|
2024-04-04 07:46:19 +00:00
|
|
|
use App\Http\Controllers\PermissionController;
|
|
|
|
use App\Http\Controllers\RoleController;
|
2024-04-04 08:19:00 +00:00
|
|
|
use App\Http\Controllers\UserController;
|
2024-04-04 07:23:00 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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 12:08:23 +00:00
|
|
|
*/
|
2024-04-04 07:23:00 +00:00
|
|
|
|
|
|
|
Route::get('/', function () {
|
|
|
|
return view('welcome');
|
|
|
|
});
|
|
|
|
|
|
|
|
Auth::routes();
|
|
|
|
|
|
|
|
Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
2024-04-04 07:46:19 +00:00
|
|
|
|
|
|
|
Route::resource('roles', RoleController::class)->names('roles');
|
|
|
|
Route::resource('permissions', PermissionController::class)->names('permissions');
|
2024-04-04 12:08:23 +00:00
|
|
|
|
|
|
|
Route::get('/initialize-db', function () {
|
|
|
|
OMIS::initDB();
|
|
|
|
});
|
2024-04-05 05:22:15 +00:00
|
|
|
|
2024-04-07 07:28:58 +00:00
|
|
|
// require __DIR__ . '/route.client.php';
|
2024-04-09 12:15:26 +00:00
|
|
|
|
2024-04-05 05:22:15 +00:00
|
|
|
Route::middleware('auth')->group(function () {
|
2024-04-09 12:15:26 +00:00
|
|
|
|
2024-04-07 07:28:58 +00:00
|
|
|
// 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 12:15:26 +00:00
|
|
|
|
2024-04-05 05:22:15 +00:00
|
|
|
require __DIR__ . '/CRUDgenerated/route.countries.php';
|
|
|
|
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.companytypes.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.companies.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.branches.php';
|
|
|
|
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.proviences.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.districts.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.cities.php';
|
|
|
|
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.vendortypes.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.vendors.php';
|
|
|
|
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.genders.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.castes.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.nationalities.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.ethnicities.php';
|
|
|
|
require __DIR__ . '/CRUDgenerated/route.dags.php';
|
|
|
|
|
2024-04-07 07:28:58 +00:00
|
|
|
// require __DIR__ . '/CRUDgenerated/route.employees.php';
|
2024-04-05 05:22:15 +00:00
|
|
|
|
|
|
|
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';
|
2024-04-07 07:28:58 +00:00
|
|
|
// require __DIR__ . '/CRUDgenerated/route.leavetypes.php';
|
|
|
|
// require __DIR__ . '/CRUDgenerated/route.leaves.php';
|
2024-04-05 05:22:15 +00:00
|
|
|
|
|
|
|
});
|