Show.vue 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <script setup>
  2. import { Head } from '@inertiajs/inertia-vue3'
  3. import { topUpTable } from './tableHeader'
  4. import AppPagination from '@/components/AppPagination.vue'
  5. import DashboardLayout from '@/layouts/DashboardLayout.vue'
  6. defineProps({
  7. member: Object,
  8. topUp: Object,
  9. })
  10. </script>
  11. <template>
  12. <Head title="Detail Top Up" />
  13. <DashboardLayout>
  14. <DataTable
  15. responsive-layout="scroll"
  16. column-resize-mode="expand"
  17. :value="topUp.data"
  18. :row-hover="true"
  19. :striped-rows="true"
  20. >
  21. <template #header>
  22. <h1 class="text-2xl font-bold">Detail Top Up</h1>
  23. <div class="grid px-2">
  24. <div class="col-auto mr-7">
  25. <h2>
  26. <span class="text-base"> <i class="pi pi-user" /> Nama</span>
  27. <br />
  28. <span class="text-lg">{{ member.name }}</span>
  29. </h2>
  30. </div>
  31. </div>
  32. </template>
  33. <Column v-for="value in topUpTable" :field="value.field" :header="value.header" :key="value.field" />
  34. </DataTable>
  35. <AppPagination :links="topUp.links" />
  36. </DashboardLayout>
  37. </template>