@extends('layouts.dashboard')
@section('title', 'Admin Dashboard')
@section('page-title', 'Admin Dashboard')
@section('content')
Users
{{ $stats['users'] }}
Resellers
{{ $stats['resellers'] }}
Total Blogs
{{ $stats['blogs'] }}
Categories
{{ $stats['categories'] }}
Packages
{{ $stats['packages'] }}
Unpaid Invoices
{{ $stats['invoices_unpaid'] }}
Paid Invoices
{{ $stats['invoices_paid'] }}
Total Revenue
${{ number_format($stats['revenue'], 2) }}
| # | User | Amount | Status |
@forelse($recent_invoices as $inv)
| {{ $inv->invoice_number }} |
{{ $inv->user->name ?? '—' }} |
${{ number_format($inv->amount, 2) }} |
{{ ucfirst($inv->status) }} |
@empty
| No invoices yet |
@endforelse
| Title | Author | Date |
@forelse($recent_blogs as $b)
| {{ \Illuminate\Support\Str::limit($b->title, 50) }} |
{{ $b->author->name ?? '—' }} |
{{ $b->created_at->diffForHumans() }} |
@empty
| No blogs yet |
@endforelse
| Name | Username | Email | Role | Joined |
@foreach($recent_users as $u)
| {{ $u->name }} |
@{{ $u->username }} |
{{ $u->email }} |
{{ $u->role }} |
{{ $u->created_at->diffForHumans() }} |
@endforeach
@endsection