From fa99edbe7ca2ad0995d01cb81a96503f91be121d Mon Sep 17 00:00:00 2001 From: Admin Date: Wed, 19 Aug 2026 15:44:01 -0700 Subject: [PATCH] fix: update helpers.php --- app/helpers/helpers.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/helpers/helpers.php b/app/helpers/helpers.php index 225fde7..05bad26 100644 --- a/app/helpers/helpers.php +++ b/app/helpers/helpers.php @@ -26,6 +26,17 @@ if (!function_exists('getFileUrl')) { return asset('storage/' . $file->path); } + if (!function_exists('activeAccountSidebar')) { + function activeAccountSidebar(string $routeName): string + { + if (\Illuminate\Support\Facades\Route:: currentRouteName() == $routeName) { + return 'bg-blue-500/10 text-blue-500'; + } + + return 'hover:text-blue-500'; + } + } + if (!function_exists('activeAdminSidebar')) { function activeAdminSidebar(string|array $routeNames): string