/home/kueuepay/public_html/resources/views/admin/partials/auth-control.blade.php
<script>
    $(document).on("click",".logout-btn",function(event) {
        event.preventDefault();
        var actionRoute =  "{{ setRoute('admin.logout') }}";
        var target      = "auth()->user()->id";
        var message     = `{{ __("Are You Sure To") }} <strong>{{ __("Logout") }}</strong>?`;
        openDeleteModal(actionRoute,target,message,"Logout","POST");
    });
</script>
Error Handling

Error Handling

In case of an error, the API will return an error response containing a specific error code 400, 403 Failed and a user-friendly message. Refer to our API documentation for a comprehensive list of error codes and their descriptions.