Files
xin-procurement/resources/views/exports/statement.blade.php
T
2026-07-23 20:41:25 +08:00

59 lines
1.9 KiB
PHP
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<style>
body { font-family: SimHei, sans-serif; font-size: 12px; color: #333; }
h2 { text-align: center; margin: 0 0 12px; }
.meta { margin-bottom: 10px; line-height: 1.8; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #999; padding: 4px 6px; }
th { background: #f0f0f0; }
.text-right { text-align: right; }
tfoot td { font-weight: bold; background: #fafafa; }
</style>
</head>
<body>
<h2>门店对账单</h2>
<div class="meta">
对账单号:{{ $statement->statement_no }}  门店:{{ $storeName }}<br>
对账周期:{{ $statement->period_start?->format('Y-m-d') }} {{ $statement->period_end?->format('Y-m-d') }}
回款周期:{{ $statement->payment_cycle_days }}
应结算日期:{{ $statement->settlement_date?->format('Y-m-d') }}
</div>
<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>{{ $item->product_name }}</td>
<td class="text-right">{{ $item->price }}</td>
<td class="text-right">{{ $item->quantity }}</td>
<td class="text-right">{{ $item->weight }}</td>
<td class="text-right">{{ $item->amount }}</td>
<td>{{ $item->is_reconciled ? '已对账' : '未对账' }}</td>
<td>{{ $item->store_remark }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td colspan="4" class="text-right">合计金额</td>
<td class="text-right">¥{{ $statement->total_amount }}</td>
<td colspan="2"></td>
</tr>
</tfoot>
</table>
</body>
</html>