Point Docker and Coolify compose to the Laravel rebuild app so mahasiswa, dosen, and admin flows are served from the new Laravel public entrypoint.
52 lines
3.6 KiB
PHP
52 lines
3.6 KiB
PHP
<?php
|
|
|
|
namespace App\Support;
|
|
|
|
class DosenNavigation
|
|
{
|
|
public static function build(string $activeRoute): array
|
|
{
|
|
return [
|
|
'main' => [
|
|
['title' => 'Dashboard', 'href' => route('dashboard.dosen'), 'icon' => 'home', 'active' => $activeRoute === 'dashboard.dosen'],
|
|
],
|
|
'sections' => [
|
|
[
|
|
'title' => 'Utama',
|
|
'icon' => 'briefcase',
|
|
'items' => [
|
|
['title' => 'Penawaran Judul', 'href' => route('dosen.penawaran.index'), 'icon' => 'briefcase', 'active' => $activeRoute === 'dosen.penawaran.index'],
|
|
],
|
|
],
|
|
[
|
|
'title' => 'Tugas Akhir 1',
|
|
'icon' => 'folder',
|
|
'items' => [
|
|
['title' => 'Daftar Usulan', 'href' => route('dosen.praoutline.index'), 'icon' => 'folder', 'active' => $activeRoute === 'dosen.praoutline.index'],
|
|
['title' => 'Review Saya', 'href' => route('dosen.praoutline.review-saya'), 'icon' => 'chat', 'active' => $activeRoute === 'dosen.praoutline.review-saya'],
|
|
['title' => 'Pencarian Usulan', 'href' => route('dosen.praoutline.cari'), 'icon' => 'search', 'active' => $activeRoute === 'dosen.praoutline.cari'],
|
|
['title' => 'Daftar Bimbingan Saya', 'href' => route('dosen.praoutline.bimbingan'), 'icon' => 'users', 'active' => $activeRoute === 'dosen.praoutline.bimbingan'],
|
|
['title' => 'Statistik Usulan', 'href' => route('dosen.praoutline.statistik'), 'icon' => 'chart', 'active' => $activeRoute === 'dosen.praoutline.statistik'],
|
|
['title' => 'Pemberitahuan', 'href' => route('dosen.praoutline.pemberitahuan'), 'icon' => 'bell', 'active' => $activeRoute === 'dosen.praoutline.pemberitahuan'],
|
|
],
|
|
],
|
|
[
|
|
'title' => 'Lainnya',
|
|
'icon' => 'grid',
|
|
'items' => [
|
|
['title' => 'Pengumuman', 'href' => route('dosen.pengumuman.index'), 'icon' => 'megaphone', 'active' => $activeRoute === 'dosen.pengumuman.index' || $activeRoute === 'dosen.pengumuman.show'],
|
|
['title' => 'Akun Pengguna', 'href' => route('dosen.profile'), 'icon' => 'user', 'active' => $activeRoute === 'dosen.profile'],
|
|
['title' => 'Dokumen Sidang', 'href' => 'https://edoxid.untan.ac.id/', 'icon' => 'document', 'external' => true],
|
|
['title' => 'Early Warning', 'href' => route('dosen.early-warning'), 'icon' => 'warning', 'active' => $activeRoute === 'dosen.early-warning'],
|
|
['title' => 'Konsultasi Skripsi', 'href' => 'https://spota.untan.ac.id/konsultasi/', 'icon' => 'chat', 'external' => true],
|
|
['title' => 'Statistik Seminar', 'href' => 'https://spota.untan.ac.id/cek_banyak_sidang.php', 'icon' => 'chart', 'external' => true],
|
|
['title' => 'Konsultasi KP', 'href' => 'https://informatika.untan.ac.id/konsultasi/', 'icon' => 'chat', 'external' => true],
|
|
['title' => 'Pra LIRS (Dosen PA)', 'href' => route('dosen.pra-lirs'), 'icon' => 'clipboard', 'active' => $activeRoute === 'dosen.pra-lirs'],
|
|
['title' => 'Evaluasi Mahasiswa', 'href' => 'https://spota.untan.ac.id/steven/rekapMahasiswaEvaluasi.php?angkatan='.(date('Y') - 5).'&show=belumlulus', 'icon' => 'chart', 'external' => true],
|
|
],
|
|
],
|
|
],
|
|
];
|
|
}
|
|
}
|