<div>
    @can('impersonate', $user)
        <button type="button"
                class="btn btn-warning waves-effect waves-light"
                wire:click="impersonate"
                onclick="return confirm('You are about to log in as this user. Continue?')">
            Impersonate
        </button>
    @endcan
</div>
