You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.6 KiB
PHTML

<?php
use App\Http\Controllers\AuthController;
use App\Http\Controllers\GeneralController;
use App\Http\Middleware\IsGuest;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
use App\Http\Middleware\IsSessionAuth;
/*
|--------------------------------------------------------------------------
| 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::get('/', function () {
return redirect()->route("login");
});
Route::middleware([IsGuest::class])->group(function () {
Route::get('/login', [AuthController::class, 'login'])->name('login');
Route::post('/login', [AuthController::class, 'store'])->name('login.store');
});
Route::middleware([IsSessionAuth::class])->group(function () {
Route::get('/dashboard', [GeneralController::class, 'dashboard'])->name('dashboard');
Route::get('/jabatan', [GeneralController::class, 'jabatan'])->name('jabatan');
Route::get('/karyawan', [GeneralController::class, 'karyawan'])->name('karyawan');
2 years ago
Route::get('/absensi', [GeneralController::class, 'absensi'])->name('absensi');
Route::get('/setting-potong-gaji', [GeneralController::class, 'settingPotongGaji'])->name('setting.potongan.gaji');
2 years ago
Route::get('/data-gaji', [GeneralController::class, 'dataGaji'])->name('gaji');
Route::get('/slip-gaji', [GeneralController::class, 'slipGaji'])->name('slip.gaji');
Route::post('/logout', [AuthController::class, 'destroy'])->name('logout');
});