# Phase 17: Public Website Refresh

## Date
- 2026-04-18

## Scope
- Refreshed the public website using CEPI-specific institute content and contact details.
- Added `About Us` and `Contact Us` public pages.
- Added a database-backed contact form.
- Expanded the seeded course catalog to better reflect CEPI website offerings.

## What Was Implemented
1. Public navigation and footer refresh
   - Replaced generic branding with CEPI-specific branding, logo usage, contact strip, and footer details.
   - Added public links for:
     - Home
     - About Us
     - Courses
     - Contact Us
2. Landing page update
   - Replaced generic placeholder education copy with CEPI-focused competitive-exam preparation messaging.
   - Added:
     - CEPI intro section
     - category highlights
     - featured courses
     - admissions/contact CTA
   - Used verified details from:
     - `https://www.cepi.com.pk/`
     - `https://www.cepi.com.pk/about-us/`
3. About page
   - Added `/about-us` public route and page.
   - Included CEPI-oriented about content, institute stats, and faculty highlight cards.
4. Contact page
   - Added `/contact-us` public route and page.
   - Added contact form fields:
     - Your Name
     - Your Email
     - Your Mobile
     - Message
     - Interested In
   - Added office/contact details block:
     - Address
     - Mobile Number
     - Email
     - WhatsApp
5. Contact form persistence
   - Added `contact_messages` table and `ContactMessage` model.
   - Contact form submissions now save to the database through `PublicPageController`.
6. Course catalog refresh
   - Updated public course listing and detail views to better match the seeded CEPI course catalog.
   - Added a new seeder with CEPI-style course names inspired by the live website course archive pages.

## Files Added
- `app/Http/Controllers/PublicPageController.php`
- `app/Models/ContactMessage.php`
- `database/migrations/2026_04_18_180000_create_contact_messages_table.php`
- `database/seeders/CepiWebsiteCatalogSeeder.php`
- `resources/views/pages/about.blade.php`
- `resources/views/pages/contact.blade.php`
- `docs/dev/17-public-website-refresh.md`

## Files Updated
- `routes/web.php`
- `app/Http/Controllers/HomeController.php`
- `app/Http/Controllers/PublicCourseController.php`
- `database/seeders/DatabaseSeeder.php`
- `resources/views/layouts/public.blade.php`
- `resources/views/welcome.blade.php`
- `resources/views/courses/index.blade.php`
- `resources/views/courses/show.blade.php`

## Seeder Notes
- `CepiWebsiteCatalogSeeder` adds CEPI-style published courses for public browsing.
- It also seeds additional instructors and module/lecture structures so the public course pages render more naturally.

## Assumptions
- Live CEPI website course archive pages were used as a structural reference for naming and catalog direction, not as a verbatim full-content import.
- Contact form submissions are currently stored in the database; no outbound email integration was added in this phase.
