@extends('layouts.admin') @section('title', 'Storage') @section('page-title', 'Storage Analytics') @section('content') @php $totalGb = ($stats['total_bytes'] ?? 0) / 1073741824; $maxBytes = max($users->max('storage_used_bytes') ?? 1, 1); @endphp

Total Storage

{{ number_format($totalGb, 2) }} GB

Users Consuming Space

{{ number_format($stats['total_users']) }}

@forelse($users as $user) @empty @endforelse
User Plan Usage Relative Share
{{ $user->name }}
{{ $user->email }}
{{ ucfirst($user->currentPlan()) }} {{ number_format(($user->storage_used_bytes ?? 0) / 1048576, 2) }} MB
{{ number_format((($user->storage_used_bytes ?? 0) / $maxBytes) * 100, 1) }}%
No storage consumption records found.
{{ $users->links() }}
@endsection