<template>
  <div>
    <page-title
      :heading="heading" 
      :icon="icon"
      :add="true"
    ></page-title>
    <breadcrumb  
      :menu_item_list="menu_item_list"
    ></breadcrumb>
    <contract-form
      :mode="'create'"
    ></contract-form>
  </div>
</template>
<script>
  import PageTitle from "../../components/titles/PageTitle";
  import Breadcrumb from "../../layouts/parts/Breadcrumb";
  import ContractForm from "./Form";

  export default {
    metaInfo() {
        let vm = this;
        return {
            title: Constants.site.title,
            titleTemplate: '%s | ' + vm.$router.currentRoute.name
        }
    },
    components: {
      PageTitle,
      Breadcrumb,
      ContractForm
    },
    data() {
      return {
        heading: 'Create Contract',
        icon: 'fa fa-plus',
        menu_item_list: [
          {
            title: 'Dashboard',
            active: false,
            path: '/'
          },
          {
            title: 'Contract List',
            active: false,
            path: '/contract/list'
          },
          {
            title: 'Create Contract',
            active: true,
            path: '/contract/create'
          },
        ],
      }
    }
  }
</script>
