@php /* Expects $items (Collection) */ @endphp @if($items->count())
@foreach($items as $itm)
 
Question
Created By
Modified date
Action
Drag
{{ $itm->type_name ?: '-' }} @if($itm->is_grouped) Grouped @endif
@if($itm->enable_sides && $itm->sides->count() > 0)
@foreach($itm->sides as $side) {{ $side->side_name }} @endforeach
@endif
{{ $itm->created_by_display ?: '-' }}
{{ \App\Helpers\Helper::showdate(($itm->updated_at ?? $itm->created_at), false) ?: '-' }}
@php $isTenantAdmin = (auth()->user()->roles->first()->slug ?? '') === 'tenant-admin'; $hasMasterId = !empty($itm->master_item_id); $canEdit = !($isTenantAdmin && $hasMasterId); @endphp @if($canEdit) @else @endif
@php $accId = 'accItem_'.$itm->id; $headingId = 'heading_'.$itm->id; $collapseId = 'collapse_'.$itm->id; @endphp
@if($itm->is_grouped)
Loading categories...
@endif
@endforeach
@else
No items added yet.
@endif
@include('admin.report-templates.materials.partials.modal_add')