2025-04-27 23:00:58 +07:00

40 lines
1.2 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\PasienController;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('/registrasi', function () {
return view('registrasi');
})->name('registrasi');
Route::get('/data-pasien', [PasienController::class, 'index'])->name('pasien.index');
Route::post('/data-pasien', [PasienController::class, 'store'])->name('pasien.store');
Route::put('/data-pasien/{id}', [PasienController::class, 'update'])->name('pasien.update');
Route::delete('/data-pasien/{id}', [PasienController::class, 'destroy'])->name('pasien.destroy');
Route::get('/data-asuransi', function () {
return view('asuransi');
})->name('asuransi');
Route::get('/data-karyawan', function () {
return view('karyawan');
})->name('karyawan');
Route::get('/data-ruangan', function () {
return view('ruangan');
})->name('ruangan');