<template>
    <div class="container-fluid">
    <section class="content">
        <div class="header pb-2">
    
          <div class="header-body">
            <div class="row align-items-center py-4">
              <div class="col-lg-6 col-7">
                <nav
                  aria-label="breadcrumb"
                  class="d-none d-md-inline-block ml-md-4"
                >
                  <ol class="breadcrumb breadcrumb-links">
                    <li class="breadcrumb-item">
                      <a href="#"><i class="fas fa-home"></i></a>
                    </li>
                    <li class="breadcrumb-item">
                      <a href="#">Dashboards</a>
                    </li>
                    <li class="breadcrumb-item active" aria-current="page">
                      ລາຍງານ ສະຕ໋ອກສິນຄ້າ
                    </li>
                  </ol>
                </nav>
              </div>
              <div class="col-lg-6 col-5 text-right">

              </div>
            </div>
          </div>
        
      </div>
        <div class="row" v-if="isLoggedIn">

           <reportstore/>
    
        </div>
    </section>
   </div>
</template>

<script>

import reportstore from "../../components/ReportStoreComponent.vue";

export default {
    name: 'Store',

    data() {
        return {
          isLoggedIn: false,
          reportType:{
                type:'store'
            }
        };
    },
    components:{
      reportstore
    },
    mounted() {
        
    },

    methods: {
        
    },
    created(){
        this.$axios.get(`/api/users/checkauth`).then((response) => { if (!response.data.isLogin) { window.location.href = "/"; } })

        if(window.Laravel.isLoggedin){
           this.isLoggedIn = true
        }
    }
};
</script>

<style lang="scss" scoped>

</style>