Tenant SMS Balance

Credit held by each tenant, what they have bought, and what they have used.

Back to SMS Dashboard
@if (session('success'))
{{ session('success') }}
@endif
Total Balance
{{ number_format($stats['total_balance']) }}
Total Purchased
{{ number_format($stats['total_purchased']) }}
Total Used
{{ number_format($stats['total_used']) }}
Depleted Tenants
{{ number_format($stats['depleted']) }}
@forelse($tenants as $tenant) @php($balance = $tenant->smsBalance) @empty @endforelse
Tenant Current Balance Total Purchased Total Used Last Purchase Last Activity Actions
{{ $tenant->name }}
{{ $tenant->customer?->name ?? $tenant->slug }}
{{ number_format($balance?->balance ?? 0) }} {{ number_format($balance?->total_purchased ?? 0) }} {{ number_format((int) ($usage[$tenant->id] ?? 0)) }} @if(!empty($lastPurchases[$tenant->id])) {{ \Illuminate\Support\Carbon::parse($lastPurchases[$tenant->id])->format('M d, Y') }} @else Never @endif @if(!empty($lastActivity[$tenant->id])) {{ \Illuminate\Support\Carbon::parse($lastActivity[$tenant->id])->diffForHumans() }} @else Never @endif Ledger
No tenants found.
@if($tenants->hasPages())
{{ $tenants->links() }}
@endif