@forelse($sales as $sale) @empty @endforelse
# Invoice Date Customer Price Type Status Total Cost Total Revenue
{{ $loop->iteration }} {{ $sale->invoice_no }} {{ $sale->created_at->format('d/m/Y H:i') }} {{ $sale->customer?->name ?? 'Walk-in Customer' }} {{ $sale->priceListType?->name ?? '-' }}
{{ $sale->status }}
Rp {{ number_format($sale->total_cost, 0, ',', '.') }} Rp {{ number_format($sale->total_price, 0, ',', '.') }}
No data found
Total Rp {{ number_format($totalCost, 0, ',', '.') }} Rp {{ number_format($totalRevenue, 0, ',', '.') }}
{{ $sales->links('vendor.pagination.tailwind') }}