domainExport->query(); } public function headings(): array { return $this->domainExport->headings(); } public function map(mixed $row): array { return $this->domainExport->map($row); } /** * Apply Excel formatting to specific columns (Dates, Currency, Percentages). */ public function columnFormats(): array { return $this->domainExport->columnFormats(); } /** * Apply visual styling to specific rows or columns. */ public function styles(Worksheet $sheet): void { $sheet->freezePane('A2'); $sheet->getPageSetup()->setOrientation('landscape'); $columnStyle = $sheet->getStyle('A1:'.$sheet->getHighestColumn().$sheet->getHighestRow()); $columnStyle->getAlignment()->setWrapText(true); $columnStyle->getBorders()->getAllBorders()->setBorderStyle(Border::BORDER_THIN); $columnStyle->getAlignment()->setHorizontal(Alignment::HORIZONTAL_CENTER); } }