Advertisement
Guest User

Untitled

a guest
Sep 25th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <nav class="header__nav-link--list">
  2. <ul class="header__nav-link--list__item">
  3.  
  4. @foreach($journal_category as $category)
  5. <li class="link-item drop-item">
  6. <a href="{{route('category', ['alias' => $category->alias])}}" class="link">
  7. {{$category->name}}<i class="fas fa-chevron-down"></i>
  8. </a>
  9. <div class="drop-menu">
  10. @if($category->childs)
  11. <ul class="drop-menu__list">
  12. @foreach($category->childs as $child_category)
  13. @if(count($child_category->articles) >= 1)
  14. <li class="drop-menu__list--item">
  15. <a href="{{route('category', ['alias' => $child_category->alias])}}" class="link">
  16. {{$child_category->name}}
  17. </a>
  18. </li>
  19. @endif
  20. @endforeach
  21. </ul>
  22. @endif
  23. </div>
  24. </li>
  25. @endforeach
  26. </ul>
  27. </nav>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement