<script setup lang="ts">
import { ref } from 'vue';
// common components
import BaseBreadcrumb from '@/components/shared/BaseBreadcrumb.vue';

/*import tabler icons*/
import { UserCircleIcon,BellIcon,ArticleIcon,LockIcon } from 'vue-tabler-icons';
import InsuranceTab from "~/components/master/guarantor/InsuranceTab.vue";
import CompanyTab from "~/components/master/guarantor/CompanyTab.vue";

/*tab*/
const tab = ref(null);

// template breadcrumb
const page = ref({ title: 'Data Penjamin' });
const breadcrumbs = ref([
  {
    text: 'Dashboard',
    disabled: false,
    href: '#'
  },
  {
    text: 'Data Penjamin',
    disabled: true,
    href: '#'
  }
]);
</script>

<template>
  <BaseBreadcrumb :title="page.title" :breadcrumbs="breadcrumbs"></BaseBreadcrumb>
  <v-row class="justify-center">
    <!--Account Settings tabs-->
    <v-col cols="12" md="12">
      <v-card elevation="10" class=" " rounded="md">
        <v-tabs v-model="tab" bg-color="transparent"  height="70" color="primary">
          <v-tab value="insurance" class="text-medium-emphasis" ><UserCircleIcon class="mr-2" size="20"/> Ansuransi</v-tab>
          <v-tab value="company"  class="text-medium-emphasis"><BellIcon class="mr-2" size="20"/>Perusahaan</v-tab>
        </v-tabs>
        <v-divider></v-divider>
        <v-card-text class="pa-sm-6 pa-3 pb-sm-6 pb-6">
          <v-window v-model="tab">
            <v-window-item value="insurance">
              <InsuranceTab/>
            </v-window-item>
            <v-window-item value="company">
              <CompanyTab/>
            </v-window-item>

          </v-window>
        </v-card-text>
      </v-card>
    </v-col>
  </v-row>
</template>
