@if(isset($success))
<span class="px-3 py-1 alert alert-success ms-2">
    {{ $success }}
</span>
@endif
@if(isset($error))
<span class="px-3 py-1 alert alert-danger ms-2">
    {{ $error }}
</span>
@endif
@if(isset($warning))
<span class="px-3 py-1 alert alert-warning ms-2">
    {{ $warning }}
</span>
@endif
@if(isset($info))
<span class="px-3 py-1 alert alert-info ms-2">
    {{ $info }}
</span>
@endif
@if(isset($dark))
<span class="px-3 py-1 alert alert-dark ms-2">
    {{ $dark }}
</span>
@endif

@if(isset($entity))
<span class="badge" style="background-color: {{ $entity->categoria_contabile?->colore }};">{{ $entity->categoria_contabile?->nome }}</span>

    @if($entity->tipo_movimento == \App\Models\PrimaNota::NO_CONTABILE)
        <span class="badge ms-2 badge-info text-bg-info">NC</span>
    @endif
@endif
