main
Ilham Wara Nugroho 2026-03-04 08:45:34 +07:00
parent 6b2da35935
commit d22d067649
1 changed files with 3 additions and 3 deletions

View File

@ -72,18 +72,18 @@
</table>
@else
<?php $data = json_decode($dataset->data); ?>
<table class="w-full text-left text-sm" id="table"
<table class="w-full text-left border-collapse" id="table"
data-toggle="table"
data-search="false"
data-pagination="true"
data-side-pagination="server"
data-url="{{ url('dataset/Griddetail2025?id='.@$keyId) }}"
>
<thead class="bg-slate-50 text-slate-500 uppercase text-[10px] font-bold tracking-wider">
<thead class="bg-slate-100 border-b border-slate-100">
<tr class="hover:bg-blue-50/30 transition-colors">
@if (!empty($data))
@foreach ($data[0] as $k => $key)
<th data-field="{{$k}}" class="px-6 py-4">{{ ucwords(str_replace('_', ' ', $k)) }}</th>
<th data-field="{{$k}}" class="text-[10px] border font-bold text-slate-900">{{ ucwords(str_replace('_', ' ', $k)) }}</th>
@endforeach
@endif
</tr>