mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
<x-filament-widgets::widget class="fi-ta-ctn fi-ta-ctn-with-header">
|
|
<div class="fi-ta-main">
|
|
<!-- Header Section -->
|
|
<div class="fi-ta-header-ctn">
|
|
<div class="fi-ta-header">
|
|
<div>
|
|
<h2 class="fi-ta-header-heading">
|
|
{{$header}}
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Table Section -->
|
|
<div class="fi-ta-content-ctn fi-fixed-positioning-context">
|
|
<table class="fi-ta-table">
|
|
<tbody>
|
|
@foreach(array_chunk($data, 2) as $chunk)
|
|
<tr>
|
|
@foreach($chunk as $item)
|
|
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
|
{{$item['text']}}
|
|
</th>
|
|
<td class="fi-ta-cell fi-table-cell-id"
|
|
@if($loop->count == 1)
|
|
colspan="3"
|
|
@endif
|
|
>
|
|
<div class="{{$item['class'] ?? ''}}">{{$item['value']}}</div>
|
|
</td>
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</x-filament-widgets::widget>
|