@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
Pantau semua pesanan customer secara real-time
Total Orders
{{ $totalOrders }}
Diterima
{{ $diterimaCount }}
Menunggu
{{ $menungguCount }}
Total Revenue
Rp {{ number_format($totalRevenue, 0, ',', '.') }}
| 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($order->status ?? '-') }} | {{ ucfirst(str_replace('_', ' ', $order->production_status ?? 'menunggu')) }} | {{ $order->created_at->format('d M Y') }} | |
Tidak Ada Data PesananBelum ada pesanan yang tercatat |
||||||||