(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8447],{54369:(e,s,l)=>{Promise.resolve().then(l.bind(l,93259))},93259:(e,s,l)=>{"use strict";l.r(s),l.d(s,{default:()=>c});var t=l(95155),a=l(9625);let r=[{policyNo:"0101",name:"MR. MD. ZAHIDUL ISLAM",mobileNumber:"01926103041",sumInsure:"4684.0000",totalPremium:"4684.0000",riskDate:"25 Feb 2025",nddDate:"25 Feb 2025",totalDueInstallment:"4",paidInstallment:"4",totalDue:"4684.0000"},{policyNo:"0101",name:"MD. JOSIM UDDIN",mobileNumber:"01926103041",sumInsure:"4684.0000",totalPremium:"4684.0000",riskDate:"25 Feb 2025",nddDate:"25 Feb 2025",totalDueInstallment:"4",paidInstallment:"4",totalDue:"4684.0000"}];function c(){return(0,t.jsx)(a.U,{title:"Policy Ledger",breadcrumbs:["Policy Holder Info","Policy Ledger"],children:(0,t.jsx)("div",{className:"bg-white rounded-lg shadow",children:(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b",children:[(0,t.jsx)("th",{className:"text-left p-4",children:"Policy No"}),(0,t.jsx)("th",{className:"text-left p-4",children:"Name"}),(0,t.jsx)("th",{className:"text-left p-4",children:"Mobile Number"}),(0,t.jsx)("th",{className:"text-left p-4",children:"Sum Insure"}),(0,t.jsx)("th",{className:"text-left p-4",children:"Total Premium"}),(0,t.jsx)("th",{className:"text-left p-4",children:"Risk Date"}),(0,t.jsx)("th",{className:"text-left p-4",children:"NDD Date"}),(0,t.jsx)("th",{className:"text-left p-4",children:"Total Due Installment"}),(0,t.jsx)("th",{className:"text-left p-4",children:"Paid Installment"}),(0,t.jsx)("th",{className:"text-left p-4",children:"Total Due"})]})}),(0,t.jsx)("tbody",{children:r.map((e,s)=>(0,t.jsxs)("tr",{className:s%2==0?"bg-white":"bg-gray-50",children:[(0,t.jsx)("td",{className:"p-4",children:e.policyNo}),(0,t.jsx)("td",{className:"p-4",children:e.name}),(0,t.jsx)("td",{className:"p-4",children:e.mobileNumber}),(0,t.jsx)("td",{className:"p-4",children:e.sumInsure}),(0,t.jsx)("td",{className:"p-4",children:e.totalPremium}),(0,t.jsx)("td",{className:"p-4",children:e.riskDate}),(0,t.jsx)("td",{className:"p-4",children:e.nddDate}),(0,t.jsx)("td",{className:"p-4",children:e.totalDueInstallment}),(0,t.jsx)("td",{className:"p-4",children:e.paidInstallment}),(0,t.jsx)("td",{className:"p-4",children:e.totalDue})]},s))})]})})})})}},53661:(e,s,l)=>{"use strict";l.d(s,{r:()=>n});var t=l(95155),a=l(76046),r=l(12115),c=l(83391);function n(e,s){return function(l){let n=(0,a.useRouter)(),{isAuthenticated:i,user:d}=(0,c.d4)(e=>e.auth);return((0,r.useEffect)(()=>{if(!i){n.replace("/login");return}(null==d?void 0:d.role)!==s&&n.replace("/login")},[i,d,n]),i&&(null==d?void 0:d.role)===s)?(0,t.jsx)(e,{...l}):null}}},9625:(e,s,l)=>{"use strict";l.d(s,{U:()=>n});var t=l(95155),a=l(53661),r=l(8368),c=l(73649);function n(e){let{children:s,title:l,breadcrumbs:a=[],className:n,actions:i}=e;return(0,t.jsx)(c.default,{userRole:"policy-holder",children:(0,t.jsxs)("div",{className:(0,r.cn)("p-6 space-y-6",n),children:[(0,t.jsx)("div",{className:"",children:(0,t.jsxs)("div",{className:"flex justify-between items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-[32px] font-medium text-gray-800 mb-2",children:l}),(0,t.jsxs)("div",{className:"text-gray-500 flex items-center gap-2",children:[(0,t.jsx)("span",{children:"Dashboard"}),a.map((e,s)=>(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-gray-400",children:"›"}),(0,t.jsx)("span",{className:s===a.length-1?"text-blue-600":"text-gray-500",children:e})]},s))]})]}),i&&(0,t.jsx)("div",{className:"flex gap-3",children:i})]})}),(0,t.jsx)("div",{children:s})]})})}(0,a.r)(n,"policy-holder")}},e=>{var s=s=>e(e.s=s);e.O(0,[9229,3391,8405,7970,1181,8173,2662,8993,4980,3649,8441,1517,7358],()=>s(54369)),_N_E=e.O()}]);