<?php
use Illuminate\Support\Facades\Auth;
?>
@if(Auth::user()->can('view-chiusura-servizio') || Auth::user()->can('edit-chiusura-servizio') || Auth::user()->can('delete-chiusura-servizio'))
<div class="dropdown">
    <button type="button" class="btn p-0 dropdown-toggle hide-arrow" data-bs-toggle="dropdown" aria-expanded="false">
        <i class="bx bx-dots-vertical-rounded fs-large"></i>
    </button>
    <div class="dropdown-menu">
        @if(Auth::user()->can('view-chiusura-servizio'))
        <a href="{{ route('chiusura-servizio.show', ['chiusura_servizio_id' => $entity->id]) }}" class="dropdown-item">
            <i class="bx bx-eye me-1"></i> Visualizza
        </a>
        @endif

        @if(Auth::user()->can('edit-chiusura-servizio'))
        <a href="#" class="dropdown-item editor_edit">
            <i class="bx bx-edit-alt me-1"></i> Modifica
        </a>
        @endif

        @if(Auth::user()->can('delete-chiusura-servizio'))
        <a href="#" class="dropdown-item editor_delete">
            <i class="bx bx-trash me-1"></i> Elimina
        </a>
        @endif
    </div>
</div>
@endif
