{{-- Usage of one server limit the last hour against its hourly limit, "12 / 100" (#2957 slice 15, card #3102). Included by server/partials/list and server/partials/edit. Expects $usage (mails the last 60 minutes) and $rateLimit (rate_limit_h). As before: 0 is no limit (shown as ∞), -1 stops the domain (shown as 0), and the text is marked when the limit is reached (or, for -1, passed). --}} @php $nhOver = (($usage >= $rateLimit && $rateLimit != -1) || ($usage > ($rateLimit + 1) && $rateLimit == -1)) && $rateLimit != 0; $nhLimitText = $rateLimit == 0 ? '∞' : ($rateLimit == -1 ? '0' : $rateLimit); @endphp $nhOver]) title="{{ __('server.nh.usageLabel') }}">{{ $usage }} / {{ $nhLimitText }}@if ($nhOver) ({{ __('server.nh.overLimit') }})@endif