CaiWuXiTong/resources/views/business/pages/store_data.blade.php

36 lines
1.6 KiB
PHP

<div class="business-page-header">
<span class="business-page-title">{{ $title ?? '公司店铺数据' }}</span>
</div>
<div class="business-table-container">
<table class="business-table">
<thead>
<tr>
<th>序号</th>
<th>公司名称</th>
<th>店铺名称</th>
<th>店铺业绩</th>
<th>公司业绩</th>
<th>是否触发店铺变更流程</th>
<th>是否触发公司注册流程</th>
</tr>
</thead>
<tbody>
@foreach($items as $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $item->company_name }}</td>
<td>{{ $item->store_name }}</td>
<td>{{ number_format($item->store_performance, 2) }}</td>
<td>{{ number_format($item->company_performance, 2) }}</td>
<td>@if($item->trigger_store_change) <span class="business-badge business-badge-success">是</span> @else <span class="business-badge business-badge-danger">否</span> @endif</td>
<td>@if($item->trigger_company_registration) <span class="business-badge business-badge-success">是</span> @else <span class="business-badge business-badge-danger">否</span> @endif</td>
</tr>
@endforeach
@if($items->isEmpty())
<tr><td colspan=7 style="text-align:center; color:#9ca3af; padding:2rem;">暂无数据</td></tr>
@endif
</tbody>
</table>
</div>