@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) }}
@php $sumSubtotal = 0; $sumTax = 0; $sumShipping = 0; $sumTotal = 0; @endphp @foreach ($orders as $index => $order) @php $subtotal = $order->total - ($order->tax ?? 0) - ($order->shipping_charge ?? 0); $sumSubtotal += $subtotal; $sumTax += ($order->tax ?? 0); $sumShipping += ($order->shipping_charge ?? 0); $sumTotal += $order->total; $custName = !empty($order->billing_fname) ? ($order->billing_fname . ' ' . ($order->billing_lname ?? '')) : (!empty($order->shipping_fname) ? $order->shipping_fname : 'Customer'); @endphp @endforeach
# 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
This is an automated order history export generated from {{ $userBs->website_title ?? 'LaunchShop / EcomBuilder' }} • Confirmed Paid Orders Only