From 01ef804c037a322963a2aa6ada98610b8d307bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Tue, 4 Nov 2025 11:48:24 -0300 Subject: [PATCH] Add custom menu and navbar components: Introduced a new menu component to dynamically render menu items from the Pages model, including nested children. Added a social media navbar component for enhanced user engagement. Implemented an offcanvas footer for additional contact information and social links, improving overall site navigation and accessibility. --- .../views/components/custom/menu.blade.php | 77 +++++++++++++++++++ .../components/custom/navbar-other.blade.php | 17 ++++ .../components/custom/offcanvas.blade.php | 13 ++++ 3 files changed, 107 insertions(+) create mode 100644 resources/views/components/custom/menu.blade.php create mode 100644 resources/views/components/custom/navbar-other.blade.php create mode 100644 resources/views/components/custom/offcanvas.blade.php diff --git a/resources/views/components/custom/menu.blade.php b/resources/views/components/custom/menu.blade.php new file mode 100644 index 0000000..3cd7efd --- /dev/null +++ b/resources/views/components/custom/menu.blade.php @@ -0,0 +1,77 @@ + function ($query) { + $query->where('status', 'published') + ->where('show_in_menu', true) + ->orderBy('sort_order', 'asc') + ->orderBy('title', 'asc'); + }, 'children.children' => function ($query) { + $query->where('status', 'published') + ->where('show_in_menu', true) + ->orderBy('sort_order', 'asc') + ->orderBy('title', 'asc'); + }]) + ->whereNull('parent_id') + ->where('status', 'published') + ->where('show_in_menu', true) + ->orderBy('sort_order', 'asc') + ->orderBy('title', 'asc') + ->get(); +?> + +@if($menuItems->isNotEmpty()) + +@endif \ No newline at end of file diff --git a/resources/views/components/custom/navbar-other.blade.php b/resources/views/components/custom/navbar-other.blade.php new file mode 100644 index 0000000..7a732e5 --- /dev/null +++ b/resources/views/components/custom/navbar-other.blade.php @@ -0,0 +1,17 @@ +asdad \ No newline at end of file diff --git a/resources/views/components/custom/offcanvas.blade.php b/resources/views/components/custom/offcanvas.blade.php new file mode 100644 index 0000000..87b4e0f --- /dev/null +++ b/resources/views/components/custom/offcanvas.blade.php @@ -0,0 +1,13 @@ + \ No newline at end of file