@extends('layouts.admin') @section('title', 'Dashboard') @section('page-title', 'Operations Dashboard') @section('content') @php $kpis = [ ['label' => 'Total Users', 'value' => number_format($stats['total_users'] ?? 0), 'tone' => 'red'], ['label' => 'Active 30 Days', 'value' => number_format($stats['active_users_30d'] ?? 0), 'tone' => 'green'], ['label' => 'Paid Users', 'value' => number_format($stats['paid_users'] ?? 0), 'tone' => 'red'], ['label' => 'Active Subs', 'value' => number_format($stats['active_subscriptions'] ?? 0), 'tone' => 'green'], ['label' => 'Syncs Today', 'value' => number_format($stats['syncs_today'] ?? 0), 'tone' => 'red'], ['label' => 'Storage Used', 'value' => number_format($stats['storage_gb'] ?? 0, 2) . ' GB', 'tone' => 'green'], ]; $maxPlan = max($planDistribution->max() ?? 1, 1); $maxSync = max($syncsByDay->max() ?? 1, 1); @endphp
{{ $kpi['label'] }}
{{ $kpi['value'] }}
Last 30 days of uploads and downloads recorded by the API.
{{ $count }}
{{ \Illuminate\Support\Carbon::parse($date)->format('d M') }}
Current user plan mix excluding admin accounts.
No plan data available.
@endforelse| User | Plan | Joined | Last Seen |
|---|---|---|---|
|
{{ $user->name }}
{{ $user->email }}
|
{{ ucfirst($user->currentPlan()) }} | {{ $user->created_at?->format('d M Y') }} | {{ $user->last_seen_at?->diffForHumans() ?? 'Never' }} |
| No users found. | |||
{{ $log->user->name ?? 'Unknown' }}
{{ $log->user->email ?? '' }}
{{ strtoupper($log->direction) }} • {{ $log->table_name }} • {{ $log->records_count }} records
{{ $log->created_at?->diffForHumans() }}