<template>
  <base-material-card :icon="resource.icon" :title="title">
    <va-list
      :filters="filters"
      <%_ if (include) { _%>
      :include="<%- include %>"
      <%_ } _%>
    >
      <va-data-table :fields="fields">
      </va-data-table>
    </va-list>
  </base-material-card>
</template>

<script>
export default {
  props: ["resource", "title"],
  data() {
    return {
      filters: <%- filters %>,
      fields: <%- fields %>,
    };
  },
};
</script>
