resources/js/components/DetailField.vue
<template>
<PanelItem :index="index" :field="field">
<template #value>
<excerpt :content="field.value" :should-show="field.shouldShow" />
</template>
</PanelItem>
</template>
<script>
export default {
props: ['index', 'resource', 'resourceName', 'resourceId', 'field'],
}
</script>