@php
    $status = $status ?? null;
    $status = \App\Models\Endpoint::getStati()[$status];
@endphp

<span class="badge {{ $status['class'] }}">
    <i class="bx {{ $status['icon'] }}"></i>
    {{ $status['label'] }}
</span>