From 7da35f79bbbd5330b78234e70ef1de65b8024a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Tue, 4 Nov 2025 15:24:13 -0300 Subject: [PATCH] Update menu component localization: Enhanced the menu blade template to utilize the translation feature for item titles, ensuring proper localization support for both English and Turkish languages. This change improves the user experience by dynamically displaying translated titles when available. --- resources/views/components/custom/menu.blade.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/views/components/custom/menu.blade.php b/resources/views/components/custom/menu.blade.php index 3cd7efd..7adbfae 100644 --- a/resources/views/components/custom/menu.blade.php +++ b/resources/views/components/custom/menu.blade.php @@ -30,7 +30,7 @@ $menuItems = \App\Models\Page::with(['children' => function ($query) { - {{ $item->title }} + {{ $item->translate('title') ?: $item->title }}