HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/Eurotools/euro-tools.nl/resources/views/site/partials/sideMenu.blade.php
<nav class="category-menu">
    <h2>{{$links->categories->name}}</h2>
    {{--{{$category->code_name}}--}}
    <ul>
        @if(isset($categories))
            @foreach($categories->children as $categoryItem)
                @if(isset($categoryItem->translation))
                    @php $iso = \App::getSite()->languages->where('id', "=", $categoryItem->translation->language_id)->first()->iso_2; @endphp
                    <li data-id="{{$categoryItem->id}}" {{ ( !empty($category) && ((string)$categoryItem->code_name === (string)$category->code_name || (string)$categoryItem->code_name === (string)$category->getParent()->code_name)) ? 'class=active' : ''}}>
                        <a href="/{{$iso}}/{{$categoryItem->translation->slug}}">
                            {{$categoryItem->translation->name}}
                        </a>
                    </li>
                    @if(count($categoryItem->children) > 0 && \Auth::check())
                        <ul data-parent-id="{{$categoryItem->id}}" {{ !empty($category) && ((string)$categoryItem->code_name === (string)$category->code_name || (string)$categoryItem->code_name === (string)$category->getParent()->code_name) ? 'class=open' : ''}}>
                            <div class="bg"></div>
                            <li class="subcategory-header">
                                <span class="back-button">&larr;</span>
                                <a href="/{{$iso}}/{{$categoryItem->translation->slug}}">
                                    <h4>{{$categoryItem->translation->name}}</h4>
                                    @include('site.svg.icon.category_overview')
                                </a>
                            </li>
                            @if(count($categoryItem->children) > 0)
                                @foreach($categoryItem->children as $subcategoryItem)
                                    @if(isset($subcategoryItem->translation))
                                        <li {{ !empty($category) && $subcategoryItem->code_name === $category->code_name  ? 'class=active' : ''}}>
                                            <a href="/{{$iso}}/{{$categoryItem->translation->slug}}/{{$subcategoryItem->translation->slug}}">
                                                {{$subcategoryItem->translation->name}}
                                            </a>
                                        </li>
                                    @endif
                                @endforeach
                            @endif
                        </ul>
                    @endif
                @endif
            @endforeach
        @endif
    </ul>
</nav>
<div class="side-block first home">
    @if(!\Auth::check())
        <a class="button yellow filled arrow"
           href="/{{$links->register->route}}">@lang('site/global.register')
        </a>
    @endif
</div>
<div class="side-block second">
    @include('site.svg.icon.question_label')
    <p>
        @lang('site/global.needHelp')<br>
        @lang('site/global.call') <a href="tel:+31495430460">+31 (0)495 43 04 60</a>
    </p>
    <a class="button arrow" href="/{{$links->contact->route}}">
        {{$links->contact->name}}
    </a>
</div>