@php $font_family = 'DejaVu Sans, sans-serif'; $primary_color = !empty($userBs->base_color) ? ('#' . str_replace('#', '', $userBs->base_color)) : '#1e3a8a'; $currSymbol = '₹'; $currPos = 'left'; function fmtPrice($amt, $sym = '₹', $pos = 'left') { $val = number_format((float)$amt, 2, '.', ','); return '₹ ' . $val; } @endphp
{{ $userBs->website_title ?? ($user->username ?? 'Store') }}Completed Orders History & Revenue Summary |
Filter: Order Status = Completed • Payment = Completed
Date Range: {{ $rangeLabel ?? 'All Time' }} Generated At: {{ $generatedAt }} Total Records: {{ count($orders) }} orders |
|
Total Revenue
{{ fmtPrice($totalRevenue, $currSymbol, $currPos) }}
|
Total Completed Orders
{{ count($orders) }}
|
Total GST Tax
{{ fmtPrice($totalTax, $currSymbol, $currPos) }}
|
Total Shipping
{{ fmtPrice($totalShipping, $currSymbol, $currPos) }}
|
| # | Order # | Date | Customer Name | Gateway | Subtotal | GST Tax | Shipping | Total | Status |
|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | #{{ $order->order_number }} | {{ \Carbon\Carbon::parse($order->created_at)->format('d-M-Y') }} | {{ $custName }} | {{ $order->method ?? 'Online' }} | {{ fmtPrice($subtotal, $currSymbol, $currPos) }} | {{ fmtPrice($order->tax ?? 0, $currSymbol, $currPos) }} | {{ fmtPrice($order->shipping_charge ?? 0, $currSymbol, $currPos) }} | {{ fmtPrice($order->total, $currSymbol, $currPos) }} | Completed |
| Grand Totals: | {{ fmtPrice($sumSubtotal, $currSymbol, $currPos) }} | {{ fmtPrice($sumTax, $currSymbol, $currPos) }} | {{ fmtPrice($sumShipping, $currSymbol, $currPos) }} | {{ fmtPrice($sumTotal, $currSymbol, $currPos) }} | {{ count($orders) }} Orders | ||||