@foreach ($usageLimits as $limit)
@php
$allowed = $limit['allowed'] ?? null;
$percent = $limit['percent'] ?? ($allowed ? min(100, round(($limit['used'] / $allowed) * 100)) : 0);
$allowedDisplay = $limit['allowed_display'] ?? ($allowed ? number_format($allowed) : 'Unlimited');
@endphp
{{ number_format($limit['used']) }} of {{ $allowedDisplay }} used
{{ $limit['note'] }}
@endforeach