102 lines
6.9 KiB
PHP
102 lines
6.9 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
use App\Http\Controllers\AdminController;
|
|
use App\Http\Controllers\UserController;
|
|
use App\Http\Controllers\LayananPengajuanDpuDpaController;
|
|
use App\Http\Controllers\LayananSeminarProposal;
|
|
use App\Http\Controllers\LayananSidangAkhirController;
|
|
use App\Http\Controllers\MahasiswaController;
|
|
use App\Http\Controllers\MonitoringController;
|
|
use App\Http\Controllers\SesiLoginController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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::middleware(['guest'])->group(function () {
|
|
route::get('/admin/login',[SesiLoginController::class, 'login'])->name('login');
|
|
route::post('/admin/login',[SesiLoginController::class, 'ceklogin'])->name('admin.ceklogin');
|
|
});
|
|
|
|
route::get('/', function(){
|
|
return view('index');
|
|
})->name('laman-awal');
|
|
|
|
Route::get('/home', function(){
|
|
return redirect('/admin');
|
|
});
|
|
|
|
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');
|
|
Route::POST('/layanan-dpudpa/resend/{caseid}', [LayananPengajuanDpuDpaController::class, 'resend'])->name('layanan-dpudpa.resend');
|
|
//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');
|
|
Route::POST('/layanan-sempro/resend/{caseid}', [LayananSeminarProposal::class, 'resend'])->name('layanan-sempro.resend');
|
|
//layanan Pengajuan Sidang Akhir
|
|
Route::get('/layanan-sidangakhir', [LayananSidangAkhirController::class, 'index'])->name('layanan-sidangakhir.index');
|
|
Route::DELETE('/layanan-sidangakhir', [LayananSidangAkhirController::class, 'destroy'])->name('layanan-sidangakhir.destroy');
|
|
Route::POST('/layanan-sidangakhir', [LayananSidangAkhirController::class, 'terima'])->name('layanan-sidangakhir.terima');
|
|
Route::POST('/layanan-sidangakhir/resend/{caseid}', [LayananSidangAkhirController::class, 'resend'])->name('layanan-sidangakhir.resend');
|
|
|
|
//User
|
|
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');
|
|
//Mahasiswa
|
|
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');
|
|
//User Roles
|
|
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');
|
|
});
|
|
|
|
|
|
//Layanan Pengajuan DPU/DPA
|
|
Route::get('/layanan-dpudpa/cari', [LayananPengajuanDpuDpaController::class, 'cari'])->name('layanan-dpudpa.cari');
|
|
Route::post('/layanan-dpudpa/cari', [LayananPengajuanDpuDpaController::class, 'search'])->name('layanan-dpudpa.search');
|
|
Route::get('/layanan-dpudpa/tambah', [LayananPengajuanDpuDpaController::class, 'tambah'])->name('layanan-dpudpa.tambah');
|
|
Route::post('/layanan-dpudpa/tambah', [LayananPengajuanDpuDpaController::class, 'store'])->name('layanan-dpudpa.store');
|
|
Route::get('/layanan-dpudpa/cetak/{caseid}', [LayananPengajuanDpuDpaController::class, 'cetak'])->name('layanan-dpudpa.cetak');
|
|
Route::get('/layanan-dpudpa/{url}/{caseid}', [LayananPengajuanDpuDpaController::class, 'ettd'])->name('layanan-dpudpa.ettd');
|
|
Route::POST('/layanan-dpudpa/{url}/{caseid}', [LayananPengajuanDpuDpaController::class, 'submitettd'])->name('layanan-dpudpa.submitettd');
|
|
//Layanan Pengajuan Sempro
|
|
Route::get('/layanan-sempro/cari', [LayananSeminarProposal::class, 'cari'])->name('layanan-sempro.cari');
|
|
Route::post('/layanan-sempro/cari', [LayananSeminarProposal::class, 'search'])->name('layanan-sempro.search');
|
|
Route::get('/layanan-sempro/tambah', [LayananSeminarProposal::class, 'tambah'])->name('layanan-sempro.tambah');
|
|
Route::post('/layanan-sempro/tambah', [LayananSeminarProposal::class, 'store'])->name('layanan-sempro.store');
|
|
Route::get('/layanan-sempro/cetak/{caseid}', [LayananSeminarProposal::class, 'cetak'])->name('layanan-sempro.cetak');
|
|
Route::get('/layanan-sempro/dpu/{caseid}', [LayananSeminarProposal::class, 'ettd'])->name('layanan-sempro.ettd');
|
|
Route::POST('/layanan-sempro/dpu/{caseid}', [LayananSeminarProposal::class, 'submitettd'])->name('layanan-sempro.submitettd');
|
|
//Layanan Pengajuan SidangAkhir
|
|
Route::get('/layanan-sidangakhir/cari', [LayananSidangAkhirController::class, 'cari'])->name('layanan-sidangakhir.cari');
|
|
Route::post('/layanan-sidangakhir/cari', [LayananSidangAkhirController::class, 'search'])->name('layanan-sidangakhir.search');
|
|
Route::get('/layanan-sidangakhir/tambah', [LayananSidangAkhirController::class, 'tambah'])->name('layanan-sidangakhir.tambah');
|
|
Route::post('/layanan-sidangakhir/tambah', [LayananSidangAkhirController::class, 'store'])->name('layanan-sidangakhir.store');
|
|
Route::get('/layanan-sidangakhir/cetak/{caseid}', [LayananSidangAkhirController::class, 'cetak'])->name('layanan-sidangakhir.cetak');
|
|
Route::get('/layanan-sidangakhir/dpu/{caseid}', [LayananSidangAkhirController::class, 'ettd'])->name('layanan-sidangakhir.ettd');
|
|
Route::POST('/layanan-sidangakhir/dpu/{caseid}', [LayananSidangAkhirController::class, 'submitettd'])->name('layanan-sidangakhir.submitettd');
|
|
|
|
Route::get('/monitoring', [MonitoringController::class, 'index'])->name('monitoring.index');
|
|
Route::post('/monitoring', [MonitoringController::class, 'search'])->name('monitoring.search');
|
|
Route::get('/monitoring/{caseid}', [MonitoringController::class, 'caseid'])->name('monitoring.caseid'); |