--- id: 6-9 title: 6-9 Legal Pages Editor status: QA Review date: 2026-09-27 parent: 6 --- ## Description As an admin, I want to edit Terms of Service and Privacy Policy pages, So that I can maintain legal compliance and update policies. This project uses **class-based Volt components** for interactivity. Follow existing patterns in resources/views/livewire/. Full implementation history: docs/stories/story-6.9-legal-pages-editor.md ## Acceptance Criteria - [ ] Terms of Service (`/page/terms`) - [ ] Privacy Policy (`/page/privacy`) - [ ] Rich text editor using Quill.js (lightweight, RTL-friendly) - [ ] Bilingual content with Arabic/English tabs in editor UI - [ ] Save and publish button updates database immediately - [ ] Preview opens modal showing rendered content in selected language - [ ] HTML content sanitized before save (prevent XSS) - [ ] Accessible under Admin Dashboard > Settings section - [ ] Sidebar item: "Legal Pages" or integrate into Settings page - [ ] List view showing both pages with "Edit" action - [ ] Edit page shows language tabs (Arabic | English) above editor - [ ] Pages accessible from footer links (no auth required) - [ ] Route: `/page/{slug}` where slug is `terms` or `privacy` - [ ] Content displayed in user's current language preference - [ ] Last updated timestamp displayed at bottom of page - [ ] Professional layout consistent with site design (navy/gold)