@extends('layouts.app') @section('title', 'Admin Dashboard') @push('styles') @endpush @section('content')
@include('admin.partials.sidebar')
@include('admin.partials.topbar')

Dashboard

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

Revenue Trend (Last 6 Months)

New Customers (Last 6 Months)

Package Distribution

Invoice Status

Recent Invoices

View All
@forelse($recent_invoices as $invoice)

{{ $invoice->customer->name }}

{{ $invoice->invoice_number }}

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

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

No invoices yet

@endforelse

Recent Customers

View All
@forelse($recent_customers as $customer)
{{ strtoupper(substr($customer->name, 0, 1)) }}

{{ $customer->name }}

{{ $customer->phone }}

{{ $customer->package->name ?? 'No Package' }}

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

No customers yet

@endforelse
@push('scripts') @endpush @endsection