import{a,j as e,y as n}from"./BulkImageUpload-DGPbX05r.js";import{A as c}from"./Authenticated-DQno4VYw.js";import{P as d}from"./PageTitle-feHaMeNG.js";import{P as m}from"./Panel-CCKAj23D.js";import h from"./ActionColum-Mh-BzMzm.js";import"./bootstrap.esm-e_F80uXB.js";const p=t=>{const[i,x]=a.useState(t.requests.data);a.useState(t.requests.links);const l=(s,r)=>()=>{n.post(route("clime.action"),{action:r,id:i[s].id},{onSuccess:()=>{},preserveState:!1})};return e.jsxs(c,{auth:t.auth,errors:t.errors,current:t.current,children:[e.jsx(d,{title:"View Claim Request",path:"",pathurl:""}),e.jsx(m,{title:"View Claim Request",md:"12",children:e.jsx("div",{className:"table-responsive-md",children:e.jsx("table",{className:"table mb-0",children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("th",{className:"text-center",children:"#"}),e.jsx("th",{children:"Image"}),e.jsx("th",{children:"Business Name"}),e.jsx("th",{children:"Requested By"}),e.jsx("th",{children:"User Email"}),e.jsx("th",{children:"User Mobile"}),e.jsx("th",{className:"text-center",children:"Action"})]}),i&&i.map((s,r)=>e.jsxs("tr",{children:[e.jsx("td",{className:"center",children:r+t.requests.from}),e.jsx("td",{style:{maxWidth:"80px"},children:e.jsx("img",{style:{width:"50px"},src:s.business_image,alt:""})}),e.jsx("td",{children:s.business_name}),e.jsxs("td",{children:[s.user_name,"  "]}),e.jsx("td",{children:s.user_email}),e.jsx("td",{children:s.user_mobile}),e.jsx("td",{className:"text-center",children:e.jsx(h,{status:s.status,indx:r,takeAction:l})})]},r))]})})})})]})};export{p as default};
