{{-- resources/views/home.blade.php --}} @extends('layouts.app') @section('content')
{{ __('Welcome back, ') }} {{ Auth::user()->name }}!
@if (session('status'))Total Subscribers
{{ number_format($totalSubscribers) }}
Active Subscriptions
{{ number_format($activeSubscriptions) }}
Pending Invoices
৳{{ number_format($pendingInvoiceAmount, 2) }}
Total Wallet Balance
৳{{ number_format($totalWalletBalance, 2) }}
This Month's Revenue
+{{ number_format($revenueGrowth, 1) }}%৳{{ number_format($monthlyRevenue, 2) }}
Package Distribution
{{ $packageCount }} packagesRecent Activity
Last 7 days{{ $subscription->subscriber->name }}
{{ $subscription->package->name }}
{{ $subscription->created_at->diffForHumans() }}
No recent subscriptions
@endforelse{{ $payment->invoice->subscriber->name ?? 'N/A' }}
{{ $payment->invoice->invoice_number ?? 'N/A' }}
{{ $payment->payment_date->diffForHumans() }}
No recent payments
@endforelse| Invoice # | Subscriber | Amount | Status | Date |
|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->subscriber->name }} | ৳{{ number_format($invoice->total_payable, 2) }} | {{ str_replace('_', ' ', ucfirst($invoice->payment_status)) }} | {{ $invoice->created_at->format('d M Y') }} |
| No recent invoices | ||||