<template>
  <va-show-layout>
    <va-show :item="item">
      <v-row justify="center">
        <v-col sm="6">
          <base-material-card>
            <template v-slot:heading>
              <div class="display-2">
                {{ title }}
              </div>
            </template>
            <v-card-text>
              <%_ for (field of fields) { _%>
              <va-field source="<%- field.name %>" <%_ if (field.type !== 'text') { _%>type="<%- field.type %>"<%_ } %> <%- field.attrs ? field.attrs : '' %>></va-field>
              <%_ } _%>
            </v-card-text>
          </base-material-card>
        </v-col>
      </v-row>
    </va-show>
  </va-show-layout>
</template>

<script>
export default {
  props: ["title", "item"],
};
</script>
