@php // class is not working, so use style $styleBackgroundColorBlue = 'background-color:#95d7f0;'; $styleBackgroundColorYellow = 'background-color:#FFFFC0;'; $styleBorderAround = 'border: 1px solid black;'; $styleTextLeft = 'text-align: left;'; $styleTextCenter = 'text-align: center;'; $styleTextRight = 'text-align: right;'; $styleFontSize16 = 'font-size:16px;'; @endphp @foreach ($orderSummary as $type => $order) @php $typeName = [ 'paid' => '已付', 'unpaid' => '未付', 'all' => '總計', ][$type]; @endphp @endforeach @foreach ($commission_orders as $order) @endforeach
{{ $commission->administrator->name }} ( {{ $commission->activity->name }} ) 截至 {{ $now->format('Y/m/d H:i') }}
訂單數 營收
{{ $typeName }} {{ $order['count'] }} $ {{ number_format($order['total']) }}
平均客單 $ {{ number_format($perCustomerTransaction) }}
訂單編號 訂購人 訂單金額 訂單分潤 訂單毛利 發票號碼 訂單日期
{{ $order->order_code }} {{ $order->order_customer_name }} $ {{ number_format($order->order_total) }} $ {{ number_format($order->bonus_total) }} $ {{ number_format($order->remaining_total) }} {{ $order->invoice_code}} {{ $order->order_created_at->format('Y.m.d H:i') }}