@extends('layouts.app') @section('content')
@forelse ($categories as $category) @php $tests = $category->getVisibleTests(Auth::user()); @endphp @if ($tests->count()>0)
@php $expanded = true; $show = "show"; $symbol = "\u{25BC}"; if ($category->isCollapsed(Auth::user())) { $expanded = false; $show = ""; $symbol = "\u{25B6}"; } @endphp
{{ $category->name }}
@foreach ($tests as $test) @include ('test.index') @endforeach
@endif @empty @endforelse
@endsection @section('scripts') @parent @if (Auth::user()->hasRole('Teacher')) @endif @endsection