<template>
  <div>
    <q-tabs
      inline-label
      class="bg-secondary text-white shadow-2">
      <q-route-tab to="/orders/pending" icon="av_timer" :label="$t('pending')" />
      <q-route-tab to="/orders/confirmed" icon="check" :label="$t('confirmed')" />
    </q-tabs>
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: 'Orders',
  mounted () {
    if (this.$route.path === '/orders') {
      this.$router.replace('/orders/pending')
    }
  }
}
</script>
