From c3e34984d606c84bbcc847b471ccb619be3f7ac8 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Thu, 6 Aug 2026 09:57:35 +0200 Subject: [PATCH 1/3] fix: :children_crossing: check if nav links is empty, then display or not the button navigation in front --- .../Controllers/Fo/StaticPageController.php | 2 +- .../Bo/Stickies/StoreStickyRequest.php | 2 +- .../views/fo/pages/commitments.blade.php | 40 ++++++++++--------- resources/views/fo/pages/hire.blade.php | 40 ++++++++++--------- resources/views/fo/pages/unveil.blade.php | 40 ++++++++++--------- 5 files changed, 65 insertions(+), 59 deletions(-) diff --git a/app/Http/Controllers/Fo/StaticPageController.php b/app/Http/Controllers/Fo/StaticPageController.php index 2371b81..8a73d8b 100644 --- a/app/Http/Controllers/Fo/StaticPageController.php +++ b/app/Http/Controllers/Fo/StaticPageController.php @@ -82,7 +82,7 @@ class StaticPageController extends Controller public function unveil(): \Illuminate\Contracts\View\View { $staticPageModel = StaticPage::query()->where('type', StaticPageType::unveil)->first(); - $sectionModels = Section::query()->where('page_id', $staticPageModel->id)->get(); + $sectionModels = Section::query()->where('page_id', $staticPageModel->getKey())->get(); $historicalMilestoneModels = HistoricalMilestone::query()->orderBy('year', 'ASC')->get(); /** @var \Illuminate\Database\Eloquent\Collection */ $siteModelList = Site::query()->orderBy('order')->get(); diff --git a/app/Http/Requests/Bo/Stickies/StoreStickyRequest.php b/app/Http/Requests/Bo/Stickies/StoreStickyRequest.php index a93592b..7533e86 100644 --- a/app/Http/Requests/Bo/Stickies/StoreStickyRequest.php +++ b/app/Http/Requests/Bo/Stickies/StoreStickyRequest.php @@ -56,7 +56,7 @@ class StoreStickyRequest extends FormRequest 'type' => trans('validation.custom.type'), 'title' => trans('validation.attributes.title'), 'anchor' => trans('validation.custom.anchor'), - 'color' => trans('validation.custom.color'), + 'color' => trans('validation.custom.color'), ]; } } diff --git a/resources/views/fo/pages/commitments.blade.php b/resources/views/fo/pages/commitments.blade.php index 4af179f..ef069a5 100644 --- a/resources/views/fo/pages/commitments.blade.php +++ b/resources/views/fo/pages/commitments.blade.php @@ -17,27 +17,29 @@ @section('content')
-