@if($shopLogo ?? false) {{ $shopName }} @endif

{{ $shopName }}

@if($shopAddress)

{{ $shopAddress }}

@endif

LAPORAN HUTANG PEMBELIAN

@if(isset($month)) Periode: {{ \Carbon\Carbon::createFromFormat('Y-m', $month)->translatedFormat('F Y') }} @else Semua Hutang (s/d {{ now()->format('d M Y') }}) @endif
Total Pembelian
{{ $summary['total_purchases'] }}
Total Tagihan
Rp {{ number_format($summary['total_amount'], 0, ',', '.') }}
Sudah Dibayar
Rp {{ number_format($summary['total_paid'], 0, ',', '.') }}
Total Hutang
Rp {{ number_format($summary['total_debt'], 0, ',', '.') }}
@forelse($purchases as $index => $purchase) @empty @endforelse @if($purchases->count() > 0) @endif
No Tanggal Bahan Supplier Total Dibayar Sisa Status
{{ $index + 1 }} {{ $purchase->purchase_date->format('d/m/Y') }} {{ $purchase->material->name ?? '-' }} {{ $purchase->supplierRelation->name ?? '-' }} Rp {{ number_format($purchase->total_price, 0, ',', '.') }} {{ $purchase->paid_amount > 0 ? 'Rp ' . number_format($purchase->paid_amount, 0, ',', '.') : '-' }} Rp {{ number_format($purchase->remaining, 0, ',', '.') }} @if($purchase->payment_status === 'partial') Sebagian @else Belum Bayar @endif
Tidak ada hutang pembelian
TOTAL HUTANG Rp {{ number_format($summary['total_debt'], 0, ',', '.') }}