@section('title', $category->title)

<div class="secondLeft">
    <div class="leftNav">
        <div class="leftNav-title"
             style="background-image: url({{ asset('assets/index/images/leftBack.png') }});">{{ $parent->title }}</div>
        <ul class="leftNav-list">
            @if ($parent->children->isNotEmpty())
                @foreach ($parent->children()->orderBy('order', 'asc')->get() as $child)
                    <li @if($category->id==$child->id) class="active" @endif>
                        <a href="{{ $child->link }}"><span>{{ $child->title }}</span></a>
                    </li>
                @endforeach
            @endif
        </ul>
    </div>
    <a href="#" class="leftBanner">
        <img src="{{ asset('assets/index/images/leftBanner.png') }}" alt="">
    </a>
</div>
