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'
Request barangay certificates, report incidents, and access government services — online, anytime.
Access PortalBarangay Clearance, Residency, Indigency, Good Moral & more
File incidents and track hearing schedules online
Manage resident and household information
Stay updated on barangay news and events