PageSourceSearch

https://hsl.co.in/build/assets/Show-Bb66vIML.js

js hsl.co.in collected 2026-10-09 22:40:08 UTC 9,209 bytes, 6 lines download raw bytes

1import{G as j,r as y,j as e,S as N,x as v,A as w}from"./app-Mnt2IEGe.js";import{A as S}from"./AdminLayout-BmUjNvXu.js";import{statusColor as _}from"./Index-BJd9Qd_f.js";import{S as k}from"./sweetalert2.esm.all-CnnFETqF.js";import{A as D}from"./arrow-left-CAgOD5ER.js";import{M as C,B as A,C as B}from"./mail-check-wimqAtcN.js";import{P as I}from"./phone-DSAsYLtt.js";import{M as L}from"./mail-Ce-sk81h.js";import{T as P}from"./trash-2-BurmGby8.js";import{S as T}from"./stethoscope-xEIb5Z6o.js";import{E as d}from"./external-link-C72TQ-H_.js";import{S as E}from"./share-2-D7zohvkM.js";import{c as M}from"./ApplicationLogo-JvKRx6b1.js";import"./ResponsiveNavLink-xYyYAnIm.js";import"./transition-caWIvkel.js";import"./chevron-down-BlAiga6f.js";import"./download-CiQft0wG.js";import"./users-TBz3OMTK.js";import"./clock-Dnho5FNh.js";import"./search-BeXkNHdv.js";import"./map-pin-BuVEKMGp.js";import"./eye-D7lGIL4B.js";/**
2 * @license lucide-react v0.525.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const V=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],$=M("save",V),o=[{value:"pending",label:"Pending"},{value:"verified",label:"Verified"},{value:"contacted",label:"Contacted"},{value:"certificate_sent",label:"Certificate Sent"},{value:"rejected",label:"Rejected"}],x=[{key:"instagram_url",label:"Instagram"},{key:"facebook_url",label:"Facebook"},{key:"twitter_url",label:"Twitter / X"},{key:"linkedin_url",label:"LinkedIn"},{key:"youtube_url",label:"YouTube"}];function r({title:a,icon:l,children:i}){return e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden",children:[e.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 bg-gray-50 flex items-center gap-2",children:[e.jsx(l,{className:"w-5 h-5 text-primary"}),e.jsx("h2",{className:"font-semibold text-gray-900",children:a})]}),e.jsx("div",{className:"p-6",children:i})]})}function t({label:a,children:l}){return e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-1 sm:gap-4 py-2.5 border-b border-gray-100 last:border-0",children:[e.jsx("div",{className:"text-sm font-medium text-gray-500",children:a}),e.jsx("div",{className:"sm:col-span-2 text-gray-900 break-words",children:l||e.jsx("span",{className:"text-gray-400",children:"-"})})]})}function h(a){return a?new Date(a).toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"}):null}function ne({doctor:a}){var c;const{data:l,setData:i,patch:p,processing:n}=j({status:a.status||"pending",notes:a.notes||""}),[u,m]=y.useState(!1),g=s=>{s.preventDefault(),p(route("admin.doctor-registrations.updateStatus",a.id),{preserveScroll:!0,onSuccess:()=>{m(!0),setTimeout(()=>m(!1),2500)}})},b=()=>{k.fire({icon:"warning",title:"Delete this submission?",text:`${a.name}'s record will be permanently removed.`,showCancelButton:!0,confirmButtonText:"Yes, delete it",confirmButtonColor:"#dc2626",cancelButtonText:"Cancel"}).then(s=>{s.isConfirmed&&w.delete(route("admin.doctor-registrations.destroy",a.id))})},f=x.some(s=>a[s.key]);return e.jsxs(S,{children:[e.jsx(N,{title:`${a.name} | Doctor Data Bank`}),e.jsx("div",{className:"py-8",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-6",children:[e.jsxs("div",{children:[e.jsxs(v,{href:route("admin.doctor-registrations.index"),className:"inline-flex items-center gap-1 text-sm text-gray-500 hover:text-primary mb-2",children:[e.jsx(D,{className:"w-4 h-4"}),"Back to Doctor Data Bank"]}),e.jsxs("h1",{className:"text-2xl font-bold text-gray-900",children:[a.salutation," ",a.name]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-2",children:[e.jsx("span",{className:`px-2.5 py-1 rounded-full text-xs font-medium ${_(a.status)}`,children:((c=o.find(s=>s.value===a.status))==null?void 0:c.label)||a.status}),a.email_verified_at&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800",children:[e.jsx(C,{className:"w-3 h-3"}),"Email verified"]}),e.jsxs("span",{className:"text-sm text-gray-500",children:["Submitted"," ",new Date(a.created_at).toLocaleStr
6ing("en-IN")]})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("a",{href:`tel:+91${a.phone}`,className:"inline-flex items-center gap-2 bg-primary hover:bg-blue-700 text-white px-4 py-2 rounded-lg text-sm transition",children:[e.jsx(I,{className:"w-4 h-4"}),"Call"]}),e.jsxs("a",{href:`mailto:${a.email}`,className:"inline-flex items-center gap-2 bg-gray-100 hover:bg-gray-200 text-gray-700 px-4 py-2 rounded-lg text-sm transition",children:[e.jsx(L,{className:"w-4 h-4"}),"Email"]}),e.jsxs("button",{onClick:b,className:"inline-flex items-center gap-2 bg-red-50 hover:bg-red-100 text-red-700 px-4 py-2 rounded-lg text-sm transition",children:[e.jsx(P,{className:"w-4 h-4"}),"Delete"]})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(r,{title:"Professional Details",icon:T,children:[e.jsxs(t,{label:"Name of Doctor",children:[a.salutation," ",a.name]}),e.jsx(t,{label:"Gender",children:a.gender||"-"}),e.jsx(t,{label:"Speciality",children:a.specialities_label}),e.jsxs(t,{label:"Phone Number",children:["+91 ",a.phone]}),e.jsx(t,{label:"WhatsApp Number",children:a.whatsapp_number?`+91 ${a.whatsapp_number}`:"-"}),e.jsx(t,{label:"Email Address",children:a.email}),e.jsx(t,{label:"Email Verified On",children:a.email_verified_at?new Date(a.email_verified_at).toLocaleString("en-IN"):null})]}),e.jsxs(r,{title:"Clinic Information",icon:A,children:[e.jsx(t,{label:"Clinic Name",children:a.clinic_name}),e.jsx(t,{label:"Visiting / Business Card",children:a.business_card_path&&e.jsxs("a",{href:route("admin.doctor-registrations.business-card",a.id),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-primary hover:underline",children:["View card image",e.jsx(d,{className:"w-3.5 h-3.5"})]})}),e.jsx(t,{label:"Full Address",children:a.clinic_address}),e.jsx(t,{label:"Pincode",children:a.pincode}),e.jsx(t,{label:"Area / Locality",children:a.area}),e.jsx(t,{label:"City",children:a.city}),e.jsx(t,{label:"State",children:a.state})]}),e.jsxs(r,{title:"Personal Details",icon:B,children:[e.jsx(t,{label:"Date of Birth",children:h(a.date_of_birth)}),e.jsx(t,{label:"Date of Anniversary",children:h(a.date_of_anniversary)})]}),e.jsxs(r,{title:"Social Media & Professional Profiles",icon:E,children:[f?x.map(s=>e.jsx(t,{label:s.label,children:a[s.key]?e.jsxs("a",{href:a[s.key],target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-primary hover:underline break-all",children:[a[s.key],e.jsx(d,{className:"w-3.5 h-3.5 shrink-0"})]}):null},s.key)):e.jsx("p",{className:"text-gray-500 text-sm",children:"No social profiles were shared."}),e.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-100 space-y-2 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-gray-500",children:"Data Bank consent:"}),e.jsx("span",{className:"font-medium text-green-700",children:a.consent_data_bank?"Given":"Not given"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-gray-500",children:"Wants updates & communications:"}),e.jsx("span",{className:"font-medium text-gray-900",children:a.consent_communications?"Yes":"No"})]})]})]}),e.jsxs("form",{onSubmit:g,className:"bg-white rounded-lg shadow-sm border border-gray-200 p-6",children:[e.jsx("h2",{className:"font-semibold text-gray-900 mb-4",children:"Update Record"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Status"}),e.jsx("select",{value:l.status,onChange:s=>i("status",s.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg bg-white focus:ring-2 focus:ring-primary outline-none",children:o.map(s=>e.jsx("option",{value:s.value,children:s.label},s.value))})]}),e.jsxs("div",{className:"sm:col-span-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Internal Notes"}),e.jsx("textarea",{rows:3,value:l.notes,onChange:s=>i("notes",s.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary outline-none",placeholder:"Add a note about this doctor (not visible to them)"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[e.jsxs("button",{type:"submit",disabled:n,className:"inline-flex items-center gap-2 bg-primary hover:bg-blue-700 text-white px-5 py-2 rounded-lg text-sm transition disabled:opacity-60",children:[e.jsx($,{className:"w-4 h-4"}),n?"Saving...":"Save Changes"]}),u&&e.jsx("span",{className:"text-sm text-green-600 font-medium",children:"Saved successfully."})]})]})]})]})})]})}export{ne as default};

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.