adrema/resources/js/views/home/VIndex.vue

39 lines
1.5 KiB
Vue
Raw Normal View History

2021-07-04 23:27:00 +02:00
<template>
<div class="gap-6 grid-cols-4 grid p-6">
2022-02-12 14:56:25 +01:00
<v-block title="Ausstehende Mitgliedsbeiträge">
2021-07-04 23:27:00 +02:00
<div class="text-gray-100">
<span class="text-xl mr-1 font-semibold" v-text="data.payments.amount"></span>
<span class="text-sm" v-text="`von ${data.payments.users} / ${data.payments.all_users} Mitgliedern`"></span>
</div>
2022-02-12 14:56:25 +01:00
</v-block>
<v-block title="Gruppierungs-Verteilung">
2022-02-12 14:55:03 +01:00
<div v-for="group, index in data.groups" :key="index" class="flex mt-2 items-center leading-none text-gray-100">
2022-02-12 15:22:22 +01:00
<svg-sprite class="w-4 h-4 mr-2" src="lilie" :class="`text-${group.slug}`"></svg-sprite>
2022-02-10 02:18:57 +01:00
<span v-text="group.name" class="grow"></span>
2021-08-23 01:26:46 +02:00
<span v-text="group.count"></span>
</div>
2022-02-12 14:56:25 +01:00
</v-block>
<v-block title="Endende Schhnupperzeiten">
2022-02-12 14:55:03 +01:00
<div v-for="member, index in data.ending_tries" :key="index" class="flex mt-2 items-center leading-none text-gray-100">
2022-02-10 02:18:57 +01:00
<span class="grow" v-text="`${member.firstname} ${member.lastname}`"></span>
2021-08-23 01:59:53 +02:00
<span class="mr-2 text-sm tex-gray-600" v-text="`${member.try_ends_at}`"></span>
<span class="text-xs tex-gray-600" v-text="`${member.try_ends_at_human}`"></span>
</div>
2022-02-12 14:56:25 +01:00
</v-block>
2021-07-04 23:27:00 +02:00
</div>
</template>
<script>
export default {
props: {
data: {},
blocks: {}
2022-02-12 14:56:25 +01:00
},
components: {
'VBlock': () => import('./VBlock')
2021-07-04 23:27:00 +02:00
}
};
</script>