{{-- Statistics --}}
@foreach($stats as $stat)
{{ $stat['label'] }}

{{ $stat['value'] }}

@endforeach
{{-- Quick Actions --}}
Quick Actions
{{-- Add New Order --}} @can('pos-order.create') Add New Order @endcan {{-- Orders --}} @can('pos-order.view') Orders @endcan {{-- Refunds --}} @can('pos-refund.view') Refunds @endcan {{-- Invoices --}} @can('pos-invoice.view') Invoices @endcan {{-- Packages --}} @can('pos-package.view') Packages @endcan {{-- Settings --}} @can('pos-settings.manage') Settings @endcan
{{-- Recent Orders --}}
Recent Orders
@forelse($recentOrders as $order) @empty @endforelse
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.
{{-- Top Selling Products --}}
Top Selling Products
@forelse($topProducts as $product) @empty @endforelse
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.
@push('scripts') @endpush