update
parent
09c1fca0aa
commit
5097d918d7
|
|
@ -98,7 +98,7 @@
|
||||||
|
|
||||||
<div class="flex items-center p-2 rounded" style="overflow-x:auto;">
|
<div class="flex items-center p-2 rounded" style="overflow-x:auto;">
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
|
@if(@$item->tahun >= 2026)
|
||||||
<table id="table"
|
<table id="table"
|
||||||
class="w-full border text-left border-collapse"
|
class="w-full border text-left border-collapse"
|
||||||
data-toggle="table"
|
data-toggle="table"
|
||||||
|
|
@ -116,6 +116,27 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@else
|
||||||
|
<?php $data = json_decode($item->data); ?>
|
||||||
|
<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='.@$item->DatasetId) }}"
|
||||||
|
>
|
||||||
|
<thead class="bg-slate-100 border-b border-slate-100">
|
||||||
|
<tr>
|
||||||
|
@if (!empty($data))
|
||||||
|
@foreach ($data[0] as $k => $key)
|
||||||
|
<th data-field="{{$k}}" class="text-[10px] px-6 py-4 border font-bold text-slate-900">{{ ucwords(str_replace('_', ' ', $k)) }}</th>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue