2020-06-02 23:45:25 +02:00
< template >
< div >
2021-04-11 02:55:26 +02:00
< div class = "member-table" >
< header >
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > Nachname < / div >
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > Vorname < / div >
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > Straße < / div >
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > PLZ < / div >
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > Ort < / div >
2021-04-11 16:33:33 +02:00
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > Mittendrin < / div >
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > Nami < / div >
2021-04-11 02:55:26 +02:00
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > Geburtstag < / div >
< div class = "px-6 text-gray-200 font-semibold py-3 border-gray-600 border-b" > Eintritt < / div >
< / header >
2021-04-11 11:19:55 +02:00
< inertia -link :href ="`/member/${member.id}/edit`" :key ="index" v-for ="member, index in data.data" class="text-gray-200 transition-all duration-500 rounded flex hover:bg-gray-600" >
2021-04-11 02:55:26 +02:00
< div class = "py-1 px-6" v-text ="member.firstname" > < / div >
< div class = "py-1 px-6" v-text ="member.lastname" > < / div >
< div class = "py-1 px-6" v-text ="`${member.address}`" > < / div >
< div class = "py-1 px-6" v-text ="`${member.zip}`" > < / div >
< div class = "py-1 px-6" v-text ="`${member.location}`" > < / div >
< div class = "py-1 px-6" >
< v -bool v-model ="member.send_newspaper" > < / v-bool >
< / div >
2021-04-11 16:33:33 +02:00
< div class = "py-1 px-6" >
< v -bool v-model ="member.nami_id !== null" > < / v-bool >
< / div >
2021-04-11 02:55:26 +02:00
< div class = "py-1 px-6" v-text ="`${member.birthday}`" > < / div >
< div class = "py-1 px-6" v-text ="`${member.joined_at}`" > < / div >
< / i n e r t i a - l i n k >
< / div >
< div class = "px-6" >
< pages class = "mt-4" :value ="data.meta" :only ="['data']" > < / pages >
< / div >
2020-06-02 23:45:25 +02:00
< / div >
< / template >
< script >
2021-04-11 02:55:26 +02:00
import App from '../../layouts/App' ;
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-04-11 02:55:26 +02:00
props : {
data : { }
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 >
2021-04-11 02:55:26 +02:00
< style scoped >
. member - table {
display : table ;
width : 100 % ;
}
. member - table > * {
display : table - row ;
}
. member - table > * > * {
display : table - cell ;
}
< / style >