Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
<x-layouts.app title="Layanan mahasiswa">
|
||||
<x-ui.page-header title="Layanan mahasiswa" description="Antrean permohonan surat keterangan, cuti akademik, dan legalisir dokumen." />
|
||||
|
||||
<div class="stack">
|
||||
<x-ui.tabs label="Status permohonan">
|
||||
<x-ui.tab :href="route('operator.layanan.index')" :active="$status === ''">Semua</x-ui.tab>
|
||||
@foreach ($jumlah as $nama => $n)
|
||||
<x-ui.tab :href="route('operator.layanan.index', ['status' => $nama])" :active="$status === $nama">{{ $nama }} ({{ $n }})</x-ui.tab>
|
||||
@endforeach
|
||||
</x-ui.tabs>
|
||||
|
||||
<x-glass.panel padding="none">
|
||||
@if ($rows->isEmpty())
|
||||
<x-ui.empty icon="inbox" title="Tidak ada permohonan" description="Belum ada permohonan dengan status ini." />
|
||||
@else
|
||||
<x-ui.table label="Antrean layanan mahasiswa">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Pemohon</th>
|
||||
<th scope="col">Jenis layanan</th>
|
||||
<th scope="col">Tanggal</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col" class="table__actions"><span class="visually-hidden">Aksi</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($rows as $l)
|
||||
<tr>
|
||||
<td class="table__title">{{ $l['nama'] }}<div class="table__meta">{{ $l['nim'] }} - {{ $l['prodi'] }}</div></td>
|
||||
<td>{{ $l['jenis'] }}</td>
|
||||
<td>{{ \Illuminate\Support\Carbon::parse($l['tanggal'])->locale('id')->isoFormat('D MMM YYYY') }}</td>
|
||||
<td><x-ui.badge :tone="\App\Support\Prototype\OperatorData::krsTone($l['status'])">{{ $l['status'] }}</x-ui.badge></td>
|
||||
<td class="table__actions">
|
||||
@if ($l['status'] === 'Menunggu')
|
||||
<x-ui.confirm
|
||||
class="inline-flex"
|
||||
:action="route('operator.layanan.approve', $l['id'])"
|
||||
:title="'Setujui permohonan '.$l['nama'].'?'"
|
||||
:message="$l['jenis']"
|
||||
confirm-label="Ya, setujui"
|
||||
icon="check-circle"
|
||||
:icon-only="true"
|
||||
:label="'Setujui permohonan '.$l['nama']"
|
||||
/>
|
||||
<x-ui.confirm
|
||||
class="inline-flex"
|
||||
:action="route('operator.layanan.reject', $l['id'])"
|
||||
:title="'Tolak permohonan '.$l['nama'].'?'"
|
||||
:message="$l['jenis']"
|
||||
confirm-label="Ya, tolak"
|
||||
tone="danger"
|
||||
icon="x-mark"
|
||||
:icon-only="true"
|
||||
:label="'Tolak permohonan '.$l['nama']"
|
||||
/>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</x-ui.table>
|
||||
@endif
|
||||
</x-glass.panel>
|
||||
</div>
|
||||
</x-layouts.app>
|
||||
Reference in New Issue
Block a user