@foreach ((new \App\Models\Access\Menu())->getMenu() as $parent) @php $isActive = false; if (!empty($parent['children'])) { foreach ($parent['children'] as $child) { $href = $child['href']; $urlPath = parse_url($href, PHP_URL_PATH); if (request()->is(trim($urlPath, '/') . '*')) { $isActive = true; break; } } } else { $href = $parent['href']; $urlPath = parse_url($href, PHP_URL_PATH); if (request()->is(trim($urlPath, '/') . '*')) { $isActive = true; } } @endphp
{{ __($parent['name']) }} @if ($parent['has_children']) @endif @if (!empty($parent['children']))
@foreach ($parent['children'] as $child) @php $href = $child['href']; $isChildActive = false; $urlPath = parse_url($href, PHP_URL_PATH); if (request()->is(trim($urlPath, '/') . '*')) { $isChildActive = true; } @endphp {{ __($child['name']) }} @endforeach
@endif
@endforeach
{{__('Wagons')}}
@include('partial.languages')
@foreach ((new \App\Models\Access\Menu())->getMenu() as $parent)

{{ __($parent['name']) }}

@endforeach

{{ __('Wagons') }}

@foreach (\App\Models\Finance\ExchangeRate::getTodayRates() as $rate) {{ $rate->currency->name }}: {{ $rate->rate }} @if (!$loop->last) | @endif @endforeach