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

Selamat Datang, {{ $customer->name ?? 'Pelanggan' }}!

ID Pelanggan: {{ $customer->customer_id ?? 'N/A' }}

Status Koneksi

{{ ($customer->status ?? '') == 'active' ? 'Aktif' : 'Tidak Aktif' }}

Paket Aktif

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

{{ $customer->package->speed ?? '' }}

Tagihan Berikutnya

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

Jatuh tempo: {{ isset($nextInvoice) ? $nextInvoice->due_date->format('d M Y') : '-' }}

Tagihan

Pembayaran

Profil

Bantuan

Tagihan Terbaru

@forelse($recentInvoices ?? [] as $invoice)

{{ $invoice->invoice_number }}

{{ $invoice->created_at->format('d M Y') }}

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

{{ $invoice->status == 'paid' ? 'Lunas' : 'Belum Bayar' }}
@empty

Belum ada tagihan

@endforelse
@endsection