mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix some upgrade issue
This commit is contained in:
+50
-46
@@ -1,51 +1,55 @@
|
||||
<div class="fi-ta-ctn">
|
||||
<div class="fi-ta-content-ctn">
|
||||
<table class="fi-ta-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_required_label') }}
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_required_value') }}
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_current_value') }}
|
||||
<div class="fi-ta-main">
|
||||
<div class="fi-ta-content-ctn">
|
||||
<table class="fi-ta-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_required_label') }}
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_required_value') }}
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_current_value') }}
|
||||
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_result') }}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
|
||||
@foreach ($getState() as $index)
|
||||
<tr class="fi-ta-row">
|
||||
<td class="fi-ta-cell fi-ta-cell-id">
|
||||
<div class="fi-ta-col">
|
||||
<div class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['index_formatted'] }}</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="fi-ta-cell fi-ta-cell-id">
|
||||
<div class="fi-ta-col">
|
||||
<div
|
||||
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['require_value_formatted'] }}</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="fi-ta-cell fi-ta-cell-id">
|
||||
<div class="fi-ta-col">
|
||||
<div
|
||||
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['current_value_formatted'] }}</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="fi-ta-cell fi-ta-cell-id">
|
||||
<div class="fi-ta-col">
|
||||
<div class="fi-size-sm fi-ta-text-item fi-ta-text">{!! $index['index_result'] !!}</div>
|
||||
</div>
|
||||
</td>
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_result') }}
|
||||
</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
|
||||
@foreach ($getState() as $index)
|
||||
<tr class="fi-ta-row">
|
||||
<td class="fi-ta-cell fi-ta-cell-id">
|
||||
<div class="fi-ta-col">
|
||||
<div
|
||||
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['index_formatted'] }}</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="fi-ta-cell fi-ta-cell-id">
|
||||
<div class="fi-ta-col">
|
||||
<div
|
||||
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['require_value_formatted'] }}</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="fi-ta-cell fi-ta-cell-id">
|
||||
<div class="fi-ta-col">
|
||||
<div
|
||||
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['current_value_formatted'] }}</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="fi-ta-cell fi-ta-cell-id">
|
||||
<div class="fi-ta-col">
|
||||
<div
|
||||
class="fi-size-sm fi-ta-text-item fi-ta-text">{!! $index['index_result'] !!}</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,33 +1,37 @@
|
||||
<x-filament-widgets::widget class="fi-ta-ctn fi-ta-ctn-with-header">
|
||||
<!-- Header Section -->
|
||||
<div class="fi-ta-header">
|
||||
<div>
|
||||
<h2 class="fi-ta-header-heading">
|
||||
{{$header}}
|
||||
</h2>
|
||||
<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>
|
||||
<!-- Table Section -->
|
||||
<div class="fi-ta-content-ctn">
|
||||
<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>
|
||||
</x-filament-widgets::widget>
|
||||
|
||||
Reference in New Issue
Block a user