From 93b0c83704e88ae52d7e3c6a1dd2e0fec3aa5147 Mon Sep 17 00:00:00 2001 From: Corentin Huet Date: Thu, 7 May 2026 12:19:59 +0200 Subject: [PATCH 1/2] fix: :bug: resolve various bugs with footer links --- resources/views/front/layouts/footer.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/front/layouts/footer.blade.php b/resources/views/front/layouts/footer.blade.php index 3a870df3..e1f943a2 100644 --- a/resources/views/front/layouts/footer.blade.php +++ b/resources/views/front/layouts/footer.blade.php @@ -60,7 +60,7 @@ @endif @if (isset($pageFinance))
  • - {{ $pageFinance->title }} + {{ $pageFinance->title }}
  • @endif @if (isset($pageNosMetiers)) @@ -69,7 +69,7 @@ @endif
  • - + {{ ucfirst(__('front.contact.index')) }}
  • From 1f8c0f4860616dca187f91778c85e98522adc00d Mon Sep 17 00:00:00 2001 From: Corentin Huet Date: Thu, 7 May 2026 14:33:43 +0200 Subject: [PATCH 2/2] feat: :sparkles: add companies endpoint --- .../Controllers/Api/CompanyController.php | 35 +++++++++++++++++++ bootstrap/app.php | 1 + routes/api.php | 6 ++++ 3 files changed, 42 insertions(+) create mode 100644 app/Http/Controllers/Api/CompanyController.php create mode 100644 routes/api.php diff --git a/app/Http/Controllers/Api/CompanyController.php b/app/Http/Controllers/Api/CompanyController.php new file mode 100644 index 00000000..482f4a45 --- /dev/null +++ b/app/Http/Controllers/Api/CompanyController.php @@ -0,0 +1,35 @@ +where('published', true)->with('companyActivity', 'companySector')->get(); + + $data = $companies->map(function ($company) { + return array_filter([ + 'name' => $company->name, + 'logo' => $company->logo, + 'informations' => $company->informations, + 'responsable' => $company->responsable, + 'employees' => $company->employees, + 'url' => $company->url, + 'latitude' => $company->latitude, + 'longitude' => $company->longitude, + 'type_activite' => $company->companyActivity->name, + 'filiere' => $company->companySector?->name, + ], fn($value) => !is_null($value)); + }); + + return response()->json($data); + } +} diff --git a/bootstrap/app.php b/bootstrap/app.php index 8f1e3e88..e6c65252 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -14,6 +14,7 @@ return Application::configure(basePath: dirname(__DIR__)) __DIR__ . '/../routes/web-front.php', __DIR__ . '/../routes/web-back.php', ], + api: __DIR__.'/../routes/api.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware) { diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 00000000..2e71aa20 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,6 @@ +