页面优化,功能修复
This commit is contained in:
15
resources/views/components/portal/stat-grid.blade.php
Normal file
15
resources/views/components/portal/stat-grid.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
@props([
|
||||
'stats' => [],
|
||||
'gridClass' => 'channel-kpis',
|
||||
'itemClass' => 'channel-kpi',
|
||||
])
|
||||
|
||||
<section class="{{ $gridClass }}">
|
||||
@foreach($stats as $stat)
|
||||
<article class="{{ $itemClass }}">
|
||||
<span>{{ $stat['label'] }}</span>
|
||||
<b>{{ $stat['value'] }}</b>
|
||||
</article>
|
||||
@endforeach
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user