@foreach ($products['all'] as $product) @php $paidProduct = $products['paid'][$product['productId']] ?? ''; $unPaidProduct = $products['unpaid'][$product['productId']] ?? ''; @endphp @endforeach {{-- 運費 --}} {{-- 折扣 --}} {{-- 總計 --}}
類別 品項 團購價 已付款組數 未付款組數 總銷售組數 小計 訂單占比 銷售額占比
{{ $product['productPropertyName'] }} {{ $product['productName'] }} $ {{ number_format($product['price']) }} {{ $paidProduct['quantity'] ?? 0 }} {{ $unPaidProduct['quantity'] ?? 0 }} {{ $product['quantity'] ?? 0 }} $ {{ number_format($product['total']) }} {{ $product['quantityPercent'] }} % {{ $product['totalPercent'] }} %
運費 $ {{ number_format($freightFee) }}
(折扣) - $ {{ number_format($discountFee) }}
銷售量總計 {{ $productsSum['paid'] }} {{ $productsSum['unpaid'] }} {{ $productsSum['all'] }} $ {{ number_format($productsSum['total']) }}