@if(Auth::guard('admin')->check()) @foreach($cat->subs as $sub) @endforeach @else @foreach($cat->subs as $sub) @endforeach @endif