fix: update helpers.php

This commit is contained in:
2026-08-19 15:44:01 -07:00
parent dc77f3b50f
commit fa99edbe7c
+11
View File
@@ -26,6 +26,17 @@ if (!function_exists('getFileUrl')) {
return asset('storage/' . $file->path); 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')) { if (!function_exists('activeAdminSidebar')) {
function activeAdminSidebar(string|array $routeNames): string function activeAdminSidebar(string|array $routeNames): string