Guest User

Untitled

a guest
Mar 19th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @foreach($categories as $category)
  2. <li>
  3. <a <?php if($category->id == $activecategory[0]->id){echo "class=cat-akt";} ?> href="/category/{{$category->slug}}/">{{$category->name}}
  4. </a>
  5. </li>
  6. @if($category->ProductCategory->count() > 0)
  7. @include('layouts.category',['categories' => $category->ProductCategory])
  8. @endif
  9. @endforeach
Add Comment
Please, Sign In to add comment