The landing page builder creates a public-facing marketing website for the clinic, separate from the patient portal. It is served from the same installation, uses the clinic's own domain or subdomain, and feeds new-patient enquiries directly into the clinic's patient list.
includes/landing_page.php + includes/landing_migrations.php define the landing page schema and migrations. pages/landing_builder.php is the drag-and-drop builder UI (admin side). pages/landing_public.php serves the public-facing page.
api/landing_ai.php uses the AI pipeline to generate section copy (about the clinic, services, doctor bio) from a short prompt entered by the clinic admin. Generated copy is editable before publishing.
api/landing_contact.php receives contact form submissions, writes them to landing_leads, and dispatches a notification email to the clinic. Leads can be converted to patient records with one click from the admin side.
api/landing_upload.php handles image uploads for the landing page (clinic photo, doctor headshots, banners). Files are stored in /uploads/landing/ and served directly.
When FEATURE_WHITELABEL is enabled: the "Powered by MindFlow" footer link is removed, the From address in all patient emails uses the clinic's own domain (via SMTP settings), and the patient portal URL can use a custom subdomain.
The clinic admin enters a GA4 Measurement ID in Settings → Analytics. The header.php template injects the gtag.js snippet on every page (main app, patient portal, and landing page).
A Search Console verification meta tag can be added from Settings → Analytics. It appears on the public-facing pages for domain property verification.
landing_leads captures UTM parameters (utm_source, utm_medium, utm_campaign) from the URL at the time of form submission. Referral source is also stored on the patient record when a lead is converted.
includes/email_templates.php defines all transactional email templates (appointment confirmation, reminder, prescription sent, invoice, ABHA linked, etc.) as PHP functions rendering HTML with the clinic's branding injected.
The Custom Emailer plugin (plugins/custom-emailer/) adds a UI for sending ad-hoc rich HTML or plain-text emails to any patient or any email address — outside the normal transactional flow.
includes/mailer.php uses PHPMailer with configurable SMTP (Settings → Email / SMTP). TLS/SSL is enforced. All outgoing emails are logged in email_logs with recipient, subject, status, and timestamp.
The demo has real sample data — appointments, patients, prescriptions — so you can explore freely.