update
This commit is contained in:
@@ -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' : '';
|
||||
}
|
||||
Reference in New Issue
Block a user