2020-06-02 23:45:25 +02:00
|
|
|
<template>
|
|
|
|
<div>
|
2022-05-13 10:33:57 +02:00
|
|
|
<member-filter
|
|
|
|
:value="query.filter"
|
|
|
|
:activities="filterActivities"
|
|
|
|
:subactivities="filterSubactivities"
|
|
|
|
:bill-kinds="billKinds"
|
|
|
|
></member-filter>
|
2021-08-22 05:51:25 +02:00
|
|
|
|
2021-08-22 19:31:20 +02:00
|
|
|
<table cellspacing="0" cellpadding="0" border="0" class="custom-table custom-table-sm">
|
|
|
|
<thead>
|
|
|
|
<th></th>
|
|
|
|
<th>Nachname</th>
|
|
|
|
<th>Vorname</th>
|
|
|
|
<th>Straße</th>
|
|
|
|
<th>PLZ</th>
|
|
|
|
<th>Ort</th>
|
|
|
|
<th>Tags</th>
|
|
|
|
<th>Beitrag</th>
|
|
|
|
<th>Geburtstag</th>
|
2021-11-19 00:53:19 +01:00
|
|
|
<th v-show="hasModule('bill')">Rechnung</th>
|
|
|
|
<th v-show="hasModule('bill')">Ausstand</th>
|
2021-08-22 19:31:20 +02:00
|
|
|
<th>Eintritt</th>
|
|
|
|
<th></th>
|
|
|
|
</thead>
|
2021-04-11 02:55:26 +02:00
|
|
|
|
2022-05-13 10:33:57 +02:00
|
|
|
<tr v-for="(member, index) in data.data" :key="index">
|
2022-09-06 01:28:18 +02:00
|
|
|
<td class="w-6 flex gap-1 items-center">
|
2022-05-13 10:33:57 +02:00
|
|
|
<svg-sprite
|
2022-09-06 01:25:04 +02:00
|
|
|
class="w-3 h-3 flex-none"
|
|
|
|
v-if="member.is_leader"
|
|
|
|
:class="ageColors.leiter"
|
|
|
|
src="lilie"
|
|
|
|
></svg-sprite>
|
|
|
|
<svg-sprite
|
|
|
|
class="w-3 h-3 flex-none"
|
2022-05-13 10:33:57 +02:00
|
|
|
v-if="member.age_group_icon"
|
2022-09-06 01:01:01 +02:00
|
|
|
:class="ageColors[member.age_group_icon]"
|
2022-05-13 10:33:57 +02:00
|
|
|
src="lilie"
|
|
|
|
></svg-sprite>
|
2021-08-22 19:31:20 +02:00
|
|
|
</td>
|
|
|
|
<td v-text="member.lastname"></td>
|
|
|
|
<td v-text="member.firstname"></td>
|
|
|
|
<td v-text="`${member.address}`"></td>
|
|
|
|
<td v-text="`${member.zip}`"></td>
|
|
|
|
<td v-text="`${member.location}`"></td>
|
|
|
|
<td>
|
2021-07-04 18:20:09 +02:00
|
|
|
<div class="bool-row">
|
2022-08-29 12:03:11 +02:00
|
|
|
<v-bool
|
|
|
|
true-comment="Mittendrin abonniert"
|
|
|
|
false-comment="Mittendrin nicht abonníert"
|
|
|
|
v-model="member.send_newspaper"
|
|
|
|
>M</v-bool
|
|
|
|
>
|
|
|
|
<v-bool
|
|
|
|
true-comment="In NaMi eingetragen"
|
|
|
|
false-comment="Nicht in NaMi eingetragen"
|
|
|
|
v-model="member.has_nami"
|
|
|
|
>N</v-bool
|
|
|
|
>
|
|
|
|
<v-bool
|
|
|
|
true-comment="Daten bestätigt"
|
|
|
|
false-comment="Daten warten auf Bestätigung"
|
|
|
|
v-model="member.is_confirmed"
|
|
|
|
>C</v-bool
|
|
|
|
>
|
2021-07-04 18:20:09 +02:00
|
|
|
</div>
|
2021-08-22 19:31:20 +02:00
|
|
|
</td>
|
2022-11-22 00:37:34 +01:00
|
|
|
<td v-text="member.subscription ? member.subscription.name : ''"></td>
|
2022-05-13 10:33:57 +02:00
|
|
|
<td v-text="`${member.birthday_human} (${member.age})`"></td>
|
2021-11-19 00:53:19 +01:00
|
|
|
<td v-show="hasModule('bill')">
|
2021-07-04 21:47:20 +02:00
|
|
|
<div class="flex justify-center">
|
2022-05-13 10:33:57 +02:00
|
|
|
<div
|
|
|
|
class="btn btn-sm label primary"
|
|
|
|
v-text="member.bill_kind_name"
|
|
|
|
v-if="member.bill_kind_name"
|
|
|
|
></div>
|
2021-07-04 21:47:20 +02:00
|
|
|
<div class="text-xs" v-else>Kein</div>
|
|
|
|
</div>
|
2021-08-22 19:31:20 +02:00
|
|
|
</td>
|
2021-11-19 00:53:19 +01:00
|
|
|
<td v-show="hasModule('bill')">
|
2021-07-04 21:47:20 +02:00
|
|
|
<div class="flex justify-center">
|
2022-05-13 10:33:57 +02:00
|
|
|
<div
|
|
|
|
class="btn btn-sm label primary"
|
|
|
|
v-show="member.pending_payment"
|
|
|
|
v-text="member.pending_payment"
|
|
|
|
></div>
|
2021-07-04 21:47:20 +02:00
|
|
|
</div>
|
2021-08-22 19:31:20 +02:00
|
|
|
</td>
|
|
|
|
<td v-text="`${member.joined_at_human}`"></td>
|
2022-11-18 15:55:44 +01:00
|
|
|
<td>
|
|
|
|
<div class="flex space-x-1">
|
|
|
|
<i-link :href="member.links.show" class="inline-flex btn btn-primary btn-sm"
|
|
|
|
><svg-sprite src="eye"></svg-sprite
|
|
|
|
></i-link>
|
|
|
|
<i-link :href="`/member/${member.id}/edit`" class="inline-flex btn btn-warning btn-sm"
|
|
|
|
><svg-sprite src="pencil"></svg-sprite
|
|
|
|
></i-link>
|
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
v-show="hasModule('bill')"
|
|
|
|
@click.prevent="openSidebar(index, 'payment.index')"
|
|
|
|
class="inline-flex btn btn-info btn-sm"
|
|
|
|
><svg-sprite src="money"></svg-sprite
|
|
|
|
></a>
|
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
v-show="hasModule('courses')"
|
|
|
|
@click.prevent="openSidebar(index, 'courses.index')"
|
|
|
|
class="inline-flex btn btn-info btn-sm"
|
|
|
|
><svg-sprite src="course"></svg-sprite
|
|
|
|
></a>
|
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
@click.prevent="openSidebar(index, 'membership.index')"
|
|
|
|
class="inline-flex btn btn-info btn-sm"
|
|
|
|
><svg-sprite src="user"></svg-sprite
|
|
|
|
></a>
|
|
|
|
<a :href="member.efz_link" v-show="member.efz_link" class="inline-flex btn btn-info btn-sm"
|
|
|
|
><svg-sprite src="report"></svg-sprite
|
|
|
|
></a>
|
|
|
|
<i-link href="#" @click.prevent="remove(member)" class="inline-flex btn btn-danger btn-sm"
|
|
|
|
><svg-sprite src="trash"></svg-sprite
|
|
|
|
></i-link>
|
|
|
|
</div>
|
2021-08-22 19:31:20 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2021-04-11 02:55:26 +02:00
|
|
|
|
|
|
|
<div class="px-6">
|
2022-02-12 15:12:08 +01:00
|
|
|
<v-pages class="mt-4" :value="data.meta" :only="['data']"></v-pages>
|
2021-04-11 02:55:26 +02:00
|
|
|
</div>
|
2021-07-04 16:56:07 +02:00
|
|
|
|
|
|
|
<transition name="sidebar">
|
2022-05-13 10:33:57 +02:00
|
|
|
<member-payments
|
|
|
|
v-if="single !== null && sidebar === 'payment.index'"
|
|
|
|
@close="closeSidebar"
|
|
|
|
:subscriptions="subscriptions"
|
|
|
|
:statuses="statuses"
|
|
|
|
:value="data.data[single]"
|
|
|
|
></member-payments>
|
|
|
|
<member-memberships
|
|
|
|
v-if="single !== null && sidebar === 'membership.index'"
|
|
|
|
@close="closeSidebar"
|
|
|
|
:activities="activities"
|
|
|
|
:subactivities="subactivities"
|
|
|
|
:value="data.data[single]"
|
|
|
|
></member-memberships>
|
|
|
|
<member-courses
|
|
|
|
v-if="single !== null && sidebar === 'courses.index'"
|
|
|
|
@close="closeSidebar"
|
|
|
|
:courses="courses"
|
|
|
|
:value="data.data[single]"
|
|
|
|
></member-courses>
|
2021-07-04 16:56:07 +02:00
|
|
|
</transition>
|
2020-06-02 23:45:25 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-02-12 14:47:07 +01:00
|
|
|
import MemberPayments from './MemberPayments.vue';
|
|
|
|
import MemberMemberships from './MemberMemberships.vue';
|
2022-02-12 14:28:56 +01:00
|
|
|
import MemberCourses from './MemberCourses.vue';
|
2022-02-12 14:53:50 +01:00
|
|
|
import MemberFilter from './MemberFilter.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 {
|
2022-05-13 10:33:57 +02:00
|
|
|
data: function () {
|
2021-08-22 05:15:56 +02:00
|
|
|
return {
|
|
|
|
sidebar: null,
|
|
|
|
single: null,
|
2022-09-06 01:01:01 +02:00
|
|
|
ageColors: {
|
|
|
|
biber: 'text-biber',
|
|
|
|
woelfling: 'text-woelfling',
|
|
|
|
jungpfadfinder: 'text-jungpfadfinder',
|
|
|
|
pfadfinder: 'text-pfadfinder',
|
|
|
|
rover: 'text-rover',
|
|
|
|
leiter: 'text-leiter',
|
|
|
|
},
|
2021-08-22 05:15:56 +02:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
2021-08-22 04:28:11 +02:00
|
|
|
mixins: [mergesQueryString],
|
|
|
|
|
2022-05-13 10:33:57 +02:00
|
|
|
components: {MemberMemberships, MemberPayments, MemberFilter, MemberCourses},
|
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;
|
2022-05-13 10:33:57 +02:00
|
|
|
},
|
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: {},
|
2021-08-22 22:23:17 +02:00
|
|
|
activities: {},
|
|
|
|
subactivities: {},
|
2021-08-23 00:46:41 +02:00
|
|
|
filterActivities: {},
|
|
|
|
filterSubactivities: {},
|
2021-11-19 22:58:27 +01:00
|
|
|
courses: {},
|
2022-05-13 10:33:57 +02:00
|
|
|
},
|
|
|
|
};
|
2020-06-02 23:45:25 +02:00
|
|
|
</script>
|