@foreach ($orderSummary as $type => $order) @php $typeName = [ 'paid' => '已付', 'unpaid' => '未付', 'all' => '總計', ][$type]; @endphp @endforeach
訂單數 營收
{{ $typeName }} {{ $order['count'] }} $ {{ number_format($order['total']) }}
平均客單 $ {{ number_format($perCustomerTransaction) }}