@php $products = $application->items; @endphp

{{ __('Product Details') }}

{{ $application->product_group?->parent?->parent?->name ?? '-' }}
{{ $application->product_group?->parent?->name ?? '-' }}
{{ $application->product_group?->name ?? '-' }}
@foreach ($products as $product) @php $models = ['Model', 'Product code/ Model']; @endphp @if (!empty($hasAction) && $hasAction) {{-- @if ($application->certificate_no != null) @else --}} {{-- @endif --}} @endif @endforeach
{{ __('Product List') }}
{{ __('No.') }} {{ __('Product Name') }} {{ __('Brand') }} {{ __('Model') }} {{ __('Document Uploaded') }}
{{ $loop->iteration }}. {{ $product->itemDetails->firstWhere(fn($detail) => $detail->formDetail->name === 'Product Name')?->value ?? '-' }} {{ $product->itemDetails->firstWhere(fn($detail) => $detail->formDetail->name === 'Brand')?->value ?? '-' }} {{ $product->getItemDetailValue($models) ?? '-' }} @if (auth()->user()->roles->isNotEmpty()) @else @endif @if ($attachments = $product->itemDetails->where(fn($detail) => ($detail->formDetail->input_type == 'image' || $detail->formDetail->input_type == 'file_upload' || $detail->formDetail->input_type == 'list_uploads'))) @include('pages.company.application.partials.datatables.attachments', ['attachments' => $attachments]) @else No documents available @endif