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

Selamat Datang, {{ $collector->name ?? 'Collector' }}!

Area: {{ $collector->area ?? 'Semua Area' }}

Target Hari Ini

{{ $todayTarget ?? 0 }}

Terkumpul Hari Ini

Rp {{ number_format($todayCollected ?? 0, 0, ',', '.') }}

Komisi Bulan Ini

Rp {{ number_format($monthCommission ?? 0, 0, ',', '.') }}

Belum Bayar

{{ $unpaidCount ?? 0 }}

Tagihan

Terima Bayar

Riwayat

Profil

Tagihan Belum Bayar

Lihat Semua
@forelse($pendingInvoices ?? [] as $invoice)

{{ $invoice->customer->name ?? 'N/A' }}

{{ $invoice->invoice_number }} • {{ $invoice->customer->address ?? '' }}

Rp {{ number_format($invoice->total, 0, ',', '.') }}

{{ $invoice->isOverdue() ? 'Jatuh Tempo' : 'Belum Bayar' }}
Bayar
@empty

Semua tagihan sudah terbayar!

@endforelse

Penagihan Hari Ini

@forelse($todayCollections ?? [] as $collection)

{{ $collection->invoice->customer->name ?? 'N/A' }}

{{ $collection->created_at->format('H:i') }}

Rp {{ number_format($collection->amount, 0, ',', '.') }}

@empty

Belum ada penagihan hari ini

@endforelse
@endsection