@php $serviceName = optional( $application->items->first()?->itemDetails ->firstWhere(fn($detail) => $detail->formDetail->name === 'Service Name') )->value ?? '-'; $serviceDescription = optional( $application->items->first()?->itemDetails ->firstWhere(fn($detail) => $detail->formDetail->name === 'Service Description') )->value ?? '-'; $attachments = collect( optional($application->items->first()?->itemDetails) ->where(fn($detail) => $detail->formDetail->input_type === 'file_upload') ); @endphp

{{ __('Service Details') }}

{{ $application->product_group?->parent?->parent?->name ?? '-' }}
{{ $application->product_group?->parent?->name ?? '-' }}
{{ $application->product_group?->name ?? '-' }}
@if (!empty($hasAction) && $hasAction) @if ($application->certificate_no != null) @else @endif @endif @if (!empty($hasAction) && $hasAction) {{-- @if ($application->certificate_no != null) @else --}} {{-- @endif --}} @endif
{{ __('Service List') }}
{{ __('No.') }} {{ __('Service Name') }} {{ __('Description') }}{{ __('Action') }}{{ __('Document Uploaded') }}
1. {{ $serviceName }} {{ $serviceDescription }} @if (auth()->user()->roles->isNotEmpty()) @else @endif @if ($attachments->isNotEmpty()) @include('pages.company.application.partials.datatables.attachments', ['attachments' => $attachments]) @else No documents available @endif