1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[446],{3550:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/preventive-orders",function(){return s(20958)}])},20958:function(e,t,s){"use strict";s.r(t);var r=s(85893),a=s(67294),n=s(95577);s(11163);var l=s(91959),i=s(9008),c=s.n(i),d=s(67421),o=s(60682),x=s(41664),h=s.n(x);t.default=()=>{let e=(0,a.useContext)(o.Z),{t}=(0,d.$G)(),[s,i]=(0,a.useState)([]),[x,m]=(0,a.useState)(1),[u,j]=(0,a.useState)(0),b=async()=>{try{let e=await fetch("".concat("https://puneruralapi.dreamcaredevelopers.com","/api/records-by-tag?tag=preventive_orders&page=").concat(x),{method:"GET"}),t=await e.json();t.records&&(i(t.records),j(t.totalPages))}catch(e){}};(0,a.useEffect)(()=>{b()},[x]);let p=e=>{m(e)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(c(),{children:[(0,r.jsx)("meta",{charSet:"UTF-8"}),(0,r.jsx)("link",{rel:"icon",href:"/logo-new.jpg"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,r.jsx)("title",{children:"Preventive Orders"})]}),(0,r.jsxs)("main",{className:"min-h-screen",children:[(0,r.jsx)(n.Z,{}),(0,r.jsx)("h1",{className:"text-center text-4xl text-orange-400 mt-20",children:t("Preventive Order")}),(0,r.jsx)("div",{className:"w-28 mt-5 mb-5 border-b border-orange-400 mx-auto"}),(0,r.jsx)("div",{className:"overflow-x-auto max-w-4xl mx-auto my-10",children:(0,r.jsxs)("table",{className:"w-full min-w-[800px]",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"flex flex-row p-2 py-3 border bg-slate-200",children:[(0,r.jsxs)("th",{className:"w-2/12 text-start",children:[" ",t("date")]}),(0,r.jsxs)("th",{className:"w-9/12 text-start",children:[" ",t("title")]}),(0,r.jsxs)("th",{className:"w-1/12 text-start",children:[" ",t("info")]})]})}),(0,r.jsx)("tbody",{children:s&&s.map(t=>(0,r.jsxs)("tr",{className:"flex flex-row p-2 py-3 border border-t-0",children:[(0,r.jsx)("td",{className:"w-2/12 text-start",children:t.date}),(0,r.jsxs)("td",{className:"w-9/12 text-start",children:["en"===e.lang&&(0,r.jsx)(r.Fragment,{children:t.title}),"mr"===e.lang&&(0,r.jsx)(r.Fragment,{children:t.titleInMarathi})]}),(0,r.jsx)("td",{className:"w-1/12 text-start",children:(0,r.jsx)(h(),{href:t.pdflink,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:"/pdf.svg",className:"w-8 h-8",alt:"pdf"})})})]},t._id))})]})}),s.length>0&&(0,r.jsxs)("div",{className:"mt-4 flex justify-center gap-2 items-center mx-auto",children:[(0,r.jsx)("button",{onClick:()=>p(x-1),disabled:1===x,className:"px-4 py-1 bg-blue-400 text-white rounded disabled:bg-gray-300 hover:bg-blue-600 transition-colors",children:"Previous"}),(0,r.jsxs)("span",{className:"text-orange-400",children:["Page ",x," of ",u]}),(0,r.jsx)("button",{onClick:()=>p(x+1),disabled:x===u,className:"px-4 py-1 bg-blue-400 text-white rounded disabled:bg-gray-300 hover:bg-blue-600 transition-colors",children:"Next"})]})]}),(0,r.jsx)(l.Z,{})]})}}},function(e){e.O(0,[3874,9866,1228,3996,4141,3920,5675,6636,447,2888,9774,179],function(){return e(e.s=3550)}),_N_E=e.O()}]);
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.