fix: update helpers.php
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user