Laporan Pembelian

Rekap invoice supplier, status pembayaran, dan total pembelian.

{{-- Filter --}}
{{-- Summary Cards --}}

Total Pembelian

Rp {{ number_format($summary['total_amount'], 0, ',', '.') }}

{{ number_format($summary['total_invoices']) }} invoice

Lunas

Rp {{ number_format($summary['paid'], 0, ',', '.') }}

Belum Bayar

Rp {{ number_format($summary['unpaid'], 0, ',', '.') }}

Jml Invoice

{{ number_format($summary['total_invoices']) }}

{{-- Table --}}

Daftar Invoice Supplier

@forelse($purchases as $p) @php $colors = ['paid'=>'bg-green-100 text-green-700','unpaid'=>'bg-red-100 text-red-700','partial'=>'bg-amber-100 text-amber-700']; $color = $colors[$p->status] ?? 'bg-gray-100 text-gray-700'; @endphp @empty @endforelse
No. Invoice Tgl Invoice Jatuh Tempo Total Status
{{ $p->invoice_number }} {{ $p->invoice_date?->format('d M Y') }} {{ $p->due_date?->format('d M Y') ?? '-' }} Rp {{ number_format($p->total_amount, 0, ',', '.') }} {{ ucfirst($p->status) }}

Tidak ada data pembelian

{{ $purchases->links() }}