diff --git a/app/Exports/HolidayCalendarExport.php b/app/Exports/HolidayCalendarExport.php new file mode 100644 index 0000000..dc850af --- /dev/null +++ b/app/Exports/HolidayCalendarExport.php @@ -0,0 +1,52 @@ +id, + $row->date, + $row->description, + $row->type, + $row->created_at, + $row->updated_at + ]; + } + + public function headings(): array + { + return [ + 'ID', + 'Date', + 'Description', + 'Type', + 'Created At', + 'Updated At' + ]; + } + + public function columnFormats(): array + { + return [ + 'A' => NumberFormat::FORMAT_NUMBER, + 'B' => NumberFormat::FORMAT_DATE_DDMMYYYY, + 'E' => NumberFormat::FORMAT_DATE_DATETIME, + 'F' => NumberFormat::FORMAT_DATE_DATETIME + ]; + } +}