2024-02-27 22:53:57 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\AdminController;
|
|
|
|
use App\Http\Controllers\UserController;
|
|
|
|
use App\Http\Controllers\LayananPengajuanDpuDpaController;
|
2024-03-10 09:07:03 +07:00
|
|
|
use App\Http\Controllers\LayananSeminarProposal;
|
2024-02-27 22:53:57 +07:00
|
|
|
use App\Http\Controllers\MahasiswaController;
|
2024-03-10 09:07:03 +07:00
|
|
|
use App\Http\Controllers\MonitoringController;
|
2024-03-02 18:06:48 +07:00
|
|
|
use App\Http\Controllers\SesiLoginController;
|
2024-02-27 22:53:57 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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-03-02 18:06:48 +07:00
|
|
|
Route::middleware(['guest'])->group(function () {
|
|
|
|
route::get('/admin/login',[SesiLoginController::class, 'login'])->name('login');
|
2024-03-07 18:13:09 +07:00
|
|
|
route::post('/admin/login',[SesiLoginController::class, 'ceklogin'])->name('admin.ceklogin');
|
2024-03-02 18:06:48 +07:00
|
|
|
});
|
|
|
|
|
2024-03-07 18:13:09 +07:00
|
|
|
route::get('/', function(){
|
|
|
|
return "PROGRESS";
|
|
|
|
})->name('laman-awal');
|
|
|
|
|
2024-03-02 18:06:48 +07:00
|
|
|
Route::get('/home', function(){
|
|
|
|
return redirect('/admin');
|
|
|
|
});
|
|
|
|
|
2024-03-07 18:13:09 +07:00
|
|
|
Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function () {
|
|
|
|
Route::get('/', [AdminController::class, 'index'])->name('admin.dashboard');
|
|
|
|
Route::get('/logout', [SesiLoginController::class, 'logout'])->name('admin.logout');
|
|
|
|
//layanan Pengajuan DPU DPA
|
|
|
|
Route::get('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'index'])->name('layanan-dpudpa.index');
|
|
|
|
Route::DELETE('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'destroy'])->name('layanan-dpudpa.destroy');
|
|
|
|
Route::POST('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'terima'])->name('layanan-dpudpa.terima');
|
2024-03-10 09:07:03 +07:00
|
|
|
//layanan Pengajuan Seminar Proposal
|
|
|
|
Route::get('/layanan-sempro', [LayananSeminarProposal::class, 'index'])->name('layanan-sempro.index');
|
|
|
|
Route::DELETE('/layanan-sempro', [LayananSeminarProposal::class, 'destroy'])->name('layanan-sempro.destroy');
|
|
|
|
Route::POST('/layanan-sempro', [LayananSeminarProposal::class, 'terima'])->name('layanan-sempro.terima');
|
2024-03-07 18:13:09 +07:00
|
|
|
|
2024-02-27 22:53:57 +07:00
|
|
|
//User
|
2024-03-07 18:13:09 +07:00
|
|
|
Route::get('/users', [UserController::class, 'index'])->name('users.index');
|
|
|
|
Route::POST('/users', [UserController::class, 'store'])->name('users.store');
|
|
|
|
Route::PUT('/users', [UserController::class, 'update'])->name('users.update');
|
|
|
|
Route::DELETE('/users', [UserController::class, 'destroy'])->name('users.destroy');
|
2024-02-27 22:53:57 +07:00
|
|
|
//Mahasiswa
|
2024-03-07 18:13:09 +07:00
|
|
|
Route::get('/mahasiswa', [MahasiswaController::class, 'index'])->name('mahasiswa.index');
|
|
|
|
Route::POST('/mahasiswa', [MahasiswaController::class, 'store'])->name('mahasiswa.store');
|
|
|
|
Route::PUT('/mahasiswa', [MahasiswaController::class, 'update'])->name('mahasiswa.update');
|
|
|
|
Route::DELETE('/mahasiswa', [MahasiswaController::class, 'destroy'])->name('mahasiswa.destroy');
|
2024-02-27 22:53:57 +07:00
|
|
|
//User Roles
|
2024-03-07 18:13:09 +07:00
|
|
|
Route::get('/users-roles', [UserController::class, 'userroles_index'])->name('users-roles.index');
|
|
|
|
Route::POST('/users-roles', [UserController::class, 'userroles_store'])->name('users-roles.store');
|
|
|
|
Route::POST('/users-roles/assign', [UserController::class, 'userroles_assign'])->name('users-roles.assign');
|
2024-02-27 22:53:57 +07:00
|
|
|
});
|
|
|
|
|
|
|
|
|
2024-03-07 18:13:09 +07:00
|
|
|
//Layanan Pengajuan DPU/DPA
|
|
|
|
Route::get('/layanan-dpudpa/tambah', [LayananPengajuanDpuDpaController::class, 'tambah'])->name('layanan-dpudpa.tambah');
|
|
|
|
Route::post('/layanan-dpudpa/tambah', [LayananPengajuanDpuDpaController::class, 'store'])->name('layanan-dpudpa.store');
|
2024-03-10 09:07:03 +07:00
|
|
|
Route::get('/layanan-dpudpa/cetak/{caseid}', [LayananPengajuanDpuDpaController::class, 'cetak'])->name('layanan-dpudpa.cetak');
|
2024-03-07 18:13:09 +07:00
|
|
|
Route::get('/layanan-dpudpa/{url}/{caseid}', [LayananPengajuanDpuDpaController::class, 'ettd'])->name('layanan-dpudpa.ettd');
|
2024-03-10 09:07:03 +07:00
|
|
|
Route::POST('/layanan-dpudpa/{url}/{caseid}', [LayananPengajuanDpuDpaController::class, 'submitettd'])->name('layanan-dpudpa.submitettd');
|
|
|
|
ROute::get('/monitoring/{caseid}', [MonitoringController::class, 'caseid'])->name('monitoring.caseid');
|