1import{d as b,o,c as n,f as p,u,k as w,w as v,a as t,t as a,F as c,r as g,n as m,h as k,l as D,e as L}from"./app-BIP_zfhU.js";import{A as C}from"./AdminLayout-C7Jp70om.js";/* empty css */import"./Snackbar-ChpvL8ve.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={class:"bg-white rounded-lg shadow-sm border border-gray-200"},B={class:"px-6 py-4 border-b border-gray-200"},E={class:"text-xl font-semibold text-gray-900 uppercase"},F={class:"px-6 py-4"},$={class:"overflow-x-auto -mx-6 sm:mx-0"},A={class:"inline-block min-w-full align-middle sm:px-0"},I={class:"min-w-full divide-y divide-gray-200"},M={class:"bg-white divide-y divide-gray-200"},S={class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-700"},U={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-900"},V={class:"px-6 py-4 whitespace-nowrap text-sm"},H={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-900"},P={class:"flex flex-col"},T={class:"font-medium"},j={class:"text-xs text-gray-500"},z={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},R={class:"flex flex-col"},q={class:"text-xs text-gray-400"},G={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},J={key:0,class:"mt-6 px-6"},K={class:"flex items-center justify-end space-x-2"},Z=b({__name:"Index",props:{payments:{}},setup(i){const x=i,y=()=>{const{current_page:s,per_page:r,total:e}=x.payments,l=(s-1)*r+1,f=Math.min((s-1)*r+x.payments.data.length,e);return`[${l}-${f} von ${e}]`},h=s=>s?new Date(s).toLocaleDateString("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):"-",d=s=>s==null?"-":new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(s),_=s=>{switch(s){case"success":return"bg-green-100 text-green-800";case"error":return"bg-red-100 text-red-800";default:return"bg-gray-100 text-gray-800"}};return(s,r)=>(o(),n(c,null,[p(u(w),{title:"Payment Logs"}),p(C,null,{default:v(()=>[t("div",N,[t("div",B,[t("h1",E," Payment Logs "+a(y()),1)]),t("div",F,[t("div",$,[t("div",A,[t("table",I,[r[0]||(r[0]=t("thead",{class:"bg-gray-50 border-b border-gray-200"},[t("tr",null,[t("th",{class:"px-6 py-3 text-left text-xs font-semibold text-gray-700 uppercase tracking-wider"},"#"),t("th",{class:"px-6 py-3 text-left text-xs font-semibold text-gray-700 uppercase tracking-wider"}," User "),t("th",{class:"px-6 py-3 text-left text-xs font-semibold text-gray-700 uppercase tracking-wider"}," Status "),t("th",{class:"px-6 py-3 text-left text-xs font-semibold text-gray-700 uppercase tracking-wider"}," Amount "),t("th",{class:"px-6 py-3 text-left text-xs font-semibold text-gray-700 uppercase tracking-wider"}," Fee "),t("th",{class:"px-6 py-3 text-left text-xs font-semibold text-gray-700 uppercase tracking-wider"}," Date ")])],-1)),t("tbody",M,[(o(!0),n(c,null,g(i.payments.data,e=>{var l;return o(),n("tr",{key:e.id,class:"hover:bg-gray-50"},[t("td",S,a(e.id),1),t("td",U,a(((l=e.user)==null?void 0:l.email)||`User #${e.user_id}`),1),t("td",V,[t("span",{class:m(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",_(e.status)])},a(e.status),3)]),t("td",H,[t("div",P,[t("span",T,a(d(e.total_amount_brutto)),1),t("span",j,"Netto: "+a(d(e.total_amount_netto)),1)])]),t("td",z,[t("div",R,[t("span",null,a(d(e.fee_brutto)),1),t("span",q,"Netto: "+a(d(e.fee_netto)),1)])]),t("td",G,a(h(e.created_at)),1)])}),128))])])])]),i.payments.last_page>1?(o(),n("div",J,[t("div",K,[(o(!0),n(c,null,g(i.payments.links,e=>(o(),k(u(D),{key:e.label,href:e.url||"#",class:m(["px-3 py-2 text-sm font-medium rounded-md transition-colors",e.active?"bg-primary text-gray-900 shadow-sm":e.url?"bg-white text-gray-700 hover:bg-gray-50 border border-gray-300 shadow-sm hover:shadow":"bg-gray-100 text-gray-400 cursor-not-allowed"]),innerHTML:e.label},null,8,["href","class","innerHTML"]))),128))])])):L("",!0)])])]),_:1})],64))}});export{Z 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.