@foreach ($data['owner']->facility_products_tenant as $product)
@php
$product_checklist = $data['owner']->checked_noc_documents_product($product->id)->implode('noc_document_id',',');
$product_checklist_array = ($product_checklist) ? explode(',',$product_checklist) : [];
@endphp
{{-- Tab Content Start --}}
{{-- Tab Card Header Start --}}
{{-- Tab Card Header End --}}
{{-- Tab Card Body Start --}}
@foreach ($product->checklist_category->category_items ?? [] as $checklist_item)
@php
$checklist = $checklist_item->noc_checklist;
$checked = in_array($checklist->id,$product_checklist_array) ? 'checked' : '';
@endphp
@endforeach
{{-- Tab Card Body End --}}
{{-- Tab Content End --}}
@endforeach
{{-- DYNAMIC TAB LIST END --}}