adrema/resources/js/views/member/boxes/Payments.vue

45 lines
1.3 KiB
Vue
Raw Normal View History

2022-11-22 01:55:57 +01:00
<template>
<div>
<table cellspacing="0" cellpadding="0" border="0" class="hidden md:table custom-table custom-table-sm text-sm">
<thead>
<th>Nr</th>
<th>Beitrag</th>
<th>Status</th>
</thead>
<tr v-for="(payment, index) in inner" :key="index">
<td v-text="payment.nr"></td>
<td v-text="`${payment.subscription.name} (${payment.subscription.amount_human})`"></td>
<td v-text="payment.status_name"></td>
</tr>
</table>
<div class="md:hidden grid gap-3">
<box class="relative" :heading="payment.nr" v-for="(payment, index) in inner" :key="index" second>
<div
class="text-xs text-gray-200"
v-text="`${payment.subscription.name} (${payment.subscription.amount_human})`"
></div>
<div class="text-xs text-gray-200" v-text="payment.status_name"></div>
</box>
</div>
</div>
2022-11-22 01:55:57 +01:00
</template>
<script>
export default {
data: function () {
return {
inner: [],
};
},
2022-11-22 01:55:57 +01:00
props: {
value: {},
},
created() {
this.inner = this.value;
2022-11-22 01:55:57 +01:00
},
};
</script>