@extends('layouts.supervisor') @section('title', 'Monitoring Sales - Supervisor') @section('content') @php $totalSales = $sales->total(); $selesaiCount = $sales->filter(fn($s) => $s->status === 'selesai')->count(); $dibatalkanCount = $sales->filter(fn($s) => $s->status === 'dibatalkan')->count(); $totalRevenue = $sales->sum('total_price'); @endphp
Pantau semua penjualan yang sudah selesai
Total Penjualan
{{ $totalSales }}
Selesai
{{ $selesaiCount }}
Dibatalkan
{{ $dibatalkanCount }}
Total Revenue
Rp {{ number_format($totalRevenue, 0, ',', '.') }}
| Tanggal | Order ID | Produk | Customer | Quantity | Harga Satuan | Total | Status | Payment |
|---|---|---|---|---|---|---|---|---|
|
{{ $sale->sale_date ? $sale->sale_date->format('d M Y') : $sale->created_at->format('d M Y') }}
{{ ($sale->sale_date ?? $sale->created_at)->diffForHumans() }}
|
#{{ $sale->order_id ?? '-' }} |
{{ Str::limit($sale->product->product_title ?? '-', 30) }}
|
{{ Str::limit($sale->user->name ?? $sale->order->customer_name ?? '-', 20) }}
|
{{ number_format($sale->quantity, 0, ',', '.') }} | Rp {{ number_format($sale->unit_price, 0, ',', '.') }} | Rp {{ number_format($sale->total_price, 0, ',', '.') }} | {{ ucfirst($sale->status ?? '-') }} | {{ ucfirst($sale->payment_method ?? '-') }} |
Tidak Ada Data PenjualanBelum ada penjualan yang tercatat |
||||||||