@extends('layouts.collector') @section('title', 'Tagihan') @section('content')

Daftar Tagihan

@forelse($invoices as $invoice) @empty @endforelse
Pelanggan Invoice Jatuh Tempo Total Status Aksi
{{ $invoice->customer->name ?? 'N/A' }}
{{ $invoice->customer->address ?? '' }}
{{ $invoice->invoice_number }} {{ $invoice->due_date->format('d M Y') }} Rp {{ number_format($invoice->total, 0, ',', '.') }} @if($invoice->due_date < now()) Jatuh Tempo @else Belum Bayar @endif Tagih

Tidak ada tagihan yang perlu ditagih

@if($invoices->hasPages())
{{ $invoices->links() }}
@endif
@endsection