UNPKG

klioso

Version:

Multi-Service Provider Management System for WordPress and Web Development with Enhanced Scanner

2 lines (1 loc) 2.29 kB
import{j as e,L as t}from"./app-DZ07njAd.js";import{A as l}from"./AuthenticatedLayout-BKOGad_C.js";import{B as i}from"./Button-D6Jcp-tA.js";import{B as n}from"./BackButton-DWEPPwYa.js";import{D as r}from"./DeleteButton-BGbjowl2.js";import"./ApplicationLogo-GDc3W5ND.js";import"./transition-BCwV6od8.js";function u({client:s}){return e.jsx(l,{header:e.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Client Details"}),children:e.jsxs("div",{className:"flex gap-8 py-8",children:[e.jsxs("nav",{className:"w-64 bg-white rounded-lg shadow p-6 flex flex-col gap-4",children:[e.jsx(t,{href:"/clients",className:"text-blue-600 hover:underline font-medium",children:"Clients"}),e.jsx(t,{href:"/websites",className:"text-blue-600 hover:underline font-medium",children:"Websites"}),e.jsx(t,{href:"/plugins",className:"text-blue-600 hover:underline font-medium",children:"Plugins"}),e.jsx(t,{href:"/templates",className:"text-blue-600 hover:underline font-medium",children:"Templates"}),e.jsx(t,{href:"/hosting-providers",className:"text-blue-600 hover:underline font-medium",children:"Hosting Providers"}),e.jsx(i,{as:t,href:`/clients/${s.id}/edit`,size:"sm",className:"mt-4",children:"Edit Client"})]}),e.jsx("div",{className:"flex-1",children:e.jsxs("div",{className:"bg-white rounded-lg shadow p-6 max-w-xl mx-auto",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx(n,{fallbackRoute:"/clients"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(i,{as:t,href:`/clients/${s.id}/edit`,size:"sm",children:"Edit"}),e.jsx(r,{resource:s,resourceName:"client",deleteRoute:`/clients/${s.id}`,onSuccess:()=>window.location.href="/clients"})]})]}),e.jsx("h2",{className:"text-xl font-bold mb-4",children:s.name}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Contact Email:"})," ",s.contact_email]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Contact Phone:"})," ",s.contact_phone]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Address:"})," ",s.address]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Company:"})," ",s.company]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Notes:"})," ",s.notes]})]})})]})})}export{u as default};