Penambahan Akses Laman Dosen dab perbaikan fix
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{{-- Skripsi yang dibimbing dosen, dari t_skripsi (pembimbing 1 atau 2). Hanya baca. --}}
|
||||
@php
|
||||
$tanggal = fn (?string $d): string => $d === null ? '-' : \App\Support\Prototype\DosenData::tanggal($d);
|
||||
@endphp
|
||||
|
||||
<x-layouts.app title="Bimbingan skripsi">
|
||||
<x-ui.page-header title="Bimbingan skripsi" description="Skripsi mahasiswa yang Anda bimbing sebagai pembimbing 1 atau pembimbing 2." />
|
||||
|
||||
@if ($berjalan->isEmpty() && $selesai->isEmpty())
|
||||
<x-glass.panel padding="lg">
|
||||
<x-ui.empty icon="book-open" title="Belum ada skripsi yang dibimbing" description="Skripsi tampil di sini setelah Anda ditetapkan sebagai pembimbing." />
|
||||
</x-glass.panel>
|
||||
@else
|
||||
<div class="stack">
|
||||
<x-ui.stats>
|
||||
<x-ui.stat label="Sedang dibimbing" :value="$berjalan->count()" icon="users" />
|
||||
<x-ui.stat label="Selesai" :value="$selesai->count()" icon="check-circle" hint="Telah lulus sidang" />
|
||||
</x-ui.stats>
|
||||
|
||||
@foreach ([['judul-berjalan', 'Sedang dibimbing', $berjalan], ['judul-selesai', 'Selesai dibimbing', $selesai]] as [$id, $judul, $daftar])
|
||||
@if ($daftar->isNotEmpty())
|
||||
<x-satu.datatable :label="$judul" :heading="$judul" placeholder="Cari mahasiswa atau judul">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Mahasiswa</th>
|
||||
<th scope="col">Judul</th>
|
||||
<th scope="col">Peran</th>
|
||||
<th scope="col">Mulai</th>
|
||||
<th scope="col">Lulus</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($daftar as $t)
|
||||
<tr>
|
||||
<td class="table__title">{{ $t['nama'] }} <span class="table__meta block">{{ $t['nim'] }}</span></td>
|
||||
<td style="min-width: 18rem">{{ $t['judul'] }}</td>
|
||||
<td><x-ui.badge tone="accent">{{ $t['peran'] }}</x-ui.badge></td>
|
||||
<td>{{ $tanggal($t['mulai']) }}</td>
|
||||
<td>{{ $tanggal($t['lulus']) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</x-satu.datatable>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
<p class="text-sm text-muted">DB akademik tidak menyimpan catatan sesi bimbingan, sehingga halaman ini hanya memuat judul, peran, dan tanggal. Daftar dibatasi 200 skripsi terbaru.</p>
|
||||
</div>
|
||||
@endif
|
||||
</x-layouts.app>
|
||||
Reference in New Issue
Block a user