@if($parent)
    <div class="col-xs-12 col-md-3 secondLeft">
        <div class="secondLeft-title">
            <span>{{ $parent->title }}</span>
            <img src="/assets/index/images/secondLeft_logo.png"/>
        </div>
        <ul class="secondLeft-list">
            @if ($parent->childrens->isNotEmpty())
                @foreach ($parent->childrens()->orderBy('order','asc')->get() as $child)
                    <li @if($category->id==$child->id) class="active" @endif>
                        @if(in_array($parent->id,config('setting.no_href')) || in_array($child->id,config('setting.no_href')))
                            <a><span>{{ $child->title }}</span></a>
                        @else
                            <a href="{{ $child->link }}" target="_blank"><span>{{ $child->title }}</span></a>
                        @endif
                    </li>
                @endforeach
            @endif
        </ul>
        <div class="secondLeft-img">
            <img src="/assets/index/images/secondLeft_back.png"/>
        </div>
    </div>
@endif

