{{-- DYNAMIC TAB LIST START--}}
@foreach ($data['owner']->facility_products as $product) @php $product_uploaded_documents =$data['owner']->uploaded_noc_documents_by_products($product->id); $product_uploaded_documents_array = ($product_uploaded_documents) ? explode(',',$product_uploaded_documents) : []; @endphp
{{-- Tab Content Start --}} @foreach ($data['owner']->checked_noc_documents_product($product->id) as $document) @csrf @php $is_exist = false; $owner_document_id = null; foreach($product_uploaded_documents as $owner_document){ if($document->noc_document_id == $owner_document->noc_document_id){ $is_exist = true; $owner_document_id = $owner_document->id; break; } } @endphp @endforeach
{{__('lang.document')}} {{__('lang.name')}} {{__('lang.status')}} {{__('lang.upload')}} {{__('lang.options')}}
file_present {{ $document->noc_document->name }} {{ $is_exist ? 'Uploaded' : 'Pending' }}
{{-- Tab Content End --}} {{-- Other Document Start --}} {{__('lang.other_documents')}}
@if (count($data['owner']->uploaded_other_documents_by_products($product->id))>0) @foreach ($data['owner']->uploaded_other_documents_by_products($product->id) as $key => $document) @endforeach
{{__('lang.document')}} {{__('lang.name')}} {{__('lang.options')}}
file_present {{ $document->file_name }}
@else
{{__('lang.there_has_no_data')}}
@endif
{{-- add below --}}
{{-- Other Document END --}}
@endforeach
{{-- DYNAMIC TAB LIST END --}}