@foreach ($application->services as $service) @php $serviceName = $service->serviceMaster?->c_serv_long_name; $areaName = $service->serviceAreaMaster?->c_serv_name; $circleName = $service->circle?->c_cir_long_desc ? ucwords(strtolower($service->circle->c_cir_long_desc)) : null; $appTypeInfo = $this->getAppType($application->c_app_type); $migratedStatus = $appTypeInfo['desc']; @endphp {{--
--}}
@if(isset($service->license_name) && !empty($service->license_name) && in_array($service->license_name, ['NSO','VNO']))
{{ $service->license_name }}
@endif @if ($serviceName)
{{ $serviceName }}
@endif @if ($areaName)
Area: {{ $areaName }}
@endif @if ($circleName)
Circle: {{ $circleName }}
@endif @if (!empty($service->c_license_no))
Authorisation No: {{ $service->c_license_no }}{{ $migratedStatus }}
@elseif(!empty($application->c_license_no))
Authorisation No: {{ $application->c_license_no }}{{ $migratedStatus }}
@endif @if (!empty($service->d_effective_date))
Effective Date: {{ formatDate($service->d_effective_date,'d-m-Y') }}
@elseif(!empty($application->d_effective_date))
Effective Date: {{ formatDate($application->d_effective_date,'d-m-Y') }}
@endif @if($migratedStatus == '(NEW)' && $application->c_appln_status == 'LICN_ISSUED') @if(isset($service->latestFile->c_file_name) && !empty($service->latestFile->c_file_name))
Download Certificate
@elseif(isset($application->files[0]->c_file_name) && !empty(isset($application->files[0]->c_file_name)))
Download Certificate
@endif @else @if(isset($application->files[0]->c_file_name) && $application->c_appln_status == 'LICN_ISSUED')
Download Certificate
@endif @endif
@endforeach