@foreach ($list as $index => $item) @endforeach
旅行社 團名/團號 訂單號碼/訂購人 類型 出發/結束日 人數 總收入 總成本 毛利/毛利率 淨利/淨利率 未收 未付 結餘
{{ $index + 1 }}
{{ $item['order']['tour']['outAgency'] }}
{{ $item['order']['tour']['title'] }}
{{ $item['order']['tour']['code'] ? $item['order']['tour']['code'] : '--' }}
{{ $item['order']['uid'] }}
{{ $item['order']['member']['name'] }}
{{ $item['order']['tour']['eleType']['name'] }}
{{ $item['order']['tour']['godate'] ? $item['order']['tour']['godate'] : '--' }}

{{ $item['order']['tour']['redate'] ?: '---' }}
{{ $item['statist']['true']['pay']['number'] }} {{ number_format($item['statist']['money']['pay']) }} {{ number_format($item['statist']['money']['expend']) }} {{ number_format($item['statist']['profit']) }}
({{ number_format(($item['statist']['Gprofit']['pay'] ? $item['statist']['profit'] / $item['statist']['Gprofit']['pay'] : 0) * 100, 2, '.', '') }}%)
{{ number_format($item['statist']['Nprofit']) }}
({{ number_format(($item['statist']['money']['pay'] ? $item['statist']['Nprofit'] / $item['statist']['money']['pay'] : 0) * 100, 2, '.', '') }}%)
{{ number_format($item['statist']['pay']['balance']) }} {{ number_format($item['statist']['expend']['balance']) }} @if ($orderSource[$item['order']['uid']]['total']['cash'] ?? '')
現金結餘:{{ number_format($orderSource[$item['order']['uid']]['total']['cash']['amt']) }}
@endif @if ($orderSource[$item['order']['uid']]['total']['other'] ?? '')
其他結餘:{{ number_format($orderSource[$item['order']['uid']]['total']['other']['amt']) }}
@endif {{-- {{ number_format($item['statist']['pay']['punch'] - $item['statist']['expend']['punch']) }} --}}
@foreach ($SourceTotal as $key => $item)
{{ $item['total']['name'] }}:
總收入:{{ number_format($item['P']['amt']) }}
總支出:{{ number_format($item['E']['amt']) }}
結餘:{{ number_format($item['total']['amt']) }}
@endforeach