New-OMIS/Modules/Admin/routes/web.php

44 lines
2.0 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Modules\Admin\Http\Controllers\AdminController;
use Modules\Admin\Http\Controllers\AppreciationController;
use Modules\Admin\Http\Controllers\CompanyController;
use Modules\Admin\Http\Controllers\CompanyTypeController;
use Modules\Admin\Http\Controllers\ComplaintController;
use Modules\Admin\Http\Controllers\PromotionDemotionController;
use Modules\Admin\Http\Controllers\ResignationController;
use Modules\Admin\Http\Controllers\TransferController;
use Modules\Admin\Http\Controllers\WarningController;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
Route::group([], function () {
Route::resource('admin', AdminController::class)->names('admin');
Route::resource('promotion-demotion', PromotionDemotionController::class)->names('promotionDemotion');
Route::resource('appreciation', AppreciationController::class)->names('appreciation');
Route::resource('resignation', ResignationController::class)->names('resignation');
Route::resource('complaint', ComplaintController::class)->names('complaint');
Route::resource('transfer', TransferController::class)->names('transfer');
Route::resource('warning', WarningController::class)->names('warning');
Route::resource('company', CompanyController::class)->names('company');
Route::resource('company-type', CompanyTypeController::class)->names('companyType');
});
require __DIR__ . '/route.countries.php';
require __DIR__ . '/route.provinces.php';
require __DIR__ . '/route.districts.php';
require __DIR__ . '/route.cities.php';
require __DIR__ . '/route.genders.php';
require __DIR__ . '/route.castes.php';
require __DIR__ . '/route.nationalities.php';