<template>
  <client-only>
    <div class="c-app">
      <TheSidebar/>
      <CWrapper>
        <TheHeader/>
        <div class="c-body">
          <main class="c-main">
            <CContainer fluid class="pt-5">
              <transition name="fade" mode="out-in">
                <nuxt :key="$route.path"/>
              </transition>
            </CContainer>
          </main>
        </div>
        <TheFooter/>
      </CWrapper>
    </div>
  </client-only>
</template>

<script>
export default {
  data() {
    return {
      subHeaderContent: null
    }
  },
  head() {
    return {
      htmlAttrs: {
        lang: 'fa',
        dir: 'rtl'
      },
      title: 'اُریس اوکسین | پنل مدیریت'
    }
  },
  middleware: ['auth-admin']
}
</script>

<style lang="scss">
@import '../assets/admin/scss/style.scss';
</style>

<style scoped>
.fade-enter-active,
.fade-leave-active{
  transition: opacity 0.3s;
}

.fade-enter,
.fade-leave-to{
  opacity: 0;
}
</style>
