Show.vue 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 class="col-auto">
  32. <h2>
  33. <span class="text-base"> <i class="pi pi-phone" /> Nomor HP </span>
  34. <br />
  35. <span class="text-lg">{{ member.phone }}</span>
  36. </h2>
  37. </div>
  38. </div>
  39. </template>
  40. <Column v-for="value in topUpTable" :field="value.field" :header="value.header" :key="value.field" />
  41. </DataTable>
  42. <AppPagination :links="topUp.links" />
  43. </DashboardLayout>
  44. </template>