@extends('layouts.app', [ 'pageTitle' => $title, ]) @section('content')
Daftar hutang pembelian yang belum lunas
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, ',', '.') }}
| Tanggal | Bahan | Supplier | Total | Dibayar | Sisa | Status | |
|---|---|---|---|---|---|---|---|
| {{ $purchase->purchase_date->format('d/m/Y') }} | {{ $purchase->material->name ?? '-' }} | {{ $purchase->supplierRelation->name ?? '-' }} | {{ $purchase->formatted_total }} | {{ $purchase->formatted_paid }} | {{ $purchase->formatted_remaining }} | @if($purchase->payment_status === 'partial') Sebagian @else Belum Bayar @endif | Bayar |
| Tidak ada hutang pembelian | |||||||