flowrise-hms / website
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
Requires
- php: ^8.4
- flowrise-hms/core: dev-main
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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 inresources/views/themes/{name}) - When
website_enabledis true, public site owns/and Filament usespanel_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, themedpages/pharmacy.blade.phpin 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/pharmacyto show it in the navigation. Contracts\PharmacyCatalogContract(isAvailable(),items(?search, limit),find(id), plain arrays):Classes\Support\PharmacyModuleCatalogwhen 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), otherwiseNullPharmacyCatalog.- Basket → the same patient identification as booking (search + OTP or guest registration; shared
Livewire\Concerns\VerifiesPublicPatientandlivewire/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 inwebsite_pharmacy_orders/website_pharmacy_order_itemswith referenceRX-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.