#{{ $batch->batchCode }}
✓ LUNAS
Dibayar: {{ $batch->settledAt?->format('d M Y H:i') ?? '-' }}
@if($batch->items->count() > 0)
@php
$totalSold = $batch->items->sum('soldQty');
$totalReturned = $batch->items->sum('returnedQty');
@endphp
{{ $totalSold }} terjual
@if($totalReturned > 0)
•
{{ $totalReturned }} diretur
@endif
@foreach($batch->items->take(2) as $item)
{{ $item->product->name ?? '-' }}
@endforeach
@if($batch->items->count() > 2)
+{{ $batch->items->count() - 2 }} lainnya
@endif
@endif
Pendapatan
Rp {{ number_format($batch->payableAmount ?? 0, 0, ',', '.') }}