@forelse($report as $index => $item) @empty @endforelse @if($report->count() > 0) @endif
# Product Name Qty Cost Subtotal Subtotal
{{ $index + 1 }} {{ $item['product_name'] }} {{ $item['qty'] }} Rp {{ number_format($item['cost_subtotal'], 0, ',', '.') }} Rp {{ number_format($item['subtotal'], 0, ',', '.') }}
No data found
Total {{ $totalQty }} Rp {{ number_format($totalCostSubtotal, 0, ',', '.') }} Rp {{ number_format($totalSubtotal, 0, ',', '.') }}