| # | Order # | Customer | Phone | Items | Total (৳) | Paid (৳) | Unpaid (৳) | Order Status | Payment | Date |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ $sl++ }} | {{ $order->order_number }} | {{ $order->customer_name }} | {{ $order->phone }} |
@foreach($order->items as $item)
{{ $item->product_name ?? ($item->product->name ?? 'N/A') }} ×{{ $item->quantity }}
@endforeach
|
{{ number_format($order->total_amount, 0) }} | @if($paidAmt > 0) {{ number_format($paidAmt, 0) }} @else — @endif | @if($unpaidAmt > 0) {{ number_format($unpaidAmt, 0) }} @else ✓ Clear @endif | {{ ucfirst($order->status) }} |
{{ ucwords(str_replace('_', ' ', $order->payment_status)) }}
@if($order->payment_method)
{{ strtoupper($order->payment_method) }}
@endif
|
{{ $order->created_at->format('d/m/Y') }} |
| No orders found. | ||||||||||
| Total Summary ({{ $orders->count() }} orders): | ৳{{ number_format($totalAmount, 0) }} | ৳{{ number_format($totalPaid, 0) }} | ৳{{ number_format($totalUnpaid, 0) }} | |||||||