PageSourceSearch

https://accounts.myciba.org/build/assets/Index-KipbKc5D.js

js myciba.org collected 2026-10-06 09:01:17 UTC 7,613 bytes, 1 lines download raw bytes

1import{i as f,p as I,c as b,w as l,o as s,a as t,g as u,t as a,q as h,v as M,s as N,x as j,d,F as k,r as v,f as C,l as L,n as S,j as B,k as D}from"./app-BILMRQ8k.js";import{A as P}from"./AdminLayout-q6rhfm04.js";import{_ as y}from"./Card-DoLaEt1U.js";/* empty css            */import"./useToast-aB3Lru0D.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./NotificationDropdown-CF5anDhQ.js";import"./ToastContainer-Do8oHR8l.js";import"./useFcmNotifications-v3SHtSf8.js";const T={class:"py-6"},V={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},A={class:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"},F={class:"flex items-center justify-between"},O={class:"text-2xl font-bold text-gray-900 dark:text-white"},q={class:"flex flex-col md:flex-row gap-4"},z={class:"flex-1"},H={class:"w-full md:w-32"},K={key:0,class:"py-8 text-center text-sm text-gray-500 dark:text-gray-400"},R={key:1,class:"overflow-x-auto"},U={class:"min-w-full divide-y divide-gray-200 dark:divide-gray-700"},E={class:"bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700"},$={class:"px-3 py-2 text-sm font-medium text-gray-900 dark:text-white"},G={class:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300"},J=["href"],Q={key:1,class:"text-gray-400"},W={class:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300"},X={class:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300"},Y={class:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300"},Z={class:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300"},tt={class:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300"},et={class:"px-3 py-2 text-sm text-gray-600 dark:text-gray-300"},rt={class:"px-3 py-2"},at=["href"],st={key:2,class:"mt-4 flex items-center justify-between border-t border-gray-200 dark:border-gray-700 pt-4"},ot={class:"text-sm text-gray-500 dark:text-gray-400"},nt={class:"flex gap-2"},mt={__name:"Index",props:{transactions:{type:Object,required:!0},filters:{type:Object,default:()=>({})},stats:{type:Object,default:()=>({})}},setup(n){const i=n,c=f(i.filters.search||""),x=f(i.filters.per_page??25),g=()=>{D.get(route("vue.orphan-invoice-transactions.index"),{search:c.value,per_page:x.value},{preserveState:!0,preserveScroll:!0})},_=o=>o==null?"0.00":(parseFloat(o)/100).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","),w=I(()=>i.transactions.links?i.transactions.links.filter((o,r)=>{if(r===0||r===i.transactions.links.length-1||o.active)return!0;const e=parseInt(o.label);if(isNaN(e))return!0;const p=i.transactions.current_page;return Math.abs(e-p)<=2}):[]);return(o,r)=>(s(),b(P,null,{default:l(()=>[t("div",T,[t("div",V,[r[8]||(r[8]=t("div",{class:"mb-6"},[t("h1",{class:"text-2xl font-semibold text-gray-900 dark:text-white"},"Orphan Invoice Transactions"),t("p",{class:"mt-1 text-sm text-gray-600 dark:text-gray-400"}," Invoice transactions where proforma_invoice_id is null or the linked proforma invoice does not exist ")],-1)),t("div",A,[u(y,null,{default:l(()=>[t("div",F,[t("div",null,[r[2]||(r[2]=t("p",{class:"text-sm font-medium text-gray-600 dark:text-gray-400"},"Orphan Invoice Transactions",-1)),t("p",O,a(n.stats.total_orphan_invoice_transactions),1)]),r[3]||(r[3]=t("div",{class:"p-3 bg-amber-100 dark:bg-amber-900 rounded-full"},[t("svg",{class:"w-6 h-6 text-amber-600 dark:text-amber-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1))])]),_:1})]),u(y,{class:"mb-6"},{default:l(()=>[t("div",q,[t("div",z,[r[4]||(r[4]=t("label",{for:"search",class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Search",-1)),h(t("input",{id:"search","onUpdate:modelValue":r[0]||(r[0]=e=>c.value=e),type:"text",placeholder:"Search by reference, ID, m_code, or member name...",class:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg shadow-sm focus:ring-ciba-green focus:border-ciba-green dark:bg-gray-700 dark:text-white",onKeyup:N(g,["enter"])},null,544),[[M,c.value]])]),t("div",H,[r[6]||(r[6]=t("label",{for:"per_page",class:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1"},"Per Page",-1)),h(t("select",{id:"per_page","onUpdate:modelValue":r[1]||(r[1]=e=>x.value=e),class:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg shadow-sm focus:ring-ciba-green focus:border-ciba-green dark:bg-gray-700 dark:text-white",onCh
1ange:g},r[5]||(r[5]=[t("option",{value:10},"10",-1),t("option",{value:25},"25",-1),t("option",{value:50},"50",-1),t("option",{value:100},"100",-1)]),544),[[j,x.value]])]),t("div",{class:"flex items-end"},[t("button",{type:"button",class:"px-4 py-2 bg-ciba-green text-black rounded-lg hover:bg-ciba-green-dark transition-colors",onClick:g}," Apply ")])])]),_:1}),u(y,null,{default:l(()=>[n.transactions.data.length===0?(s(),d("div",K," No orphan invoice transactions found. ")):(s(),d("div",R,[t("table",U,[r[7]||(r[7]=t("thead",{class:"bg-gray-50 dark:bg-gray-900"},[t("tr",null,[t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"ID"),t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"Member"),t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"Reference"),t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"Proforma Invoice ID"),t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"Proforma Invoice Number"),t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"Transaction Date"),t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"Amount (R)"),t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"Created"),t("th",{class:"px-3 py-2 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase"},"Actions")])],-1)),t("tbody",E,[(s(!0),d(k,null,v(n.transactions.data,(e,p)=>{var m;return s(),d("tr",{key:(e==null?void 0:e.id)??p,class:"hover:bg-gray-50 dark:hover:bg-gray-700/50"},[t("td",$,a(e.id),1),t("td",G,[e.member?(s(),d("a",{key:0,href:o.route("vue.members.show",e.member.id),class:"text-ciba-green hover:underline",target:"_blank"},a(e.member.m_code)+" – "+a(e.member.full_name),9,J)):(s(),d("span",Q,"–"))]),t("td",W,a(e.reference_number||"–"),1),t("td",X,a(e.proforma_invoice_id??"–"),1),t("td",Y,a(((m=e.proforma_invoice)==null?void 0:m.invoice_number)??"–"),1),t("td",Z,a(e.transaction_date||"–"),1),t("td",tt,a(_(e.amount)),1),t("td",et,a(e.created_at||"–"),1),t("td",rt,[t("a",{href:o.route("vue.transactions.show",e.id),class:"text-ciba-green hover:underline text-sm",target:"_blank"}," View transaction ",8,at)])])}),128))])])])),n.transactions.last_page>1?(s(),d("div",st,[t("div",ot," Showing "+a(n.transactions.from)+" to "+a(n.transactions.to)+" of "+a(n.transactions.total)+" results ",1),t("div",nt,[(s(!0),d(k,null,v(w.value,e=>(s(),b(C(L),{key:e.label,href:e.url||"#",class:S(["px-3 py-1 rounded text-sm",e.active?"bg-ciba-green text-black":e.url?"bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-600":"bg-gray-100 dark:bg-gray-700 text-gray-400 dark:text-gray-500 cursor-not-allowed"]),innerHTML:e.label},null,8,["href","class","innerHTML"]))),128))])])):B("",!0)]),_:1})])])]),_:1}))}};export{mt 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.