wip
This commit is contained in:
parent
cba8199178
commit
3864b5394c
@ -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"] ?? []);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user