@extends('layouts.app') @section('title', 'Customer Details') @section('content')
@include('admin.partials.sidebar')
@include('admin.partials.topbar')

{{ $customer->name }}

{{ $customer->username ?? 'No username' }}

Edit Customer

Customer Information

Full Name

{{ $customer->name }}

Username

{{ $customer->username ?? '-' }}

Phone

{{ $customer->phone ?? '-' }}

Email

{{ $customer->email ?? '-' }}

Address

{{ $customer->address ?? '-' }}

Status

{{ ucfirst($customer->status) }}

Join Date

{{ $customer->join_date ? $customer->join_date->format('d M Y') : '-' }}

@if($customer->package)

Current Package

{{ $customer->package->name }}

{{ $customer->package->speed }} Mbps

Rp {{ number_format($customer->package->price, 0, ',', '.') }}

per month

@endif

Recent Invoices

View All
@forelse($customer->invoices()->latest()->limit(5)->get() as $invoice)

{{ $invoice->invoice_number }}

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

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

{{ ucfirst($invoice->status) }}
@empty

No invoices yet

@endforelse

Statistics

Total Invoices
{{ $stats['total_invoices'] }}
Paid
{{ $stats['paid_invoices'] }}
Unpaid
{{ $stats['unpaid_invoices'] }}

Financial Summary

Total Paid

Rp {{ number_format($stats['total_paid'], 0, ',', '.') }}

Total Unpaid

Rp {{ number_format($stats['total_unpaid'], 0, ',', '.') }}

Actions

Edit Customer View Invoices
@csrf @method('DELETE')
@endsection