| Order # | Customer | Customer Type | Items | Payment Method | Payment Status | Total | Order Date |
|---|---|---|---|---|---|---|---|
| {{ $order->order_number }} | {{ $order->contact?->first_name }} {{ $order->contact?->last_name ?: $order->guest_name }} | {{ ucfirst($order->customer_type ?? 'Guest') }} | {{ $order->items->count() }} | {{ optional($order->payments->last())->payment_method ?? '-' }} | @php $badge = match($order->payment_status){ 'paid' => 'bg-success', 'pending' => 'bg-warning text-dark', 'failed' => 'bg-danger', default => 'bg-secondary', }; @endphp {{ ucfirst(str_replace('_',' ',$order->payment_status)) }} | {{ format_currency($order->total_amount) }} | {{ $order->created_at->format('d M Y') }} {{ $order->created_at->format('h:i A') }} |
| No POS Orders Found. | |||||||
| Product | Type | Qty Sold | Sales | Avg Price |
|---|---|---|---|---|
| {{ $product->item_name_snapshot }} | {{ class_basename($product->sellable_type_snapshot) }} | {{ $product->quantity_sold }} | {{ format_currency($product->sales_total) }} | {{ format_currency( $product->sales_total / max($product->quantity_sold,1) ) }} |
| No paid POS sales yet. | ||||