(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[277],{297:function(s,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/AdminPanel",function(){return a(3265)}])},3265:function(s,e,a){"use strict";a.r(e),a.d(e,{default:function(){return i}});var d=a(5893),c=a(6089),l=a.n(c),r=a(7294);function i(){var s=(0,r.useState)(!1),e=s[0],a=s[1],c=(0,r.useState)("Monthly"),i=c[0],t=c[1],n=450,f=700,x=650;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l(),{id:"d688faf5d99b35c9",children:'@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css");body{background-color:#f4f7f6;font-family:"Segoe UI",sans-serif}.bg-navy{background-color:#002b5c!important;color:white}.text-navy{color:#002b5c!important}.border-gold{border-left:5px solid#cfa144!important}.text-gold{color:#cfa144!important}.sidebar{min-height:100vh;width:250px;background:#002b5c;color:#fff;position:fixed}.sidebar-link{padding:12px 20px;color:#b3cde0;text-decoration:none;display:block;border-left:4px solid transparent}.sidebar-link:hover,.sidebar-link.active{background:#001f42;color:#fff;border-left-color:#cfa144}.main-content{margin-left:250px;padding:20px}@media(max-width:768px){.sidebar{display:none}.main-content{margin-left:0}}.stat-card{-webkit-transition:-webkit-transform.2s;-moz-transition:-moz-transform.2s;-o-transition:-o-transform.2s;transition:-webkit-transform.2s;transition:-moz-transform.2s;transition:-o-transform.2s;transition:transform.2s}.stat-card:hover{-webkit-transform:translateY(-5px);-moz-transform:translateY(-5px);-ms-transform:translateY(-5px);-o-transform:translateY(-5px);transform:translateY(-5px)}.chart-bar{height:10px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}'}),!e&&(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 d-flex align-items-center justify-content-center min-vh-100 bg-light",children:(0,d.jsxs)("div",{style:{width:"400px"},className:"jsx-d688faf5d99b35c9 card shadow-lg border-0",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-header bg-navy text-center py-4",children:(0,d.jsx)("h3",{style:{fontFamily:"serif"},className:"jsx-d688faf5d99b35c9 mb-0 fw-bold",children:"Admin Panel"})}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-body p-4",children:(0,d.jsxs)("form",{onSubmit:function(s){s.preventDefault(),a(!0)},className:"jsx-d688faf5d99b35c9",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 mb-3",children:[(0,d.jsx)("label",{className:"jsx-d688faf5d99b35c9 form-label fw-bold",children:"Email ID"}),(0,d.jsx)("input",{type:"email",defaultValue:"admin@lawfirm.com",required:!0,className:"jsx-d688faf5d99b35c9 form-control"})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 mb-4",children:[(0,d.jsx)("label",{className:"jsx-d688faf5d99b35c9 form-label fw-bold",children:"Password"}),(0,d.jsx)("input",{type:"password",defaultValue:"admin123",required:!0,className:"jsx-d688faf5d99b35c9 form-control"})]}),(0,d.jsx)("button",{type:"submit",className:"jsx-d688faf5d99b35c9 btn bg-navy text-white w-100 py-2",children:"Login to Dashboard"})]})})]})}),e&&(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 d-flex",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 sidebar shadow",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 p-4 text-center border-bottom border-secondary",children:(0,d.jsx)("h4",{style:{fontFamily:"serif"},className:"jsx-d688faf5d99b35c9 fw-bold mb-0 text-white",children:"LawFirm Admin"})}),(0,d.jsxs)("nav",{className:"jsx-d688faf5d99b35c9 mt-4",children:[(0,d.jsx)("a",{href:"#",className:"jsx-d688faf5d99b35c9 sidebar-link active",children:"Dashboard"}),(0,d.jsx)("a",{href:"#",className:"jsx-d688faf5d99b35c9 sidebar-link",children:"Attorneys"}),(0,d.jsx)("a",{href:"#",className:"jsx-d688faf5d99b35c9 sidebar-link",children:"Clients"}),(0,d.jsx)("a",{href:"#",className:"jsx-d688faf5d99b35c9 sidebar-link",children:"Cases"}),(0,d.jsx)("a",{href:"#",className:"jsx-d688faf5d99b35c9 sidebar-link",children:"Employees"}),(0,d.jsx)("a",{href:"#",className:"jsx-d688faf5d99b35c9 sidebar-link",children:"Revenue"}),(0,d.jsx)("a",{href:"#",onClick:function(){return a(!1)},className:"jsx-d688faf5d99b35c9 sidebar-link mt-5",children:"Logout"})]})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 main-content w-100",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 d-flex justify-content-between align-items-center mb-4 bg-white p-3 rounded shadow-sm",children:[(0,d.jsx)("h4",{className:"jsx-d688faf5d99b35c9 m-0 text-navy fw-bold",children:"Dashboard Overview"}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 d-flex align-items-center gap-3",children:[(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9 badge bg-danger rounded-pill",children:"3 Notifications"}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 fw-bold text-navy",children:"Admin User \ud83d\udc64"})]})]}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 row g-3 mb-4",children:[{title:"Total Attorneys",count:120,icon:"\u2696\ufe0f",color:"primary"},{title:"Total Clients",count:850,icon:"\ud83d\udc65",color:"success"},{title:"Total Employees",count:45,icon:"\ud83d\udc54",color:"info"},{title:"Total Cases",count:1240,icon:"\ud83d\udcc1",color:"warning"}].map((function(s,e){return(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 col-md-3",children:(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card border-0 shadow-sm stat-card border-gold",children:(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-body",children:(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 d-flex justify-content-between align-items-center",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9",children:[(0,d.jsx)("h6",{className:"jsx-d688faf5d99b35c9 text-muted text-uppercase small fw-bold",children:s.title}),(0,d.jsx)("h2",{className:"jsx-d688faf5d99b35c9 mb-0 fw-bold text-navy",children:s.count})]}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 fs-1 opacity-25",children:s.icon})]})})})},e)}))}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 row g-3 mb-4",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 col-md-4",children:(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 card border-0 shadow-sm h-100",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-header bg-white fw-bold py-3",children:"Case Analytics \ud83d\udcca"}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 card-body",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 mb-3",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 d-flex justify-content-between small mb-1",children:[(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9",children:"Open Cases"})," ",(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9 fw-bold",children:n})]}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 progress chart-bar",children:(0,d.jsx)("div",{style:{width:"35%"},className:"jsx-d688faf5d99b35c9 progress-bar bg-primary"})})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 mb-3",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 d-flex justify-content-between small mb-1",children:[(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9",children:"Closed Cases"})," ",(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9 fw-bold",children:f})]}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 progress chart-bar",children:(0,d.jsx)("div",{style:{width:"55%"},className:"jsx-d688faf5d99b35c9 progress-bar bg-secondary"})})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 mb-3",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 d-flex justify-content-between small mb-1",children:[(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9",children:"Success Rate"})," ",(0,d.jsxs)("span",{className:"jsx-d688faf5d99b35c9 fw-bold text-success",children:[x," Won"]})]}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 progress chart-bar",children:(0,d.jsx)("div",{style:{width:"80%"},className:"jsx-d688faf5d99b35c9 progress-bar bg-success"})})]}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 text-center mt-4 small text-muted",children:"Total 1240 Cases Handled"})]})]})}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 col-md-8",children:(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 card border-0 shadow-sm h-100",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 card-header bg-white d-flex justify-content-between align-items-center py-3",children:[(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9 fw-bold",children:"Profit Earned \ud83d\udcc8"}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 btn-group btn-group-sm",children:["Weekly","Monthly","Yearly"].map((function(s){return(0,d.jsx)("button",{onClick:function(){return t(s)},className:"jsx-d688faf5d99b35c9 "+"btn ".concat(i===s?"btn-navy":"btn-outline-secondary"),children:s},s)}))})]}),(0,d.jsxs)("div",{style:{height:"200px"},className:"jsx-d688faf5d99b35c9 card-body d-flex align-items-end justify-content-around px-5",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 text-center w-100 mx-1",children:[(0,d.jsx)("div",{style:{height:"150px",alignItems:"flex-end"},className:"jsx-d688faf5d99b35c9 progress vertical mb-2",children:(0,d.jsx)("div",{style:{height:"40%"},className:"jsx-d688faf5d99b35c9 progress-bar bg-warning w-100 rounded"})}),(0,d.jsx)("small",{className:"jsx-d688faf5d99b35c9 d-block text-muted",children:"WK 1"})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 text-center w-100 mx-1",children:[(0,d.jsx)("div",{style:{height:"150px",alignItems:"flex-end"},className:"jsx-d688faf5d99b35c9 progress vertical mb-2",children:(0,d.jsx)("div",{style:{height:"60%"},className:"jsx-d688faf5d99b35c9 progress-bar bg-warning w-100 rounded"})}),(0,d.jsx)("small",{className:"jsx-d688faf5d99b35c9 d-block text-muted",children:"WK 2"})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 text-center w-100 mx-1",children:[(0,d.jsx)("div",{style:{height:"150px",alignItems:"flex-end"},className:"jsx-d688faf5d99b35c9 progress vertical mb-2",children:(0,d.jsx)("div",{style:{height:"85%"},className:"jsx-d688faf5d99b35c9 progress-bar bg-navy w-100 rounded"})}),(0,d.jsx)("small",{className:"jsx-d688faf5d99b35c9 d-block fw-bold text-navy",children:"WK 3"})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 text-center w-100 mx-1",children:[(0,d.jsx)("div",{style:{height:"150px",alignItems:"flex-end"},className:"jsx-d688faf5d99b35c9 progress vertical mb-2",children:(0,d.jsx)("div",{style:{height:"55%"},className:"jsx-d688faf5d99b35c9 progress-bar bg-warning w-100 rounded"})}),(0,d.jsx)("small",{className:"jsx-d688faf5d99b35c9 d-block text-muted",children:"WK 4"})]})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 card-footer bg-white text-center text-muted small border-top-0",children:["Revenue Data for ",i," view"]})]})})]}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 row g-3",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 col-lg-6",children:(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 card border-0 shadow-sm",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-header bg-white fw-bold py-3 text-navy",children:"\ud83d\udcc5 Upcoming Cases"}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 table-responsive",children:(0,d.jsxs)("table",{className:"jsx-d688faf5d99b35c9 table table-hover mb-0 align-middle",children:[(0,d.jsx)("thead",{className:"jsx-d688faf5d99b35c9 table-light",children:(0,d.jsxs)("tr",{className:"jsx-d688faf5d99b35c9",children:[(0,d.jsx)("th",{className:"jsx-d688faf5d99b35c9",children:"ID"}),(0,d.jsx)("th",{className:"jsx-d688faf5d99b35c9",children:"Client"}),(0,d.jsx)("th",{className:"jsx-d688faf5d99b35c9",children:"Date"}),(0,d.jsx)("th",{className:"jsx-d688faf5d99b35c9",children:"Status"})]})}),(0,d.jsx)("tbody",{className:"jsx-d688faf5d99b35c9",children:[{id:"C-101",client:"John Doe",attorney:"Adv. Sharma",date:"12 Dec, 2025",type:"Criminal"},{id:"C-102",client:"Tesla Corp",attorney:"Adv. Roberts",date:"14 Dec, 2025",type:"Corporate"},{id:"C-103",client:"Jane Smith",attorney:"Adv. Gupta",date:"15 Dec, 2025",type:"Family"}].map((function(s){return(0,d.jsxs)("tr",{className:"jsx-d688faf5d99b35c9",children:[(0,d.jsx)("td",{className:"jsx-d688faf5d99b35c9",children:(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9 badge bg-light text-dark border",children:s.id})}),(0,d.jsxs)("td",{className:"jsx-d688faf5d99b35c9",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 fw-bold",children:s.client}),(0,d.jsx)("small",{className:"jsx-d688faf5d99b35c9 text-muted",children:s.type})]}),(0,d.jsx)("td",{className:"jsx-d688faf5d99b35c9",children:s.date}),(0,d.jsx)("td",{className:"jsx-d688faf5d99b35c9",children:(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9 badge bg-primary",children:"Upcoming"})})]},s.id)}))})]})})]})}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 col-lg-6",children:(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 row g-3 h-100",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 col-12",children:(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 card border-0 shadow-sm",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-header bg-white fw-bold py-3 text-navy",children:"\ud83c\udfc6 Top Clients"}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-body p-0",children:(0,d.jsx)("ul",{className:"jsx-d688faf5d99b35c9 list-group list-group-flush",children:[{name:"Tech Solutions Ltd",cases:12,revenue:"$50k"},{name:"Real Estate Group",cases:8,revenue:"$35k"},{name:"Dr. A. K. Verma",cases:5,revenue:"$12k"}].map((function(s,e){return(0,d.jsxs)("li",{className:"jsx-d688faf5d99b35c9 list-group-item d-flex justify-content-between align-items-center",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9",children:[(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9 fw-bold",children:s.name}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 small text-muted",children:[s.cases," Cases"]})]}),(0,d.jsx)("span",{className:"jsx-d688faf5d99b35c9 badge bg-success rounded-pill",children:s.revenue})]},e)}))})})]})}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 col-12",children:(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 card border-0 shadow-sm h-100",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-header bg-white fw-bold py-3 text-navy",children:"\ud83d\udcac Recent Messages"}),(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 card-body p-0",children:[{from:"Adv. Sharma",subject:"Case File #99 Update",time:"2 hrs ago"},{from:"Front Desk",subject:"New Client Registration",time:"5 hrs ago"}].map((function(s,e){return(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 p-3 border-bottom d-flex align-items-start gap-3",children:[(0,d.jsx)("div",{className:"jsx-d688faf5d99b35c9 bg-light rounded-circle p-2",children:"\ud83d\udce9"}),(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9",children:[(0,d.jsxs)("div",{className:"jsx-d688faf5d99b35c9 d-flex justify-content-between w-100",children:[(0,d.jsx)("strong",{className:"jsx-d688faf5d99b35c9 d-block",children:s.from}),(0,d.jsx)("small",{className:"jsx-d688faf5d99b35c9 text-muted ms-5",children:s.time})]}),(0,d.jsx)("small",{className:"jsx-d688faf5d99b35c9 text-muted",children:s.subject})]})]},e)}))})]})})]})})]})]})]})]})}}},function(s){s.O(0,[774,888,179],(function(){return e=297,s(s.s=e);var e}));var e=s.O();_N_E=e}]);