This commit is contained in:
pbao9
2026-01-30 08:23:19 +07:00
parent a3c3f4a577
commit 8b4c93e820
210 changed files with 71688 additions and 590 deletions
+14
View File
@@ -91,3 +91,17 @@ if (!function_exists('generate_order_number')) {
}
}
function active_class($path, $active = 'active')
{
return request()->is(...(array) $path) ? $active : '';
}
function is_active_route($path)
{
return request()->is(...(array) $path) ? 'true' : 'false';
}
function show_class($path)
{
return request()->is(...(array) $path) ? 'show' : '';
}