text: (self.webpackChunk=self.webpackChunk||[]).push([[644],{2472:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var n=s(3645),r=s.n(n)()((function(t){return t[1]}));r.push([t.id,"body{background-color:#f3f3f3}.pageTitle{font-size:1.5rem;font-weight:700}.content{background-color:#fff;margin-top:1rem;border-radius:10px;padding:1rem}",""]);const o=r},7644:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>r});const n={props:["members","errors","flash"],components:{AdminLayout:s(7611).Z},data:function(){return{search:""}}};const r=(0,s(1900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{attrs:{open:"members"}},[s("div",[t.$page.props.flash?s("vs-alert",{attrs:{color:"success"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n                Success\n            ")]},proxy:!0}],null,!1,3127812830)},[t._v("\n            "+t._s(t.$page.props.flash)+"\n        ")]):t._e(),t._v(" "),t.$page.props.errors.length>0?s("vs-alert",{attrs:{color:"danger"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n                Error\n            ")]},proxy:!0}],null,!1,4217055013)},[t._v(" "),s("ul",t._l(t.$page.props.errors,(function(e,n){return s("li",{key:n},[t._v("\n                    error\n                ")])})),0)]):t._e(),t._v(" "),s("vs-table",{scopedSlots:t._u([{key:"header",fn:function(){return[s("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[s("vs-input",{attrs:{"icon-after":"",placeholder:"Search"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-search"})]},proxy:!0}]),model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),t._v(" "),s("div",{staticStyle:{display:"flex"}},[s("inertia-link",{attrs:{href:t.$route("members.create")}},[s("vs-button",{attrs:{icon:"",color:"success"}},[s("i",{staticClass:"bx bx-plus"})])],1)],1)],1)]},proxy:!0},{key:"thead",fn:function(){return[s("vs-tr",[s("vs-th"),t._v(" "),s("vs-th",[t._v("\n                    Name\n                ")]),t._v(" "),s("vs-th",[t._v("\n                    Age\n                ")]),t._v(" "),s("vs-th",[t._v("\n                    Username\n                ")]),t._v(" "),s("vs-th")],1)]},proxy:!0},{key:"tbody",fn:function(){return t._l(t.members,(function(e,n){return s("vs-tr",{key:n,attrs:{data:e}},[s("vs-td",[s("vs-avatar",[s("img",{attrs:{src:e.profile_picture,alt:"",size:"50"}})])],1),t._v(" "),s("vs-td",[t._v("\n                        "+t._s(e.first_name)+" "+t._s(e.last_name)+"\n                    ")]),t._v(" "),s("vs-td",[t._v("\n                        "+t._s(e.age)+" years old\n                    ")]),t._v(" "),s("vs-td",[t._v("\n                        "+t._s(e.username)+"\n                    ")]),t._v(" "),s("vs-td",{staticStyle:{display:"flex","justify-content":"flex-end"}},[s("inertia-link",{attrs:{href:t.$route("members.edit",{member:e.id})}},[s("vs-button",{attrs:{icon:"",color:"warning",flat:""}},[s("i",{staticClass:"bx bx-edit"})])],1),t._v(" "),s("inertia-link",{attrs:{href:t.$route("members.destroy",{member:e.id}),method:"delete"}},[s("vs-button",{attrs:{icon:"",color:"danger",flat:""}},[s("i",{staticClass:"bx bxs-trash"})])],1)],1)],1)}))},proxy:!0}])})],1)])}),[],!1,null,null,null).exports},7611:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});var n=s(6486),r=s.n(n),o=s(9680);const i={props:["open"],data:function(){return{active:"dashboard",sidebar:this.open,csrftoken:""}},methods:{capitalize:function(t){return"admins"==t&&(t="Admins and Moderators"),"poke"==t&&(t="Poke inbox"),"all-conversations"==t&&(t="All conversations"),"chats"==t&&(t="My chats"),r().capitalize(t)},logout:function(){o.Inertia.visit("/logout",{method:"post",replace:!0,onFinish:function(t){window.location="/"}})}}};s(6);const a=(0,s(1900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("vs-sidebar",{attrs:{absolute:"",open:"",square:""},scopedSlots:t._u([{key:"logo",fn:function(){return[s("div",{staticStyle:{"font-size":"2em"}},[t._v("MyXXXfling")])]},proxy:!0},{key:"footer",fn:function(){return[s("vs-row",{attrs:{justify:"space-between"}},[s("div",{staticStyle:{display:"flex"}},[s("vs-avatar",{staticStyle:{flex:"1"}},[s("img",{attrs:{src:"/avatars/avatar-5.png",alt:""}})]),t._v(" "),s("vs-tooltip",{staticStyle:{flex:"1"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._v("\n                        Logout\n                    ")]},proxy:!0}])},[s("vs-button",{attrs:{circle:"",flat:"",icon:"",color:"#d6d6d6"},on:{click:t.logout}},[s("i",{staticClass:"bx bx-log-out-circle",staticStyle:{color:"#111"}})])],1)],1),t._v(" "),s("div")])]},proxy:!0}]),model:{value:t.sidebar,callback:function(e){t.sidebar=e},expression:"sidebar"}},[t._v(" "),s("inertia-link",{attrs:{href:t.$route("dashboard")}},[s("vs-sidebar-item",{attrs:{id:"dashboard"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bxs-dashboard"})]},proxy:!0}])},[t._v("\n                Dashboard\n            ")])],1),t._v(" "),s("inertia-link",{attrs:{href:t.$route("inbox.index")}},[s("vs-sidebar-item",{attrs:{id:"inbox"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-envelope"})]},proxy:!0}])},[t._v("\n                Inbox\n            ")])],1),t._v(" "),s("inertia-link",{attrs:{href:t.$route("inbox.poke")}},[s("vs-sidebar-item",{attrs:{id:"poke"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-reply-all"})]},proxy:!0}])},[t._v("\n                Poke Inbox\n            ")])],1),t._v(" "),"Admin"==this.$page.props.auth.user.role?s("inertia-link",{attrs:{href:t.$route("inbox.all")}},[s("vs-sidebar-item",{attrs:{id:"all-conversations"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-envelope"})]},proxy:!0}],null,!1,2250939887)},[t._v("\n                All Conversations\n            ")])],1):t._e(),t._v(" "),s("inertia-link",{attrs:{href:t.$route("chat.index")}},[s("vs-sidebar-item",{attrs:{id:"chats"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-chat"})]},proxy:!0}])},[t._v("\n                My chats\n            ")])],1),t._v(" "),"Admin"==this.$page.props.auth.user.role?s("inertia-link",{attrs:{href:t.$route("members.index")}},[s("vs-sidebar-item",{attrs:{id:"members"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-bookmark-heart"})]},proxy:!0}],null,!1,4068077082)},[t._v("\n                Members\n            ")])],1):t._e(),t._v(" "),"Admin"==this.$page.props.auth.user.role?s("inertia-link",{attrs:{href:t.$route("pricing.index")}},[s("vs-sidebar-item",{attrs:{id:"pricing"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-dollar-circle"})]},proxy:!0}],null,!1,1504671046)},[t._v("\n                Pricing\n            ")])],1):t._e(),t._v(" "),"Admin"==this.$page.props.auth.user.role?s("inertia-link",{attrs:{href:t.$route("payments.index")}},[s("vs-sidebar-item",{attrs:{id:"payments"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-wallet"})]},proxy:!0}],null,!1,1376541318)},[t._v("\n                Payments\n            ")])],1):t._e(),t._v(" "),"Admin"==this.$page.props.auth.user.role?s("inertia-link",{attrs:{href:t.$route("users.index")}},[s("vs-sidebar-item",{attrs:{id:"admins"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-user"})]},proxy:!0}],null,!1,1893308880)},[t._v("\n                Admins & Moderators\n            ")])],1):t._e(),t._v(" "),"Admin"==this.$page.props.auth.user.role?s("inertia-link",{attrs:{href:t.$route("users.users")}},[s("vs-sidebar-item",{attrs:{id:"users"},scopedSlots:t._u([{key:"icon",fn:function(){return[s("i",{staticClass:"bx bx-user"})]},proxy:!0}],null,!1,1893308880)},[t._v("\n                Users\n            ")])],1):t._e()],1),t._v(" "),s("div",{staticStyle:{margin:"1em 1em 1em 18em"}},[s("vs-navbar",{staticStyle:{width:"100%",position:"static","background-color":"#fff","border-radius":"10px",padding:"0.7rem"},scopedSlots:t._u([{key:"left",fn:function(){return[s("div",{staticClass:"pageTitle"},[t._v(t._s(t.capitalize(t.open)))])]},proxy:!0},{key:"right",fn:function(){},proxy:!0}]),model:{value:t.active,callback:function(e){t.active=e},expression:"active"}}),t._v(" "),s("div",{staticClass:"content"},[t._t("default")],2)],1),t._v(" "),s("form",{ref:"logoutForm",attrs:{action:"/logout",method:"post"}},[s("input",{attrs:{type:"hidden",name:"_token",value:"lol"}})])],1)}),[],!1,null,null,null).exports},1900:(t,e,s)=>{"use strict";function n(t,e,s,n,r,o,i,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=s,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}s.d(e,{Z:()=>n})},6:(t,e,s)=>{var n=s(2472);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);(0,s(5346).Z)("6a45cf88",n,!0,{})}}]);