Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<x-layouts.app title="Hak akses">
|
||||
<x-ui.page-header title="Hak akses" description="Matriks kewenangan setiap peran terhadap modul sistem. Hak ditegakkan oleh middleware peran pada setiap rute." />
|
||||
|
||||
<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.
|
||||
</x-ui.alert>
|
||||
|
||||
<x-glass.panel padding="md">
|
||||
<ul class="flex flex-wrap items-center gap-3" aria-label="Keterangan kode akses">
|
||||
@foreach ($kode as $item)
|
||||
<li><x-ui.badge :tone="$item['tone']">{{ $item['label'] }}</x-ui.badge></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</x-glass.panel>
|
||||
|
||||
<x-glass.panel padding="none">
|
||||
<x-ui.table label="Matriks hak akses peran">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Modul</th>
|
||||
@foreach ($roles as $role)
|
||||
<th scope="col">{{ $role }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach ($groups as $group => $rows)
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="rowgroup" colspan="{{ count($roles) + 1 }}" class="text-muted">{{ $group }}</th>
|
||||
</tr>
|
||||
@foreach ($rows as $row)
|
||||
<tr>
|
||||
<th scope="row" class="table__title">{{ $row['modul'] }}</th>
|
||||
@foreach ($row['akses'] as $code)
|
||||
<td>
|
||||
@if ($code === '-')
|
||||
<span aria-hidden="true">-</span><span class="visually-hidden">{{ $kode[$code]['label'] }}</span>
|
||||
@else
|
||||
<x-ui.badge :tone="$kode[$code]['tone']">{{ $kode[$code]['label'] }}</x-ui.badge>
|
||||
@endif
|
||||
</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
@endforeach
|
||||
</table>
|
||||
</x-ui.table>
|
||||
</x-glass.panel>
|
||||
</div>
|
||||
</x-layouts.app>
|
||||
Reference in New Issue
Block a user