33 lines
1.4 KiB
PHP
33 lines
1.4 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\DashboardController;
|
|
use App\Http\Controllers\KatalogController;
|
|
use App\Http\Controllers\PeminjamanController;
|
|
use App\Http\Controllers\ProfileController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
|
|
Route::get('/dashboard', [DashboardController::class, 'index'])
|
|
->middleware(['auth'])->name('dashboard');
|
|
Route::get('/katalog', [KatalogController::class, 'index'])
|
|
->middleware('auth')->name('katalog');
|
|
|
|
// Route untuk peminjaman offline
|
|
Route::get('/peminjaman-offline', [PeminjamanController::class, 'index'])->name('peminjaman.index');
|
|
Route::get('/peminjaman-offline/{id}/ringkasan', [PeminjamanController::class, 'ringkasan'])->name('peminjaman.ringkasan');
|
|
Route::get('/peminjaman-offline/{id}/form', [PeminjamanController::class, 'form'])->name('peminjaman.form');
|
|
Route::post('/peminjaman/store', [PeminjamanController::class, 'store'])->name('peminjaman.store');
|
|
|
|
Route::middleware('auth')->group(function () {
|
|
Route::get('/profile', [ProfileController::class, 'index'])->name('profile.index');
|
|
Route::get('/profile/edit', [ProfileController::class, 'edit'])->name('profile.edit');
|
|
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
|
|
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
|
|
});
|
|
|
|
require __DIR__ . '/auth.php';
|