売掛残高順位表(決算)

{{ date('Y-m', strtotime($viewdata['formdata']['date_to'])) }} 月度 出力日:{{ date('Y-m-d') }} {{ $pagenum }} / {{ $pagetotal }} 頁
@php $subtotal = []; $subtotal['件数'] = 0; $subtotal['売掛残高'] = 0; @endphp @foreach($pagedata as $customer) @php $subtotal['件数']++; $subtotal['売掛残高'] += $customer['売掛残高']; @endphp @endforeach @if (!empty($total)) @endif
順位 得意先 金額
{{ $customer['順位'] }} {{ $customer['得意先NO'] }} {{ $customer['得意先名'] }} {{ $customer['得意先住所'] }} {{ number_format($customer['売掛残高']) }}
{{ $viewdata['others']['得意先名'] }} {{ number_format($viewdata['others']['売掛残高']) }}
☆合計 {{ number_format($total['売掛残高']) }}