@extends('layouts.app') @section('title', 'Admin Dashboard') @push('styles') @endpush @section('content')
Welcome back, {{ auth()->user()->name }}!
Total Customers
{{ $stats['total_customers'] }}
{{ $stats['active_customers'] }} active
Total Revenue
Rp {{ number_format($stats['total_revenue'], 0, ',', '.') }}
Paid invoices
Pending Revenue
Rp {{ number_format($stats['pending_revenue'], 0, ',', '.') }}
{{ $stats['unpaid_invoices'] }} unpaid
Total Packages
{{ $stats['total_packages'] }}
Active packages
{{ $invoice->customer->name }}
{{ $invoice->invoice_number }}
Rp {{ number_format($invoice->amount, 0, ',', '.') }}
{{ ucfirst($invoice->status) }}No invoices yet
@endforelse{{ $customer->name }}
{{ $customer->phone }}
{{ $customer->package->name ?? 'No Package' }}
{{ ucfirst($customer->status) }}No customers yet
@endforelse