Integrasi Login dan menu Dasar SIAKAD Operator dan Mahasiswa
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
@props(['tone' => 'neutral', 'icon' => null])
|
||||
|
||||
@php
|
||||
$tone = in_array($tone, ['neutral', 'accent', 'gold', 'success', 'danger'], true) ? $tone : 'neutral';
|
||||
$tone = in_array($tone, ['neutral', 'accent', 'gold', 'success', 'danger', 'info', 'violet'], true) ? $tone : 'neutral';
|
||||
@endphp
|
||||
|
||||
<span {{ $attributes->class(['badge', "badge--{$tone}" => $tone !== 'neutral']) }}>
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
<div class="chart__canvas" style="height: {{ $height }}" x-data="chartCanvas(@js(['type' => $type, 'labels' => $labels, 'datasets' => $datasets]))">
|
||||
<canvas x-ref="canvas" id="{{ $id }}" role="img" aria-label="{{ $title }}"></canvas>
|
||||
</div>
|
||||
<table class="visually-hidden">
|
||||
{{-- Tabel tidak mematuhi width/overflow: sembunyikan lewat pembungkus agar tidak melebar. --}}
|
||||
<div class="visually-hidden"><table>
|
||||
<caption>{{ $title }}</caption>
|
||||
<thead>
|
||||
<tr><th scope="col">Kategori</th>@foreach ($datasets as $ds)<th scope="col">{{ $ds['label'] ?? 'Nilai' }}</th>@endforeach</tr>
|
||||
@@ -31,6 +32,6 @@
|
||||
<tr><th scope="row">{{ $label }}</th>@foreach ($datasets as $ds)<td>{{ $ds['data'][$i] ?? 0 }}</td>@endforeach</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</table></div>
|
||||
@endif
|
||||
</x-glass.panel>
|
||||
|
||||
Reference in New Issue
Block a user