{{-- Layout --}} @extends('teacher.layout.layout') {{-- Page Title --}} @section('title','GAS LMS | Question Category') {{-- Breadcrumb section --}} @section('breadcrumb') @include('components._breadcrumb', ['items' => ['Question categories' => route('teacher.questioncategory.index',$cid)]]) @endsection {{-- Content --}} @section('content')
Question Category There are {{$question_subcategories->count()}} subcategories
{{-- @php $count=0; @endphp @foreach ($question_subcategories as $category) @foreach ($category->children as $subcategory) @endforeach @endforeach
id cateory name Actions
{{++$count}} {{$subcategory->category_name}}
@if ($subcategory->children->count() > 0) View subcategories @endif
--}}
    @foreach ($question_subcategories as $category)
  • {{$category->category_name}}
  • @endforeach
@endsection @section('js') @endsection