/** * Export list of clients to Excel * * @return Excel */ public function export() { $clients = $this->clients->getCSVReport(); $excel = new ExportToExcel($clients, 'List of Clients'); return $excel->export(); }
/** * Export list of employees to Excel * * @return Excel */ public function export() { $rejectReasons = $this->rejectReasonRepo->getCSVReport(); $excel = new ExportToExcel($rejectReasons, 'List of Reject Reasons'); return $excel->export(); }
/** * Export list of employees to Excel * * @return Excel */ public function export() { $employees = $this->employees->getCSVReport(); $excel = new ExportToExcel($employees, 'List of Employees'); return $excel->export(); }
/** * Export list of departments to Excel * * @return Excel */ public function export() { $departments = $this->departments->getCSVReport(); $excel = new ExportToExcel($departments, 'List of Departments'); return $excel->export(); }