PageSourceSearch

https://app.codeholt.com/build/assets/Show-D0KEmJyc.js

js codeholt.com collected 2026-10-02 12:42:33 UTC 7,955 bytes, 1 lines download raw bytes

1import{_ as S}from"./FlashMessage.vue_vue_type_script_setup_true_lang-Cp6okpoS.js";import{_ as N}from"./AdminLayout.vue_vue_type_script_setup_true_lang-CvDMQsLC.js";import{d as L,c as o,o as a,a as i,u as b,m as C,w as u,b as e,t as r,g as m,F as l,h as c,n as x,P as h,j as _}from"./app-cnenzQKu.js";import"./createLucideIcon-8o8vSG1j.js";import"./AppSidebarHeader.vue_vue_type_script_setup_true_lang-CcFUS68C.js";import"./AppLogoIcon.vue_vue_type_script_setup_true_lang-4pDBj8rq.js";import"./utils-C4munMps.js";import"./Button.vue_vue_type_script_setup_true_lang-BHzsabam.js";import"./x-DxLXF4YL.js";import"./index-BBbWUSda.js";import"./package-DTcqgC5K.js";import"./shopping-cart-CPnf_Ocw.js";const P={class:"flex flex-col gap-4 p-4 md:gap-6 md:p-6"},V={class:"rounded-xl border border-sidebar-border/70 bg-white p-4 dark:border-sidebar-border dark:bg-sidebar md:p-6"},B={class:"text-xl font-semibold"},F={class:"mt-1 text-sm text-muted-foreground"},z={class:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground"},E={class:"overflow-hidden rounded-xl border border-sidebar-border/70 bg-white dark:border-sidebar-border dark:bg-sidebar"},$={class:"overflow-x-auto"},j={class:"w-full min-w-[600px] text-sm"},A={class:"divide-y divide-sidebar-border/30 dark:divide-sidebar-border/30"},I={class:"px-4 py-2 text-muted-foreground"},J={class:"px-4 py-2"},K={class:"px-4 py-2"},O={class:"px-4 py-2"},R={class:"px-4 py-2 text-muted-foreground"},T={class:"px-4 py-2"},U={key:0},q={class:"overflow-hidden rounded-xl border border-sidebar-border/70 bg-white dark:border-sidebar-border dark:bg-sidebar"},G={class:"overflow-x-auto"},H={class:"w-full min-w-[560px] text-sm"},M={class:"divide-y divide-sidebar-border/30 dark:divide-sidebar-border/30"},Q={class:"px-4 py-2 font-mono text-xs"},W={class:"px-4 py-2"},X={class:"px-4 py-2"},Y={class:"px-4 py-2 text-muted-foreground"},Z={class:"px-4 py-2"},ee={key:0},te={class:"overflow-hidden rounded-xl border border-sidebar-border/70 bg-white dark:border-sidebar-border dark:bg-sidebar"},se={class:"overflow-x-auto"},re={class:"w-full min-w-[560px] text-sm"},de={class:"divide-y divide-sidebar-border/30 dark:divide-sidebar-border/30"},oe={class:"px-4 py-2"},ae={class:"px-4 py-2 text-muted-foreground"},ne={class:"px-4 py-2 capitalize text-muted-foreground"},ie={class:"px-4 py-2"},le={class:"px-4 py-2 text-muted-foreground"},pe={key:0},ve=L({__name:"Show",props:{customer:{},orders:{},licenses:{},subscriptions:{}},setup(k){const w=k,v=[{title:"Dashboard",href:route("dashboard")},{title:"Customers",href:route("admin.customers.index")},{title:w.customer.name,href:"#"}],p=d=>({active:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400",completed:"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400",suspended:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400",pending:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400",expired:"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400",failed:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400",refunded:"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400",cancelled:"bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400",past_due:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"})[d]??"bg-gray-100",D=(d,s)=>new Intl.NumberFormat("en-US",{style:"currency",currency:s}).format(Number(d));return(d,s)=>(a(),o(l,null,[i(b(C),{title:d.customer.name},null,8,["title"]),i(N,{breadcrumbs:v},{default:u(()=>[i(S),e("div",P,[e("div",V,[e("h1",B,r(d.customer.name),1),e("p",F,r(d.customer.email),1),e("div",z,[e("span",null,r(d.orders.length)+" order"+r(d.orders.length!==1?"s":""),1),e("span",null,r(d.licenses.length)+" license"+r(d.licenses.length!==1?"s":""),1),e("span",null,r(d.subscriptions.length)+" subscription"+r(d.subscriptions.length!==1?"s":""),1),e("span",null,"Joined "+r(new Date(d.customer.created_at).toLocaleDateString()),1)])]),e("div",E,[s[3]||(s[3]=e("div",{class:"border-b border-sidebar-border/70 px-4 py-4 dark:border-sidebar-border md:px-6"},[e("h2",{class:"font-semibold"},"Orders")],-1)),e("div",$,[e("table",j,[s[2]||(s[2]=e("thead",null,[e("tr",{class:"border-b border-sidebar-border/40 bg-muted/20 text-left dark:border-sidebar-border"},[e("th",{class:"px-4 py-3 font-medium"},"#"),e("th",{class:"px-4 py-3 font-medium"},"Product"),e("th",{class:"px-4 py-3 font-medium"},"Amount"),e("th",{class:"px-4 py-3 font-medium"},"Status"),e("th",{class:"px-4 py-3 font-medium"},"Date"),e("th",{class:"px-4 py-3 font-medium"})])],-1)),e("tbody",A,[(a(!0),o(l,null,c(d.orders,t=>{var n;return a(),o("tr",{key:t.id,class:"hover:bg-muted/10"},[e("td",I,"#"+r(t.id),1),e("td",J,r(((n=t.product)==null?void 0:n.name)??"—"),1),e("td",K,r(D(t.amount,t.currency)),1),e("td",O,[e("span",{class:x(["rounded-full px-2 py-0.5 text-xs font-medium",p(t.status)])},r(t.status),3)]),e("td",R,r(new Date(t.created_at).toLocaleDateString()),1),e("td",T,[i(b(h),{href:d.route("orders.show",{order:t.id}),class:"text-primary hover:underline"},{default:u(()=>s[0]||(s[0]=[_("View")])),_:2},1032,["href"])])])}),128)),d.orders.length?m("",!0):(a(),o("tr",U,s[1]||(s[1]=[e("td",{colspan:"6",class:"px-4 py-6 text-center text-muted-foreground"}
1,"No orders.",-1)])))])])])]),e("div",q,[s[7]||(s[7]=e("div",{class:"border-b border-sidebar-border/70 px-4 py-4 dark:border-sidebar-border md:px-6"},[e("h2",{class:"font-semibold"},"Licenses")],-1)),e("div",G,[e("table",H,[s[6]||(s[6]=e("thead",null,[e("tr",{class:"border-b border-sidebar-border/40 bg-muted/20 text-left dark:border-sidebar-border"},[e("th",{class:"px-4 py-3 font-medium"},"License Key"),e("th",{class:"px-4 py-3 font-medium"},"Product"),e("th",{class:"px-4 py-3 font-medium"},"Status"),e("th",{class:"px-4 py-3 font-medium"},"Expires"),e("th",{class:"px-4 py-3 font-medium"})])],-1)),e("tbody",M,[(a(!0),o(l,null,c(d.licenses,t=>{var n;return a(),o("tr",{key:t.id,class:"hover:bg-muted/10"},[e("td",Q,r(t.license_key),1),e("td",W,r(((n=t.product)==null?void 0:n.name)??"—"),1),e("td",X,[e("span",{class:x(["rounded-full px-2 py-0.5 text-xs font-medium",p(t.status)])},r(t.status),3)]),e("td",Y,r(t.expires_at?new Date(t.expires_at).toLocaleDateString():"Lifetime"),1),e("td",Z,[i(b(h),{href:d.route("licenses.show",{license:t.id}),class:"text-primary hover:underline"},{default:u(()=>s[4]||(s[4]=[_("View")])),_:2},1032,["href"])])])}),128)),d.licenses.length?m("",!0):(a(),o("tr",ee,s[5]||(s[5]=[e("td",{colspan:"5",class:"px-4 py-6 text-center text-muted-foreground"},"No licenses.",-1)])))])])])]),e("div",te,[s[10]||(s[10]=e("div",{class:"border-b border-sidebar-border/70 px-4 py-4 dark:border-sidebar-border md:px-6"},[e("h2",{class:"font-semibold"},"Subscriptions")],-1)),e("div",se,[e("table",re,[s[9]||(s[9]=e("thead",null,[e("tr",{class:"border-b border-sidebar-border/40 bg-muted/20 text-left dark:border-sidebar-border"},[e("th",{class:"px-4 py-3 font-medium"},"Product"),e("th",{class:"px-4 py-3 font-medium"},"Plan"),e("th",{class:"px-4 py-3 font-medium"},"Billing"),e("th",{class:"px-4 py-3 font-medium"},"Status"),e("th",{class:"px-4 py-3 font-medium"},"Renews")])],-1)),e("tbody",de,[(a(!0),o(l,null,c(d.subscriptions,t=>{var n,y,g,f;return a(),o("tr",{key:t.id,class:"hover:bg-muted/10"},[e("td",oe,r(((y=(n=t.plan)==null?void 0:n.product)==null?void 0:y.name)??"—"),1),e("td",ae,r(((g=t.plan)==null?void 0:g.name)??"—"),1),e("td",ne,r(((f=t.plan)==null?void 0:f.billing_cycle)??"—"),1),e("td",ie,[e("span",{class:x(["rounded-full px-2 py-0.5 text-xs font-medium",p(t.status)])},r(t.status.replace("_"," ")),3)]),e("td",le,r(t.renews_at?new Date(t.renews_at).toLocaleDateString():"—"),1)])}),128)),d.subscriptions.length?m("",!0):(a(),o("tr",pe,s[8]||(s[8]=[e("td",{colspan:"5",class:"px-4 py-6 text-center text-muted-foreground"},"No subscriptions.",-1)])))])])])])])]),_:1})],64))}});export{ve as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.