@php
use App\Helpers\RouteTranslator;
if (!function_exists('getTranslatedUrl')) {
function getTranslatedUrl(string $urlKey): string
{
return RouteTranslator::getUrl($urlKey, app()->getLocale());
}
}
$currentKey = RouteTranslator::detectKey('/' . ltrim(request()->path(), '/'));
@endphp