<div class="demo-inline-spacing justify-content-around ">
    <button type="button" onclick="confirm(`{{trans('general.delete_record_confirmation')}}`) ? document.getElementById('delete-user-permission-form-btn-{{ $id }}').click() : false;" class="btn btn-sm btn-danger action-row" title="{{trans('general.delete')}}" style="margin: 0px;" id="close_{{ $id }}">
        <i class="far fa-trash-alt "></i>
    </button>

    <!-- close account btn -->
</div>
<form role="form" id="delete-user-permission-{{ $id }}" onsubmit="deleteUserPermission(this); return false;" action="{{ route('admin.users.permissions.delete', $id) }}" method="POST">
    @csrf
    <input type="hidden" name="user_permission_id" value="{{ $id }}">
    <button type="submit" id="delete-user-permission-form-btn-{{ $id }}" style="display: none;"></button>
</form>