38 lines
2.3 KiB
PHP
38 lines
2.3 KiB
PHP
<x-layouts.app title="Hak akses">
|
|
<x-ui.page-header title="Hak akses" description="Otoritas asli SIAKAD, jumlah pemegangnya, menu yang boleh dibuka, dan peran tempat otoritas itu dipetakan saat masuk." />
|
|
|
|
<div class="stack">
|
|
<x-ui.alert tone="info" title="Tidak ada akses implisit">
|
|
Superuser hanya mengelola sistem. Halaman akademik milik peran lain tetap tertutup bagi Superuser. Otoritas akun diatur dari halaman detail Pengguna.
|
|
</x-ui.alert>
|
|
|
|
{{-- Format tabel SATU (cari dan halaman di sisi klien) seperti daftar di halaman Operator. --}}
|
|
<x-satu.datatable label="Daftar otoritas" placeholder="Cari otoritas atau peran" :per="25">
|
|
<table class="table satu-table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Otoritas</th>
|
|
<th scope="col">Peran di SIAKAD</th>
|
|
<th scope="col" class="num">Pemegang</th>
|
|
<th scope="col" class="num">Menu</th>
|
|
<th scope="col" class="table__actions"><span class="visually-hidden">Aksi</span></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($authorities as $a)
|
|
<tr>
|
|
<td class="table__title"><a href="{{ route('superuser.hak-akses.show', $a['id']) }}">{{ $a['nama'] }}</a></td>
|
|
<td><x-ui.badge :tone="\App\Support\Prototype\SuperuserData::ROLE_TONE[$a['peran']] ?? 'neutral'">{{ $a['peran'] }}</x-ui.badge></td>
|
|
<td class="num">{{ number_format($a['pengguna'], 0, ',', '.') }}</td>
|
|
<td class="num">{{ number_format($a['menu'], 0, ',', '.') }}</td>
|
|
<td class="table__actions">
|
|
<x-ui.button variant="ghost" size="sm" :href="route('superuser.hak-akses.show', $a['id'])" icon="eye" :icon-only="true" :aria-label="'Lihat otoritas '.$a['nama']" />
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</x-satu.datatable>
|
|
</div>
|
|
</x-layouts.app>
|