text: (window.webpackJsonp=window.webpackJsonp||[]).push([[16,45,50],{fDts:function(t,s,a){"use strict";a.r(s);var e=a("KHd+"),i=Object(e.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"h-0 flex-1 flex flex-col pb-4 overflow-y-auto"},[a("div",{staticClass:"flex items-center flex-shrink-0 bg-gray-900 py-4 px-4 mb-4"},[a("inertia-link",{attrs:{href:t.route("admin:dashboard")}},[a("img",{staticClass:"h-8 w-auto select-none",attrs:{src:t.$page.logo_dark,alt:"logo"}})])],1),t._v(" "),a("div",{staticClass:"flex-shrink-0 flex px-6 pt-1"},[a("inertia-link",{staticClass:"flex-shrink-0 group block focus:outline-none",attrs:{href:t.route("admin:profile.edit")}},[a("div",{staticClass:"flex items-center"},[a("div",[a("img",{staticClass:"inline-block h-9 w-9 rounded-full",attrs:{src:t.$page.user.avatar_url,alt:t.$page.user.name}})]),t._v(" "),a("div",{staticClass:"ml-3"},[a("p",{staticClass:"text-sm leading-5 font-medium text-white"},[t._v("\n                        "+t._s(t.$page.user.name)+"\n                    ")]),t._v(" "),a("p",{staticClass:"text-xs leading-4 font-medium text-gray-400 group-hover:text-gray-300 group-focus:underline transition ease-in-out duration-150"},[t._v("\n                        Edit profile\n                    ")])])])])],1),t._v(" "),a("nav",{staticClass:"mt-5 bg-gray-800"},[a("inertia-link",{staticClass:"group mb-1 flex items-center px-6 py-2 text-sm leading-6 focus:outline-none focus:bg-gray-700 hover:text-white hover:bg-gray-700 transition ease-in-out duration-150",class:[t.route().current("admin:dashboard")?"text-white bg-gray-900":"text-gray-300"],attrs:{href:t.route("admin:dashboard")}},[a("svg",{staticClass:"w-4 h-4 fill-current mr-3",attrs:{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm-5.6-4.29a9.95 9.95 0 0 1 11.2 0 8 8 0 1 0-11.2 0zm6.12-7.64l3.02-3.02 1.41 1.41-3.02 3.02a2 2 0 1 1-1.41-1.41z"}})]),t._v("\n\n            Dashboard\n        ")]),t._v(" "),a("inertia-link",{staticClass:"group mb-1 flex items-center px-6 py-2 text-sm leading-6 focus:outline-none focus:bg-gray-700 hover:text-white hover:bg-gray-700 transition ease-in-out duration-150",class:[t.route().current("admin:subscriptions.index")?"text-white bg-gray-900":"text-gray-300"],attrs:{href:t.route("admin:subscriptions.index")}},[a("svg",{staticClass:"h-4 w-4 fill-current mr-3",attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[a("path",{attrs:{fill:"currentColor",d:"M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"}})]),t._v("\n\n            Subscriptions\n        ")]),t._v(" "),a("inertia-link",{staticClass:"group mb-1 flex items-center px-6 py-2 text-sm leading-6 focus:outline-none focus:bg-gray-700 hover:text-white hover:bg-gray-700 transition ease-in-out duration-150",class:[t.route().current("admin:plans.index")?"text-white bg-gray-900":"text-gray-300"],attrs:{href:t.route("admin:plans.index")}},[a("svg",{staticClass:"h-4 w-4 fill-current mr-3",attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[a("path",{attrs:{fill:"currentColor",d:"M427.84 380.67l-196.5 97.82a18.6 18.6 0 0 1-14.67 0L20.16 380.67c-4-2-4-5.28 0-7.29L67.22 350a18.65 18.65 0 0 1 14.69 0l134.76 67a18.51 18.51 0 0 0 14.67 0l134.76-67a18.62 18.62 0 0 1 14.68 0l47.06 23.43c4.05 1.96 4.05 5.24 0 7.24zm0-136.53l-47.06-23.43a18.62 18.62 0 0 0-14.68 0l-134.76 67.08a18.68 18.68 0 0 1-14.67 0L81.91 220.71a18.65 18.65 0 0 0-14.69 0l-47.06 23.43c-4 2-4 5.29 0 7.31l196.51 97.8a18.6 18.6 0 0 0 14.67 0l196.5-97.8c4.05-2.02 4.05-5.3 0-7.31zM20.16 130.42l196.5 90.29a20.08 20.08 0 0 0 14.67 0l196.51-90.29c4-1.86 4-4.89 0-6.74L231.33 33.4a19.88 19.88 0 0 0-14.67 0l-196.5 90.28c-4.05 1.85-4.05 4.88 0 6.74z"}})]),t._v("\n\n            Plans\n        ")])],1),t._v(" "),a("nav",{staticClass:"mt-auto"},[a("inertia-link",{staticClass:"group flex items-center px-6 py-2 text-sm leading-6 text-gray-300 focus:outline-none focus:bg-gray-700 hover:text-white hover:bg-gray-700 transition ease-in-out duration-150",attrs:{href:t.route("admin:system-settings.edit")}},[a("svg",{staticClass:"w-4 h-4 fill-current mr-3",attrs:{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M3.94 6.5L2.22 3.64l1.42-1.42L6.5 3.94c.52-.3 1.1-.54 1.7-.7L9 0h2l.8 3.24c.6.16 1.18.4 1.7.7l2.86-1.72 1.42 1.42-1.72 2.86c.3.52.54 1.1.7 1.7L20 9v2l-3.24.8c-.16.6-.4 1.18-.7 1.7l1.72 2.86-1.42 1.42-2.86-1.72c-.52.3-1.1.54-1.7.7L11 20H9l-.8-3.24c-.6-.16-1.18-.4-1.7-.7l-2.86 1.72-1.42-1.42 1.72-2.86c-.3-.52-.54-1.1-.7-1.7L0 11V9l3.24-.8c.16-.6.4-1.18.7-1.7zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"}})]),t._v("\n\n            Settings\n        ")]),t._v(" "),a("a",{staticClass:"group flex items-center px-6 py-2 text-sm leading-6 text-gray-300 focus:outline-none focus:bg-gray-700 hover:text-white hover:bg-gray-700 transition ease-in-out duration-150",attrs:{href:t.route("logout")}},[a("svg",{staticClass:"w-4 h-4 fill-current mr-3",attrs:{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0zm2 0a8 8 0 1 0 16 0 8 8 0 0 0-16 0zm8-2h5v4h-5v3l-5-5 5-5v3z"}})]),t._v("\n\n            Logout\n        ")])],1)])}),[],!1,null,null,null);s.default=i.exports},ftt6:function(t,s,a){"use strict";a.r(s);var e={components:{VModal:a("iOOf").a},props:{subscriptionId:{type:Number,required:!0}},data:function(){return{subscription:null}},methods:{show:function(){var t=this;axios.get(route("admin:subscriptions.show",{subscription:this.subscriptionId})).then((function(s){t.subscription=s.data})),this.$refs.modal.show()},hide:function(){this.$refs.modal.hide()}}},i=a("KHd+"),n=Object(i.a)(e,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("v-modal",{ref:"modal"},[a("div",{staticClass:"bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:max-w-lg sm:w-full"},[a("div",{staticClass:"hidden sm:block absolute top-0 right-0 pt-6 pr-6",on:{click:function(s){return t.hide()}}},[a("button",{staticClass:"text-gray-400 hover:text-gray-500 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",attrs:{type:"button"}},[a("svg",{staticClass:"h-6 w-6",attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[a("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])])]),t._v(" "),a("div",{staticClass:"p-6"},[a("h3",{staticClass:"font-medium text-lg"},[t._v("Subscription Details")])]),t._v(" "),a("div",{staticClass:"p-6"},[a("dl",{staticClass:"grid grid-cols-1 col-gap-4 row-gap-8 sm:grid-cols-2"},[a("div",{staticClass:"sm:col-span-1"},[a("dt",{staticClass:"text-sm leading-5 font-medium text-gray-500"},[t._v("\n                        ID\n                    ")]),t._v(" "),a("dd",{staticClass:"mt-1 text-sm leading-5 text-gray-900"},[t.subscription?a("span",[t._v(t._s(t.subscription.id))]):a("span",[t._v("-")])])]),t._v(" "),a("div",{staticClass:"sm:col-span-1"},[a("dt",{staticClass:"text-sm leading-5 font-medium text-gray-500"},[t._v("\n                        Customer\n                    ")]),t._v(" "),a("dd",{staticClass:"mt-1 text-sm leading-5 text-gray-900"},[t.subscription?a("span",[t._v(t._s(t.subscription.customer_name))]):a("span",[t._v("-")])])]),t._v(" "),a("div",{staticClass:"sm:col-span-1"},[a("dt",{staticClass:"text-sm leading-5 font-medium text-gray-500"},[t._v("\n                        Plan\n                    ")]),t._v(" "),a("dd",{staticClass:"mt-1 text-sm leading-5 text-gray-900"},[t.subscription?a("span",[t._v(t._s(t.subscription.plan))]):a("span",[t._v("-")])])]),t._v(" "),a("div",{staticClass:"sm:col-span-1"},[a("dt",{staticClass:"text-sm leading-5 font-medium text-gray-500"},[t._v("\n                        Status\n                    ")]),t._v(" "),a("dd",{staticClass:"mt-1 text-sm leading-5 text-gray-900"},[t.subscription&&1===t.subscription.status?a("span",{staticClass:"badge badge-green"},[t._v("Active")]):t.subscription&&2===t.subscription.status?a("span",{staticClass:"badge badge-yellow"},[t._v("Past Due")]):t.subscription&&3===t.subscription.status?a("span",{staticClass:"badge"},[t._v("Canceled")]):t.subscription&&4===t.subscription.status?a("span",{staticClass:"badge badge-red"},[t._v("Incomplete")]):a("span",[t._v("-")])])]),t._v(" "),a("div",{staticClass:"sm:col-span-1"},[a("dt",{staticClass:"text-sm leading-5 font-medium text-gray-500"},[t._v("\n                        Next Billing Cycle\n                    ")]),t._v(" "),a("dd",{staticClass:"mt-1 text-sm leading-5 text-gray-900"},[t.subscription?a("span",[t._v(t._s(t.subscription.next_billing_cycle))]):a("span",[t._v("-")])])]),t._v(" "),a("div",{staticClass:"sm:col-span-1"},[a("dt",{staticClass:"text-sm leading-5 font-medium text-gray-500"},[t._v("\n                        Latest Payment\n                    ")]),t._v(" "),a("dd",{staticClass:"mt-1 text-sm leading-5 text-gray-900"},[t.subscription?a("span",[t._v("$"+t._s(t.subscription.latest_payment))]):a("span",[t._v("-")])])])]),t._v(" "),a("div",{staticClass:"mt-10"},[t.subscription?a("a",{staticClass:"btn btn-block btn-indigo",attrs:{href:t.subscription.link,target:"_blank"}},[t._v("\n                    More Details\n                ")]):t._e()])])])])}),[],!1,null,null,null);s.default=n.exports},yQXo:function(t,s,a){"use strict";a.r(s);var e={components:{VNavMenu:a("fDts").default},data:function(){return{sidebarOpen:!1}}},i=a("KHd+"),n=Object(i.a)(e,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"h-screen flex overflow-hidden bg-gray-100",attrs:{id:"app"}},[a("div",{staticClass:"md:hidden"},[a("div",{staticClass:"fixed inset-0 z-30 bg-gray-600 opacity-0 pointer-events-none transition-opacity ease-linear duration-300",class:{"opacity-75 pointer-events-auto":t.sidebarOpen,"opacity-0 pointer-events-none":!t.sidebarOpen},on:{click:function(s){t.sidebarOpen=!1}}}),t._v(" "),a("div",{staticClass:"fixed inset-y-0 left-0 flex flex-col z-40 max-w-xs w-full bg-gray-800 transform ease-in-out duration-300 ",class:{"translate-x-0":t.sidebarOpen,"-translate-x-full":!t.sidebarOpen}},[a("div",{staticClass:"absolute top-0 right-0 -mr-14 p-1"},[t.sidebarOpen?a("button",{staticClass:"flex items-center justify-center h-12 w-12 rounded-full focus:outline-none focus:bg-gray-600",on:{click:function(s){t.sidebarOpen=!1}}},[a("svg",{staticClass:"h-6 w-6 text-white",attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[a("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])]):t._e()]),t._v(" "),a("v-nav-menu")],1)]),t._v(" "),a("div",{staticClass:"hidden md:flex md:flex-shrink-0"},[a("div",{staticClass:"flex flex-col w-64 bg-gray-800"},[a("v-nav-menu")],1)]),t._v(" "),a("div",{staticClass:"flex flex-col w-0 flex-1 overflow-hidden"},[a("div",{staticClass:"md:hidden pl-1 pt-1 sm:pl-3 sm:pt-3"},[a("button",{staticClass:"-ml-0.5 -mt-0.5 h-12 w-12 inline-flex items-center justify-center rounded-md text-gray-500 hover:text-gray-900 focus:outline-none focus:bg-gray-200 transition ease-in-out duration-150",on:{click:function(s){s.stopPropagation(),t.sidebarOpen=!0}}},[a("svg",{staticClass:"h-6 w-6",attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[a("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}})])])]),t._v(" "),a("main",{staticClass:"flex flex-col flex-1 relative z-0 overflow-y-auto pt-6 focus:outline-none",attrs:{tabindex:"0"}},[a("div",{staticClass:"flex items-center px-4 mb-4 sm:px-6 lg:px-8"},[t._t("header")],2),t._v(" "),t._t("default")],2)])])}),[],!1,null,null,null);s.default=n.exports},yr4q:function(t,s,a){"use strict";a.r(s);var e=a("yQXo"),i=a("ftt6"),n=a("3+qG"),r=a("45DL"),l={metaInfo:{title:"Subscriptions"},components:{VAppDefaultLayout:e.default,VEmpty:n.default,VPagination:r.a},methods:{showSubscriptionModal:function(t){this.$modal(i.default,{subscriptionId:t.id})}}},o=a("KHd+"),c=Object(o.a)(l,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("v-app-default-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[a("h1",{staticClass:"text-2xl font-semibold text-gray-900"},[t._v("Subscriptions")])]},proxy:!0}])},[t._v(" "),[a("div",{staticClass:"container mx-auto px-4 sm:px-6 md:px-8 py-4"},[t.$page.subscriptions.data.length>0?a("div",{staticClass:"align-middle inline-block min-w-full shadow overflow-hidden sm:rounded-lg border-gray-200"},[a("table",{staticClass:"min-w-full"},[a("thead",[a("tr",[a("th",{staticClass:"pl-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider"},[t._v("Customer")]),t._v(" "),a("th",{staticClass:"pl-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider"},[t._v("Plan")]),t._v(" "),a("th",{staticClass:"pl-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider"},[t._v("Trial End")]),t._v(" "),a("th",{staticClass:"pl-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider"},[t._v("Ends at")]),t._v(" "),a("th",{staticClass:"pl-6 py-3 border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-gray-500 uppercase tracking-wider"},[t._v("Status")])])]),t._v(" "),a("tbody",t._l(t.$page.subscriptions.data,(function(s){return a("tr",{staticClass:"bg-white hover:bg-gray-100 transition duration-150 ease-in-out cursor-pointer",on:{click:function(a){return t.showSubscriptionModal(s)}}},[a("td",{staticClass:"px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500 font-medium"},[t._v("\n                            "+t._s(s.customer)+"\n                        ")]),t._v(" "),a("td",{staticClass:"px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500"},[t._v("\n                            "+t._s(s.plan)+"\n                        ")]),t._v(" "),a("td",{staticClass:"px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500"},[s.trial_end?a("span",[t._v(t._s(s.trial_end))]):a("span",[t._v("-")])]),t._v(" "),a("td",{staticClass:"px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500"},[s.ends_at?a("span",[t._v(t._s(s.ends_at))]):a("span",[t._v("-")])]),t._v(" "),a("td",{staticClass:"px-6 py-4 whitespace-no-wrap text-sm leading-5 text-gray-500"},[1===s.status?a("span",{staticClass:"badge badge-green"},[t._v("Active")]):2===s.status?a("span",{staticClass:"badge badge-yellow"},[t._v("Past Due")]):3===s.status?a("span",{staticClass:"badge"},[t._v("Canceled")]):4===s.status?a("span",{staticClass:"badge badge-red"},[t._v("Incomplete")]):t._e()])])})),0)]),t._v(" "),a("v-pagination",{attrs:{links:t.$page.subscriptions.links}})],1):a("div",{staticClass:"flex justify-center"},[a("v-empty",{attrs:{message:"There are no subscriptions data to show here"}})],1)])]],2)}),[],!1,null,null,null);s.default=c.exports}}]);
  //# sourceMappingURL=16.js.map?id=e4f94ffeb7d9e2e2c61f