restaturacao da cor nornmal de porque incvestir em Mocambique

This commit is contained in:
2026-10-26 16:02:04 +02:00
parent ae0d74bb3a
commit 71551deb73
11 changed files with 315 additions and 124 deletions
+11
View File
@@ -34,6 +34,17 @@ final class SectorInvestment
return [...$sector->only(['id', 'name', 'slug']), 'href' => SectorOrganization::href($sector->slug)];
}
/** Public detail shared by the catalogue and the individual sector page. */
public function page(Sector $sector): array
{
return [
'sector' => $sector->only(['id', 'name', 'slug', 'description', 'short_description']),
'sectorEntry' => $this->publicView($sector),
'opportunities' => SectorOrganization::opportunities($sector)->latest('published_at')
->limit(12)->get(['id', 'title', 'slug', 'province', 'summary']),
];
}
public function publicView(Sector $sector): array
{
$query = SectorOrganization::opportunities($sector);