owing :class before !isSidebarOpen to hide sidebar-->
      <aside x-show="hasSidebar"
      :class="{'-translate-x-full lg:translate-x-0 lg:w-20 {%if not layout["sidebar"]%}hidden{%endif%}': !isSidebarOpen}"
      class="fixed inset-y-0 z-10 flex flex-col flex-shrink-0 w-56 max-h-screen overflow-hidden transition-all transform border-r border-base-200 shadow-lg lg:z-auto lg:static lg:shadow-none -translate-x-full lg:translate-x-0 lg:w-20 bg-base-200 border-r border-base-300"
      x-transition:enter="trans