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

32 lines
1.2 KiB
Vue
Raw Normal View History

2021-07-04 01:44:41 +02:00
<template>
<div>
<div class="custom-table">
<header>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Name</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Interner Beitrag</div>
<div class="px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b">Nami-Beitrag</div>
<div class="px-6 py-3 border-gray-600 border-b"></div>
</header>
2022-02-12 14:28:03 +01:00
<div v-for="sub, index in data" class="text-gray-200 transition-all duration-300 rounded flex items-center hover:bg-gray-800" :key="index">
2021-07-04 01:44:41 +02:00
<div class="py-1 px-6" v-text="sub.name"></div>
<div class="py-1 px-6" v-text="sub.amount_human"></div>
<div class="py-1 px-6" v-text="sub.fee_name"></div>
<div class="py-1 px-6 flex">
2022-01-02 12:50:25 +01:00
<Link :href="`/subscription/${sub.id}/edit`" class="inline-flex btn btn-warning btn-sm"><sprite src="pencil"></sprite></Link>
2021-07-04 01:44:41 +02:00
</div>
</div>
</div>
</div>
</template>
<script>
export default {
props:{
data: {}
}
}
</script>