123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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
  34. v-for="value in topUpTable"
  35. :field="value.field"
  36. :header="value.header"
  37. :key="value.field"
  38. />
  39. </DataTable>
  40. <AppPagination :links="topUp.links" />
  41. </DashboardLayout>
  42. </template>