@extends('layouts.supervisor') @section('title', 'Monitoring Orders - Supervisor') @section('content') @php $totalOrders = $orders->total(); $diterimaCount = $orders->filter(fn($o) => $o->order_status === 'diterima')->count(); $menungguCount = $orders->filter(fn($o) => $o->order_status === 'menunggu')->count(); $totalRevenue = $orders->sum('total_price'); @endphp

Monitoring Pesanan

Pantau semua pesanan customer secara real-time

Total Orders

{{ $totalOrders }}

Diterima

{{ $diterimaCount }}

Menunggu

{{ $menungguCount }}

Total Revenue

Rp {{ number_format($totalRevenue, 0, ',', '.') }}

Data Pesanan

{{ $totalOrders }} orders
@forelse($orders as $order) @empty @endforelse
Order ID Customer Produk Quantity Total Order Status Payment Production Tanggal
#{{ $order->id }}

{{ $order->customer_name ?? $order->user->name ?? '-' }}

{{ Str::limit($order->customer_email ?? $order->user->email ?? '-', 25) }}

{{ Str::limit($order->product->product_title ?? '-', 30) }}
{{ number_format($order->quantity, 0, ',', '.') }} unit Rp {{ number_format($order->total_price, 0, ',', '.') }} {{ ucfirst(str_replace('_', ' ', $order->order_status ?? '-')) }} {{ ucfirst($order->status ?? '-') }} {{ ucfirst(str_replace('_', ' ', $order->production_status ?? 'menunggu')) }} {{ $order->created_at->format('d M Y') }}

Tidak Ada Data Pesanan

Belum ada pesanan yang tercatat

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