    {%endif%}
      } else {
        sidebarOpen=false      
      }
      function setup(){
        return {
          init() {
            console.log("Alpine init")
            this.getTenants()
            this.getFeatureFlags()

            // Check if tenant is already in local storage
            if (localStorage.getItem("selectedTenant")) {
              console.log("Found selected tenant in local storage")
              this.selectedTenant = JSON.parse(localStorage.getItem("selectedTenant"));
     