adrema/resources/js/views/subscription/SubscriptionIndex.vue

39 lines
1.2 KiB
Vue
Raw Normal View History

2021-07-04 01:44:41 +02:00
<template>
2023-04-29 23:41:26 +02:00
<page-layout>
2023-05-02 23:13:00 +02:00
<div class="flex" slot="toolbar">
2023-05-19 01:06:46 +02:00
<page-toolbar-button :href="data.meta.links.create" color="primary" icon="plus">Beitrag hinzufügen</page-toolbar-button>
2023-05-02 23:13:00 +02:00
</div>
2022-11-17 00:05:40 +01:00
<table cellspacing="0" cellpadding="0" border="0" class="custom-table custom-table-sm">
<thead>
<th>Name</th>
<th>Interner Beitrag</th>
<th>Nami-Beitrag</th>
<th></th>
</thead>
2021-07-04 01:44:41 +02:00
2023-05-02 23:13:00 +02:00
<tr v-for="(subscription, index) in data.data" :key="index">
2022-11-17 00:05:40 +01:00
<td>
<div v-text="subscription.name"></div>
</td>
<td>
<div v-text="subscription.amount_human"></div>
</td>
<td>
<div v-text="subscription.fee_name"></div>
</td>
<td>
2023-04-29 23:41:26 +02:00
<i-link :href="`/subscription/${subscription.id}/edit`" class="inline-flex btn btn-warning btn-sm"><svg-sprite src="pencil"></svg-sprite></i-link>
2022-11-17 00:05:40 +01:00
</td>
</tr>
</table>
2023-04-29 23:41:26 +02:00
</page-layout>
2021-07-04 01:44:41 +02:00
</template>
<script>
export default {
2022-11-17 00:05:40 +01:00
props: {
data: {},
},
};
2021-07-04 01:44:41 +02:00
</script>