2020-06-02 23:45:25 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
2021-07-04 16:56:07 +02:00
|
|
|
|
2021-08-22 05:51:25 +02:00
|
|
|
<filt v-model="query.filter" :bill-kinds="billKinds"></filt>
|
|
|
|
|
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>
|
2021-07-04 18:20:09 +02:00
|
|
|
<div>Tags</div>
|
2021-07-04 18:29:21 +02:00
|
|
|
<div>Beitrag</div>
|
2021-07-04 16:56:07 +02:00
|
|
|
<div>Geburtstag</div>
|
2021-07-04 21:47:20 +02:00
|
|
|
<div>Rechnung</div>
|
|
|
|
<div>Ausstand</div>
|
2021-07-04 16:56:07 +02:00
|
|
|
<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.lastname"></div>
|
2021-07-17 17:47:23 +02:00
|
|
|
<div v-text="member.firstname"></div>
|
2021-07-04 16:56:07 +02:00
|
|
|
<div v-text="`${member.address}`"></div>
|
|
|
|
<div v-text="`${member.zip}`"></div>
|
|
|
|
<div v-text="`${member.location}`"></div>
|
|
|
|
<div>
|
2021-07-04 18:20:09 +02:00
|
|
|
<div class="bool-row">
|
|
|
|
<v-bool v-model="member.send_newspaper">M</v-bool>
|
|
|
|
<v-bool v-model="member.has_nami">N</v-bool>
|
|
|
|
<v-bool v-model="member.is_confirmed">C</v-bool>
|
|
|
|
</div>
|
2021-06-28 22:09:41 +02:00
|
|
|
</div>
|
2021-07-04 18:29:21 +02:00
|
|
|
<div v-text="member.subscription_name"></div>
|
2021-07-04 21:47:20 +02:00
|
|
|
<div v-text="`${member.birthday_human}`"></div>
|
|
|
|
<div>
|
|
|
|
<div class="flex justify-center">
|
|
|
|
<div class="btn btn-sm label primary" v-text="member.bill_kind_name" v-if="member.bill_kind_name"></div>
|
|
|
|
<div class="text-xs" v-else>Kein</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-04 16:56:07 +02:00
|
|
|
<div>
|
2021-07-04 21:47:20 +02:00
|
|
|
<div class="flex justify-center">
|
|
|
|
<div class="btn btn-sm label primary" v-show="member.pending_payment" v-text="member.pending_payment"></div>
|
|
|
|
</div>
|
2021-04-11 18:17:40 +02:00
|
|
|
</div>
|
2021-07-04 16:56:07 +02:00
|
|
|
<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>
|
2021-08-22 05:15:56 +02:00
|
|
|
<a href="#" @click.prevent="openSidebar(index, 'payment.index')" class="inline-flex btn btn-info btn-sm"><sprite src="money"></sprite></a>
|
2021-07-04 19:09:59 +02:00
|
|
|
<inertia-link href="#" @click.prevent="remove(member)" class="inline-flex btn btn-danger btn-sm"><sprite src="trash"></sprite></inertia-link>
|
2021-07-04 00:39:39 +02:00
|
|
|
</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">
|
2021-08-22 05:15:56 +02:00
|
|
|
<payments v-if="single !== null && sidebar === 'payment.index'" @close="closeSidebar" :subscriptions="subscriptions" :statuses="statuses" v-model="data.data[single]"></payments>
|
2021-07-04 16:56:07 +02:00
|
|
|
</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';
|
2021-08-22 05:51:25 +02:00
|
|
|
import Filt from './Filt.vue';
|
2021-08-22 04:28:11 +02:00
|
|
|
import mergesQueryString from '../../mixins/mergesQueryString.js';
|
2020-06-02 23:45:25 +02:00
|
|
|
|
2021-04-11 02:55:26 +02:00
|
|
|
export default {
|
2021-07-04 19:09:59 +02:00
|
|
|
|
2021-08-22 05:15:56 +02:00
|
|
|
data: function() {
|
|
|
|
return {
|
|
|
|
sidebar: null,
|
|
|
|
single: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
2021-04-11 02:55:26 +02:00
|
|
|
layout: App,
|
2020-06-02 23:45:25 +02:00
|
|
|
|
2021-08-22 04:28:11 +02:00
|
|
|
mixins: [mergesQueryString],
|
|
|
|
|
2021-08-22 05:51:25 +02:00
|
|
|
components: { Payments, Filt },
|
2021-07-04 16:56:07 +02:00
|
|
|
|
2021-07-04 19:09:59 +02:00
|
|
|
methods: {
|
|
|
|
remove(member) {
|
|
|
|
if (window.confirm('Mitglied löschen?')) {
|
|
|
|
this.$inertia.delete(`/member/${member.id}`);
|
|
|
|
}
|
2021-08-22 05:15:56 +02:00
|
|
|
},
|
|
|
|
openSidebar(index, name) {
|
|
|
|
this.single = index;
|
|
|
|
this.sidebar = name;
|
|
|
|
},
|
|
|
|
closeSidebar() {
|
|
|
|
this.single = null;
|
|
|
|
this.sidebar = null;
|
2021-07-04 19:09:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2021-08-22 05:51:25 +02:00
|
|
|
props: {
|
2021-07-04 16:56:07 +02:00
|
|
|
data: {},
|
2021-08-22 05:15:56 +02:00
|
|
|
subscriptions: {},
|
|
|
|
statuses: {},
|
|
|
|
paymentDefaults: {},
|
2021-08-22 05:51:25 +02:00
|
|
|
query: {},
|
|
|
|
billKinds: {},
|
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>
|
|
|
|
|