@extends('b2bportal::storefront.layouts.app') @php $primary = $orders->first(); $totals = [ 'subtotal' => $orders->sum('subtotal'), 'discount' => $orders->sum('discount_total'), 'tax' => $orders->sum('tax_total'), 'shipping' => $orders->sum('shipping_total'), 'grand' => $orders->sum('grand_total'), ]; @endphp @section('title', 'Order ' . ($primary->order_number ?? '') . ' — ' . ($business->name ?? 'B2B Portal')) @section('content')
Order #{{ $primary->order_number ?? substr($groupUid, 0, 8) }}
| Item | Qty | Unit | Subtotal |
|---|---|---|---|
| {{ $line['name'] ?? '—' }} | {{ $line['quantity'] ?? 0 }} | {{ config('constants.currency_symbol','₹') }}{{ number_format($line['unit_price'] ?? 0, 2) }} | {{ config('constants.currency_symbol','₹') }}{{ number_format($line['subtotal'] ?? 0, 2) }} |