#134 - fill users data for resume #144
| @@ -98,10 +98,15 @@ class ResumeGenerator | |||||||
|             "start_date#{$index}" => Carbon::create($project["startDate"])->toDisplayString(), |             "start_date#{$index}" => Carbon::create($project["startDate"])->toDisplayString(), | ||||||
|             "end_date#{$index}" => Carbon::create($project["endDate"])->toDisplayString(), |             "end_date#{$index}" => Carbon::create($project["endDate"])->toDisplayString(), | ||||||
|             "description#{$index}" => $project["description"], |             "description#{$index}" => $project["description"], | ||||||
|             "tasks#{$index}" => $project["tasks"], |             "tasks#{$index}" => $this->withNewLines($project["tasks"]), | ||||||
|         ]; |         ]; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     protected function withNewLines(string $text): string | ||||||
|  |     { | ||||||
|  |         return Str::replace("\n", "</w:t><w:br/><w:t>", $text); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     protected function getProjectTechnologies(array $project, int $index): array |     protected function getProjectTechnologies(array $project, int $index): array | ||||||
|     { |     { | ||||||
|         $technologies = new Collection($project["technologies"] ?? []); |         $technologies = new Collection($project["technologies"] ?? []); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user