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