@extends('layouts.admin') @section('title', 'Admin Dashboard') @section('breadcrumb') @endsection @section('content')

{{ $stats['orders'] }}

Total Orders

More info

{{ \App\Models\SiteSetting::getValue('currency_symbol', 'TK') }} {{ number_format($stats['revenue'], 2) }}

Total Revenue

More info

{{ $stats['users'] }}

User Registrations

More info

{{ $stats['posts'] }}

Blog Posts

More info

Pending / Overdue Installments

@forelse($pendingInstallments as $installment) @empty @endforelse
User Plan Amount Due Date Status
{{ $installment->subscription->user->name ?? 'N/A' }} {{ $installment->subscription->membershipPlan->name ?? 'N/A' }} {{ \App\Models\SiteSetting::getValue('currency_symbol', 'TK') }} {{ number_format($installment->amount, 2) }} {{ $installment->due_date->format('d M Y') }} @if($installment->due_date->isPast()) Overdue @endif {{ ucfirst($installment->status) }}
No pending installments.

Recent Paid Installments

@forelse($paidInstallments as $installment) @empty @endforelse
User Plan Amount Paid Date Status
{{ $installment->subscription->user->name ?? 'N/A' }} {{ $installment->subscription->membershipPlan->name ?? 'N/A' }} {{ \App\Models\SiteSetting::getValue('currency_symbol', 'TK') }} {{ number_format($installment->amount, 2) }} {{ $installment->paid_at ? $installment->paid_at->format('d M Y') : '-' }} Paid
No paid installments yet.
@if(isset($lowStockProducts) && $lowStockProducts->count() > 0)

Low Stock Alert

@foreach($lowStockProducts as $product) @endforeach
Product Name Current Stock Price Action
{{ $product->name }} {{ $product->stock }} {{ \App\Models\SiteSetting::getValue('currency_symbol', 'TK') }} {{ number_format($product->price, 2) }} Restock
@endif

Monthly Overview

@endsection @push('scripts') @endpush