adrema/resources/js/views/member/Index.vue

80 lines
2.9 KiB
Vue
Raw Normal View History

2020-06-02 23:45:25 +02:00
<template>
<div>
2021-07-04 16:56:07 +02:00
2021-07-04 01:44:41 +02:00
<div class="custom-table">
2021-04-11 02:55:26 +02:00
<header>
2021-07-04 16:56:07 +02:00
<div>Nachname</div>
<div>Vorname</div>
<div>Straße</div>
<div>PLZ</div>
<div>Ort</div>
<div>Mittendrin</div>
<div>Nami</div>
<div>Check</div>
<div>Rechnung</div>
<div>Geburtstag</div>
<div>Eintritt</div>
<div></div>
2021-04-11 02:55:26 +02:00
</header>
2021-07-04 16:56:07 +02:00
<div v-for="member, index in data.data">
<div v-text="member.firstname"></div>
<div v-text="member.lastname"></div>
<div v-text="`${member.address}`"></div>
<div v-text="`${member.zip}`"></div>
<div v-text="`${member.location}`"></div>
<div>
2021-04-11 02:55:26 +02:00
<v-bool v-model="member.send_newspaper"></v-bool>
</div>
2021-07-04 16:56:07 +02:00
<div>
2021-04-11 20:35:18 +02:00
<v-bool v-model="member.has_nami"></v-bool>
2021-04-11 16:33:33 +02:00
</div>
2021-07-04 16:56:07 +02:00
<div>
2021-06-28 22:09:41 +02:00
<v-bool v-model="member.is_confirmed"></v-bool>
</div>
2021-07-04 16:56:07 +02:00
<div>
2021-04-11 18:17:40 +02:00
<div class="py-1 rounded-full flex text-xs items-center justify-center leading-none bg-primary-900" v-text="member.bill_kind_name" v-if="member.bill_kind_name"></div>
<div class="py-1 rounded-full flex text-xs items-center justify-center leading-none" v-else>Kein</div>
</div>
2021-07-04 16:56:07 +02:00
<div v-text="`${member.birthday_human}`"></div>
<div v-text="`${member.joined_at_human}`"></div>
<div class="flex">
2021-07-04 00:39:39 +02:00
<inertia-link :href="`/member/${member.id}/edit`" class="inline-flex btn btn-warning btn-sm"><sprite src="pencil"></sprite></inertia-link>
<inertia-link :href="`/member/${member.id}/payment`" class="inline-flex btn btn-info btn-sm"><sprite src="money"></sprite></inertia-link>
</div>
</div>
2021-04-11 02:55:26 +02:00
</div>
<div class="px-6">
<pages class="mt-4" :value="data.meta" :only="['data']"></pages>
</div>
2021-07-04 16:56:07 +02:00
<transition name="sidebar">
<payments v-if="single !== null && single.mode === 'index'" v-model="single"></payments>
<payment-form v-if="single !== null && single.mode === 'create'" v-model="single"></payment-form>
<payment-form v-if="single !== null && single.mode === 'edit'" v-model="single"></payment-form>
</transition>
2020-06-02 23:45:25 +02:00
</div>
</template>
<script>
2021-04-11 02:55:26 +02:00
import App from '../../layouts/App';
2021-07-04 16:56:07 +02:00
import Payments from './Payments.vue';
import PaymentForm from './PaymentForm.vue';
2020-06-02 23:45:25 +02:00
2021-04-11 02:55:26 +02:00
export default {
layout: App,
2020-06-02 23:45:25 +02:00
2021-07-04 16:56:07 +02:00
components: { Payments, PaymentForm },
2021-04-11 02:55:26 +02:00
props:{
2021-07-04 16:56:07 +02:00
data: {},
single: {
default: function() { return null; }
},
2020-06-02 23:45:25 +02:00
}
2021-04-11 02:55:26 +02:00
}
2020-06-02 23:45:25 +02:00
</script>