@if ($list_items) @foreach ($list_items as $list_item) {{ $loop->iteration }}
{{-- Parent Breadcrumb --}} @if($list_item->parent) {{ $list_item->parent->breadcrumb}} > @endif
{{ $list_item->indented_title ?? $list_item->title }}
@if($list_item->course)
{{ $list_item->course->title }}
@endif @if($list_item->unit) {{ $list_item->unit->title }} @endif @if(!$list_item->course && !$list_item->unit) No Course/Unit @endif
@if ($list_item->status === 'active') Active @else Inactive @endif
{{ $list_item->getQuestionCount() }} Questions
{{ $list_item->creator ? $list_item->creator->name : 'Unknown' }}
{{ $list_item->created_at->format('d-m-Y, g:i A') }} @include('admin.crud.action-dropdown', [ 'cloneUrl' => url('admin/question-banks/'.$list_item->id.'/clone'), 'cloneTitle' => 'Clone Question Bank', 'editUrl' => url('admin/question-banks/'.$list_item->id.'/edit'), 'editTitle' => 'Update Question Bank', 'deleteUrl' => route('admin.question-banks.destroy', $list_item->id), 'redirectUrl' => route('admin.question-banks.index') ]) @endforeach @endif