templates() as $tpl) { $existing = LandingPage::where('title', $tpl['title'])->first(); if ($existing) { $existing->update([ 'html_content' => $tpl['html_content'], 'description' => $tpl['description'], ]); } else { LandingPage::create([ 'title' => $tpl['title'], 'html_content' => $tpl['html_content'], 'description' => $tpl['description'], 'is_active' => false, ]); } } } private function templates(): array { return [ [ 'title' => 'Barangay System — Default Landing', 'description' => 'Default landing page for the Barangay Management & Governance Platform.', 'html_content' => $this->defaultTemplate(), ], ]; } private function defaultTemplate(): string { return <<<'HTML' Barangay System

Barangay System

Serving Our Community

Request barangay certificates, report incidents, and access government services — online, anytime.

Access Portal
📄

Certificate Requests

Barangay Clearance, Residency, Indigency, Good Moral & more

📋

Blotter Filing

File incidents and track hearing schedules online

👥

Resident Records

Manage resident and household information

📢

Announcements

Stay updated on barangay news and events

HTML; } }