public function bulkDelete(Request $request)
    {
        // check if user has permissions to access this link
        if(!User::hasAccess('Tags', 'delete')) {
            return $this->noPermission();
        }

        // if there are no item selected
        if (count($request->all()) <= 0) {
            return $this->response('Please select items to be deleted', 500);
        }
        // loop throw the item array (ids) and delete them
        foreach ($request->all() as $id) {
            $tagDeleteRes = $this->deleteTag($id);
            if(gettype($tagDeleteRes) == "boolean") {
                if(!$tagDeleteRes) {
                    return $this->response('Tag could not be deleted.', 500);
                }
            }else{
                return $tagDeleteRes;
            }
        }
        return $this->response('Selected tags are successfully deleted');
    }