(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[216],{2577:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/attorney-panel/organization-users",function(){return a(1487)}])},7336:function(e,s,a){"use strict";a.d(s,{Z:function(){return d}});var t=a(5893),n=a(6089),r=a.n(n),i=a(7294),o=a(1664),l=a.n(o),c=a(1163);function d(e){var s=e.children,a=(0,c.useRouter)(),n=(0,i.useState)(!1),o=n[0];n[1];return(0,t.jsxs)("div",{style:{backgroundColor:"#f4f7fa",minHeight:"100vh",display:"flex",flexDirection:"column"},className:"jsx-3ee271f478679b1d",children:[(0,t.jsx)("div",{className:"jsx-3ee271f478679b1d container py-5 flex-grow-1",children:(0,t.jsxs)("div",{className:"jsx-3ee271f478679b1d row g-4 pt-5",children:[(0,t.jsx)("aside",{className:"jsx-3ee271f478679b1d "+"col-lg-3 ".concat(o?"d-block":"d-none d-lg-block"),children:(0,t.jsxs)("div",{className:"jsx-3ee271f478679b1d card border-0 shadow-sm rounded-4 overflow-hidden",children:[(0,t.jsxs)("div",{className:"jsx-3ee271f478679b1d p-4 text-center border-bottom bg-white",children:[(0,t.jsx)("div",{style:{width:"120px",height:"120px"},className:"jsx-3ee271f478679b1d mx-auto mb-3",children:(0,t.jsx)("img",{src:"/assets/images/attorney1.png",style:{objectFit:"cover",border:"4px solid #f8f9fa"},alt:"avatar",className:"jsx-3ee271f478679b1d rounded-circle shadow-sm w-100 h-100"})}),(0,t.jsx)("h5",{style:{color:"#002147"},className:"jsx-3ee271f478679b1d fw-bold mb-1",children:"Tasnia Sharin"}),(0,t.jsx)("p",{className:"jsx-3ee271f478679b1d text-muted mb-0 fs-6",children:"attorney@gmail.com"})]}),(0,t.jsx)("div",{className:"jsx-3ee271f478679b1d p-3 bg-white",children:(0,t.jsxs)("nav",{className:"jsx-3ee271f478679b1d nav flex-column sidebar-nav",children:[[{name:"Dashboard",icon:"bi-grid-fill",path:"/attorney-panel"},{name:"Appointments",icon:"bi-calendar-check",path:"/attorney-panel/appointments"},{name:"Client Management",icon:"bi-people-fill",path:"/attorney-panel/clients"},{name:"Case Details",icon:"bi-clock-history",path:"/attorney-panel/cases"},{name:"Messages",icon:"bi-chat-dots-fill",path:"/attorney-panel/messages"},{name:"Ticket Management",icon:"bi-ticket-perforated-fill",path:"/attorney-panel/tickets"},{name:"Edit Profile",icon:"bi-person-bounding-box",path:"/attorney-panel/profile"}].map((function(e,s){return(0,t.jsx)(l(),{href:e.path,children:(0,t.jsxs)("a",{className:"jsx-3ee271f478679b1d "+"nav-link ".concat(a.pathname===e.path?"active":""),children:[(0,t.jsx)("i",{className:"jsx-3ee271f478679b1d "+"bi ".concat(e.icon," me-3")})," ",e.name]})},s)})),(0,t.jsx)("div",{className:"jsx-3ee271f478679b1d mt-4 pt-4 border-top",children:(0,t.jsx)(l(),{href:"/logout",children:(0,t.jsxs)("a",{className:"jsx-3ee271f478679b1d nav-link text-danger fw-bold",children:[(0,t.jsx)("i",{className:"jsx-3ee271f478679b1d bi bi-box-arrow-right me-3"})," Logout"]})})})]})})]})}),(0,t.jsx)("main",{className:"jsx-3ee271f478679b1d col-lg-9",children:s})]})}),(0,t.jsx)(r(),{id:"3ee271f478679b1d",children:".sidebar-nav.jsx-3ee271f478679b1d .nav-link.jsx-3ee271f478679b1d{color:#444!important;font-size:17px;padding:12px 20px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;-webkit-transition:.3s;-moz-transition:.3s;-o-transition:.3s;transition:.3s;margin-bottom:5px;font-weight:500;text-decoration:none;display:block}.sidebar-nav.jsx-3ee271f478679b1d .nav-link.jsx-3ee271f478679b1d:hover{background:#f8f9fa;color:#de9f57!important}.sidebar-nav.jsx-3ee271f478679b1d .nav-link.active.jsx-3ee271f478679b1d{background:#fcf6ef;color:#de9f57!important;font-weight:bold}"})]})}},1487:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return x}});var t=a(5893),n=a(6089),r=a.n(n),i=a(7294),o=a(9008),l=a.n(o),c=a(1163),d=a(7336);function x(){var e=(0,c.useRouter)(),s=e.query.action,a=(0,i.useState)(""),n=a[0],o=a[1],x=[{id:1,name:"Suresh Raina",email:"suresh@law.com",role:"Staff",org:"Lawstick Mumbai",status:"Active"},{id:2,name:"Mahendra Singh",email:"msd@law.com",role:"Junior Attorney",org:"Lawstick Ranchi",status:"Active"},{id:3,name:"Virat Kohli",email:"virat@law.com",role:"Client",org:"Lawstick Delhi",status:"Inactive"},{id:4,name:"Rohit Sharma",email:"rohit@law.com",role:"Staff",org:"Lawstick Mumbai",status:"Active"}].filter((function(e){return e.name.toLowerCase().includes(n.toLowerCase())}));return(0,t.jsxs)(d.Z,{children:[(0,t.jsx)(l(),{children:(0,t.jsx)("title",{className:"jsx-75244e3007426f13",children:"Lawstick | Organization Users List"})}),(0,t.jsx)("div",{className:"jsx-75244e3007426f13 container-fluid px-0",children:(0,t.jsxs)("div",{className:"jsx-75244e3007426f13 card border-0 shadow-sm rounded-4 p-4 p-md-5 bg-white w-100",children:[(0,t.jsxs)("div",{className:"jsx-75244e3007426f13 mb-5",children:[(0,t.jsx)("h3",{style:{fontFamily:"serif",color:"#002147",fontSize:"26px"},className:"jsx-75244e3007426f13 fw-bold mb-2",children:"Organization Users List"}),(0,t.jsx)("p",{style:{fontSize:"15px"},className:"jsx-75244e3007426f13 text-muted",children:"Select a user to schedule or re-schedule an appointment."})]}),(0,t.jsx)("div",{className:"jsx-75244e3007426f13 mb-4 col-md-5",children:(0,t.jsxs)("div",{className:"jsx-75244e3007426f13 input-group border rounded-pill px-3 py-1 bg-light shadow-sm",children:[(0,t.jsx)("span",{className:"jsx-75244e3007426f13 input-group-text bg-transparent border-0",children:(0,t.jsx)("i",{className:"jsx-75244e3007426f13 bi bi-search text-muted"})}),(0,t.jsx)("input",{type:"text",placeholder:"Search by name...",style:{fontSize:"15px"},onChange:function(e){return o(e.target.value)},className:"jsx-75244e3007426f13 form-control bg-transparent border-0"})]})}),(0,t.jsx)("div",{className:"jsx-75244e3007426f13 table-responsive border rounded-3",children:(0,t.jsxs)("table",{className:"jsx-75244e3007426f13 table table-hover align-middle mb-0",children:[(0,t.jsx)("thead",{style:{backgroundColor:"#fcf6ef"},className:"jsx-75244e3007426f13",children:(0,t.jsxs)("tr",{style:{color:"#002147",fontSize:"14px"},className:"jsx-75244e3007426f13 text-nowrap",children:[(0,t.jsx)("th",{className:"jsx-75244e3007426f13 py-3 px-4",children:"User Name"}),(0,t.jsx)("th",{className:"jsx-75244e3007426f13",children:"Email"}),(0,t.jsx)("th",{className:"jsx-75244e3007426f13",children:"Role"}),(0,t.jsx)("th",{className:"jsx-75244e3007426f13",children:"Organization"}),(0,t.jsx)("th",{className:"jsx-75244e3007426f13",children:"Status"}),(0,t.jsx)("th",{className:"jsx-75244e3007426f13 text-center",children:"Action"})]})}),(0,t.jsx)("tbody",{style:{fontSize:"14px",color:"#444"},className:"jsx-75244e3007426f13",children:x.map((function(a){return(0,t.jsxs)("tr",{className:"jsx-75244e3007426f13 text-nowrap border-bottom",children:[(0,t.jsx)("td",{style:{color:"#002147"},className:"jsx-75244e3007426f13 px-4 py-3 fw-bold",children:a.name}),(0,t.jsx)("td",{className:"jsx-75244e3007426f13",children:a.email}),(0,t.jsx)("td",{className:"jsx-75244e3007426f13",children:(0,t.jsx)("span",{className:"jsx-75244e3007426f13 badge bg-light text-dark border px-2 fw-normal",children:a.role})}),(0,t.jsx)("td",{className:"jsx-75244e3007426f13",children:a.org}),(0,t.jsx)("td",{className:"jsx-75244e3007426f13",children:(0,t.jsx)("span",{className:"jsx-75244e3007426f13 "+"badge ".concat("Active"===a.status?"bg-success-subtle text-success":"bg-danger-subtle text-danger"),children:a.status})}),(0,t.jsx)("td",{className:"jsx-75244e3007426f13 text-center",children:(0,t.jsx)("button",{style:{backgroundColor:"#de9f57",fontSize:"12px",border:"none"},onClick:function(){return t=a.name,void e.push({pathname:"/attorney-panel/appointments",query:{selectedUser:t,openModal:"true",actionType:s}});var t},className:"jsx-75244e3007426f13 btn btn-sm text-white px-4 rounded-pill fw-bold",children:"Select & Proceed"})})]},a.id)}))})]})})]})}),(0,t.jsx)(r(),{id:"75244e3007426f13",children:".table.jsx-75244e3007426f13 th.jsx-75244e3007426f13{font-weight:600;text-transform:uppercase;letter-spacing:.5px}.form-control.jsx-75244e3007426f13:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;border-color:#de9f57}.container-fluid{max-width:100%!important}"})]})}}},function(e){e.O(0,[774,888,179],(function(){return s=2577,e(e.s=s);var s}));var s=e.O();_N_E=s}]);