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

  export default {
    metaInfo() {
        let vm = this;
        return {
            title: Constants.site.title,
            titleTemplate: '%s | ' + vm.$router.currentRoute.name
        }
    },
    components: {
      PageTitle,
      Breadcrumb,
      AdminRoleForm
    },
    data() {
      let vm = this;
      return {
        heading: 'Edit Admin Role',
        icon: 'fa fa-edit',
        menu_item_list: [
          {
            title: 'Dashboard',
            active: false,
            path: '/'
          },
          {
            title: 'Admin Role List',
            active: false,
            path: '/admin-role/list'
          },
          {
            title: 'Edit Admin Role',
            active: true,
            path: '/admin-role/edit/' + vm.$route.params.hash_id
          },
        ]
      }
    }
  }
</script>
