@extends('layouts.app')

@section('content')
    <!-- Start 内容区域 -->
    <div class="second">
        <div class="container">
            <div class="secondCont">
                <!-- 导航 -->
                @if($all_categorys->isNotEmpty())
                    @foreach($all_categorys as $category)
                        @if($category->children->isNotEmpty())
                            <div class="itemize">
                                <div class="itemize-title">{{ $category->title }}</div>
                                <ul class="itemize-ul">
                                    @foreach($category->children()->where('status',1)->get() as $child)
                                        <li>
                                            <a href="{{ $child->link }}">{{ $child->title }}</a>
                                        </li>
                                    @endforeach
                                </ul>
                            </div>
                        @endif

                    @endforeach
                @endif
            </div>
        </div>
    </div>
@endsection
