{{ $totalPelanggan }}

Total Pelanggan

{{ $activePelanggan }} aktif

{{ \App\Models\Invoice::belumBayar()->count() }}

Invoice Belum Bayar

Perlu tindaklanjut

{{ \App\Models\Invoice::whereDate('tanggal_bayar', today())->count() }}

Pembayaran Hari Ini

Rp {{ number_format(\App\Models\Invoice::whereDate('tanggal_bayar', today())->sum('total_amount'), 0, ',', '.') }}

{{ \App\Models\Invoice::konfirmasi()->count() }}

Konfirmasi Pending

Menunggu verifikasi
Quick Actions - Billing Management
Invoice Belum Bayar

Kelola tagihan outstanding

Lihat Semua
Konfirmasi Pembayaran

Verifikasi pembayaran customer

Proses ({{ \App\Models\Invoice::konfirmasi()->count() }})
Data Pelanggan

Kelola data pelanggan

Kelola Data
Laporan Pembayaran

Report dan statistik

Lihat Laporan
Statistik Billing
Pendapatan Bulan Ini {{ \App\Models\Invoice::whereMonth('tanggal_bayar', now()->month)->whereYear('tanggal_bayar', now()->year)->where('status', 'paid')->count() }}
Rp {{ number_format(\App\Models\Invoice::whereMonth('tanggal_bayar', now()->month)->whereYear('tanggal_bayar', now()->year)->where('status', 'paid')->sum('total_amount'), 0, ',', '.') }}
Tingkat Pembayaran @php $totalInvoices = \App\Models\Invoice::whereMonth('tanggal_invoice', now()->month)->count(); $paidInvoices = \App\Models\Invoice::whereMonth('tanggal_bayar', now()->month)->where('status', 'paid')->count(); $paymentRate = $totalInvoices > 0 ? round(($paidInvoices / $totalInvoices) * 100) : 0; @endphp {{ $paymentRate }}%
Pelanggan Aktif @php $activeRate = $totalPelanggan > 0 ? round(($activePelanggan / $totalPelanggan) * 100) : 0; @endphp {{ $activeRate }}%
Invoice Overdue - Perlu Tindakan
@php $overdueInvoices = \App\Models\Invoice::with('pelanggan') ->where('status', 'overdue') ->latest('tanggal_jatuh_tempo') ->limit(5) ->get(); @endphp @if($overdueInvoices->isEmpty())
Tidak ada invoice overdue. Semua tagihan terkendali!
@else
@foreach($overdueInvoices as $invoice) @endforeach
Invoice Pelanggan Jatuh Tempo Total Aksi
{{ $invoice->nomor_invoice }}
{{ $invoice->pelanggan->nama_lengkap }}
{{ $invoice->pelanggan->nomer_layanan }}
{{ $invoice->tanggal_jatuh_tempo->format('d/m/Y') }}
{{ $invoice->tanggal_jatuh_tempo->diffForHumans() }}
Rp {{ number_format($invoice->total_amount, 0, ',', '.') }}
@endif
Pembayaran Terbaru
@php $recentPayments = \App\Models\Invoice::with('pelanggan') ->where('status', 'paid') ->whereNotNull('tanggal_bayar') ->latest('tanggal_bayar') ->limit(5) ->get(); @endphp @if($recentPayments->isEmpty())
Belum ada pembayaran hari ini
@else @foreach($recentPayments as $payment)
{{ $payment->pelanggan->nama_lengkap }}
{{ $payment->nomor_invoice }}
Rp {{ number_format($payment->total_amount, 0, ',', '.') }}
{{ $payment->tanggal_bayar->format('H:i') }}
{{ $payment->tanggal_bayar->format('d/m') }}
@endforeach @endif