@extends('layouts.app') @section('title', 'Orders') @section('breadcrumb')
View and manage all sales orders
| Order # | Date | Customer | Cashier | Items | Total | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $order->order_number }} |
{{ $order->created_at->format('M d, Y') }}
{{ $order->created_at->format('h:i A') }}
|
@if($order->customer)
{{ $order->customer->name }}
@if($order->customer->phone)
{{ $order->customer->phone }}
@endif
@else
Walk-in Customer
@endif
|
{{ $order->user?->name ?? '-' }} | {{ $order->items_count ?? $order->items()->count() }} items | Rs. {{ number_format($order->total_amount, 2) }} | @php $statusClass = match($order->status) { 'completed' => 'status-completed', 'pending' => 'status-pending', 'cancelled' => 'status-cancelled', 'refunded' => 'status-refunded', default => 'status-pending' }; @endphp {{ ucfirst($order->status) }} | |
|
No orders found Create First Sale |
|||||||