{{-- resources/views/employee/orders/index.blade.php --}} @extends('layouts.employee') @section('title', 'Orders Management') @section('page_title', 'Orders Management') @section('icon', 'fa-shopping-cart') @section('breadcrumb') @endsection @section('content')
Filter Orders
New Order
All Orders ({{ $orders->total() }})
@forelse($orders as $order) @empty @endforelse
Order # Customer Type Items Total Amount Payment Status Time Actions
#{{ $order->order_number }} @if($order->is_urgent) Urgent @endif
{{ $order->customer_name ?? 'Guest' }}
@if($order->table) Table: {{ $order->table->name }} @endif
{{ ucfirst($order->order_type) }} {{ $order->items_count }} items Rp {{ number_format($order->total_amount, 0, ',', '.') }} @if($order->payment) {{ ucfirst($order->payment->status) }} @else Pending @endif {{ ucfirst($order->status) }} {{ $order->created_at->format('H:i') }}
{{ $order->created_at->diffForHumans() }}
@if($order->status == 'completed' || $order->status == 'ready') @endif @if(!$order->is_urgent && $order->status == 'pending')
@csrf
@endif
No orders found

Try adjusting your filters

@if($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection @section('scripts') @endsection