@extends('layouts.app', [ 'pageTitle' => $title, ]) @section('content')

{{ $title }}

Daftar hutang pembelian yang belum lunas

@include('partials.alerts')

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, ',', '.') }}

@foreach($suppliers as $supplier) @endforeach
Reset
{{-- Print by Month Button --}} {{-- Print All Button --}} Print Semua
@forelse($purchases as $purchase) @empty @endforelse
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
@if($purchases->hasPages())
{{ $purchases->links() }}
@endif
{{-- Month Selection Dialog --}} @endsection @push('scripts') @endpush