@extends('restaurant.layouts.panel') @section('title', 'Orders') @section('content')
@if (session('error'))
{{ session('error') }}
@endif
@forelse ($orders as $order) @empty @endforelse
Order # Customer Items Total Status Placed Actions
{{ $order->order_number }} {{ $order->customer->name ?? '-' }} {{ $order->orderItems->count() }} ₹{{ number_format($order->total_amount, 2) }} {{ ucfirst($order->status) }} {{ $order->created_at->format('d M, h:i A') }} View
No orders found.
{{ $orders->links() }}
@endsection