                        {{-- if parent category selected --}}
                        @if ($category->slug == $categoryRoot->slug)
                        {{ $categoryRoot->title }}
                        @else
                        {{-- if sub category selected --}}
                        <a href="{{ route('blog.posts.category', ['slug' => $categoryRoot->slug]) }}">
                            {{ $categoryRoot->title }}
                        </a>
                        @endif
                        <!-- category herit:start -->