--- id: 6-5 title: 6-5 Data Export - Consultation Records status: QA Review date: 2026-09-27 parent: 6 --- ## Description As an admin, I want to export consultation/booking data in CSV and PDF formats, So that I can generate reports for accounting, analyze consultation patterns, and maintain offline records of client interactions. Follow the export pattern established in Story 6.4. Reuse any base export functionality created there. Full implementation history: docs/stories/story-6.5-data-export-consultation-records.md ## Acceptance Criteria - [ ] Export all consultations - [ ] Export filtered subset based on criteria below - [ ] Date range (booking_date between start/end) - [ ] Consultation type (free/paid) - [ ] Status (pending/approved/completed/no-show/cancelled/rejected) - [ ] Payment status (pending/received/na) - [ ] Client name (from user relationship) - [ ] Date and time (booking_date, booking_time) - [ ] Consultation type (free/paid) - [ ] Status - [ ] Payment status - [ ] Problem summary (truncated in PDF if > 500 chars) - [ ] CSV format with streaming download - [ ] PDF format with professional layout and Libra branding - [ ] Column headers based on admin's preferred language - [ ] Use translation keys from `lang/{locale}/export.php`