Search by

flowrise-hms / website

musheabdulhakim

Public hospital website CMS with theme packs for FlowRise HMS

Package info

github.com/Flowrise-HMS/Website

Language:CSS

Type:laravel-module

pkg:composer/flowrise-hms/website

Statistics

Installs: 54

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-09-21 06:34 UTC

This package is auto-updated.

Last update: 2026-11-25 01:25:10 UTC


README

Public hospital website CMS with theme packs for FlowRise HMS.

Current status

Complete (CMS, hybrid public booking, online pharmacy). See Module Status for the canonical matrix. Verified against code on 2026-11-24.

Admin panel surface

Cluster Website in the Administration sidebar group (/website): Site Settings (/website/manage-website-settings), Pages, Menus, News (page heading Posts, button New post), Team (heading Team Members), Partners, Gallery (heading Gallery Albums), Booking Requests (list/edit only; row action Review), Contact Inbox (heading Contact Submissions; list/edit only; row action View / mark read). Permissions: Shield abilities per model (Page, Post, Menu, GalleryAlbum, TeamMember, Partner, BookingRequest, ContactSubmission), View ManageWebsiteSettings, and the custom manage_website / manage_website_settings.

Site Settings sections: Public site (Enable public website, Admin panel path (only shown while the site is enabled), Active theme, Enable animations), Brand & appearance (logos, favicon, colours, footer about text), Default SEO, Contact & booking CTA, Online booking (Bookable services, Default booking branch, Open weekdays, Opens at, Closes at, Slot length (minutes), Bookable days ahead). Bookable services lists active non-medication Core services (medication catalog entries are excluded from the select and from the public booking wizard). Saving clears the route/config caches and shows the new login URL.

Public routes (only while "Enable public website" is on)

/ (home), /news, /news/{slug}, /gallery, /team, /partners, /contact (Livewire ContactForm), /book-appointment (Livewire BookingWizard), /sitemap.xml, /robots.txt, /{slug} (CMS pages). When the public site is on, the Filament panel moves from / to /{panel_path_slug} (default admin).

Phase 1 — CMS

  • Filament cluster for pages (section blocks), news, gallery, team, partners, menus, contact inbox, site settings
  • Theme packs under resources/themes/{name} (+ Blade views in resources/views/themes/{name})
  • When website_enabled is true, public site owns / and Filament uses panel_path_slug
  • Book Appointment page uses BookingCtaResolver (settings / WhatsApp / phone placeholder)

Phase 2 — Public booking

  • Hybrid booking: available slots → confirmed Appointment; otherwise waitlist or preferred-time request
  • Slot source: when an active Appointment Schedule is linked to the bookable service at the booking branch, the wizard offers that schedule's free slots (one entry per time, booked with the slot's practitioner); otherwise slots come from the open hours / slot length settings minus appointments and schedule blocks
  • Patient search (MRN / phone / email / national ID) with masked name + OTP (mail + Core SMSChannel)
  • Guests create a minimal Patient, then book
  • Website settings: curated Core services, open hours, slot length, default branch
  • Filament Booking Requests inbox for preferred-time / waitlist-linked requests

Phase 3 — Online pharmacy (catalogue and order requests)

  • Public /pharmacy page (Livewire\PharmacyCatalogue, themed pages/pharmacy.blade.php in default, mediox and clinicalmaster; other themes fall back to default) — 404 unless Show pharmacy catalogue is on and the Pharmacy module is enabled. Add a menu item pointing to /pharmacy to show it in the navigation.
  • Contracts\PharmacyCatalogContract (isAvailable(), items(?search, limit), find(id), plain arrays): Classes\Support\PharmacyModuleCatalog when Pharmacy is enabled (active, formulary, billable medications only; controlled substances are never listed; stock from the booking branch; prices from the billing service unless Show prices is off), otherwise NullPharmacyCatalog.
  • Basket → the same patient identification as booking (search + OTP or guest registration; shared Livewire\Concerns\VerifiesPublicPatient and livewire/partials/verify-patient) → review (pickup / delivery, notes) → order request (Classes\Services\PharmacyOrderService): every line is re-read from the catalogue (prices server-side, max 20 per line), stored in website_pharmacy_orders / website_pharmacy_order_items with reference RX-yymmdd-XXXXX. No online payment.
  • Filament Pharmacy Orders inbox (Website cluster, badge = new orders, permissions * PharmacyOrder): view items and contact, workflow New → Processing → Ready for pickup → Completed (or Cancelled) with staff notes, and Open in POS, which opens the Pharmacy POS with the order's lines and patient in the cart (PharmacyPos::prefillUrl(); stock and the controlled-substance block still apply).
  • Settings → Online pharmacy: Show pharmacy catalogue, Accept order requests, Show prices (all off/on/on by default).

Setup

php artisan module:migrate Website --force
php artisan migrate --path=Modules/Website/database/settings --force
# or run full app migrate for Spatie settings

Seed a specific theme (recommended at install)

# Interactive picker
php artisan website:seed-theme

# Explicit theme
php artisan website:seed-theme default
php artisan website:seed-theme mediox --publish-assets --enable
php artisan website:seed-theme clinicalmaster --fresh --publish-assets --enable

Or via class / env:

php artisan db:seed --class="Modules\\Website\\Database\\Seeders\\Themes\\ClinicalMasterThemeSeeder"
WEBSITE_SEED_THEME=mediox php artisan db:seed --class="Modules\\Website\\Database\\Seeders\\WebsiteDatabaseSeeder"

Available theme seeders: default, mediox, clinicalmaster, clinical-blue. The Active theme dropdown shows the theme.json labels: Default Hospital, Mediox (Home One), ClinicalMaster (Physiotherapy) and Clinical Blue (clinical-blue ships its own hero section and falls back to the default theme's other views). php artisan website:publish-theme-assets {theme?} republishes a theme's public assets.

Tests: php artisan test --compact Modules/Website/tests (23 files). 11 migrations, 13 models.

REST (token scope website, Api module): website/pages, website/news (CRUD), website/booking-requests, website/pharmacy-orders (read/update; order statuses follow the panel's transitions).

Enable the public site from Administration → Website → Site Settings (or pass --enable), then configure Online booking (branch + bookable services). Booking requests and waitlist-linked requests arrive in Booking Requests; contact form messages in Contact Inbox.