@if(empty($submission))
{{-- Services on OOTBO + per-service approval --}}
{{-- Action buttons --}}
Submission data could not be loaded. The API may be unavailable.
@endif
@php
$isFinalized = in_array($submission['status'] ?? '', ['verified', 'rejected']);
@endphp
{{-- Top row: PDF viewer + Vendor declared data --}}
{{-- PDF / Document viewer: License + NOC + Additional tabs share one preview frame --}}
@php
$documentTabs = [
'license' => [
'label' => 'License Document',
'url' => $submission['document_url'] ?? null,
'exists' => $submission['document_exists'] ?? false,
'empty' => 'No document uploaded',
],
'noc' => [
'label' => 'NOC Document',
'url' => $submission['noc_document_url'] ?? null,
'exists' => $submission['noc_document_exists'] ?? false,
'empty' => 'NOC Document not available.',
],
'additional' => [
'label' => 'Additional Document',
'url' => $submission['additional_document_url'] ?? null,
'exists' => $submission['additional_document_exists'] ?? false,
'empty' => 'No additional document uploaded.',
],
];
$activeDoc = $documentTabs['license'];
@endphp
{{-- Vendor-declared data --}}
{{-- Portal verify link --}}
{{-- Verified details form --}}
{{ $activeDoc['url'] ? $activeDoc['label'] . ' could not be found. The file may have been moved or deleted.' : $activeDoc['empty'] }}
Vendor-Declared Details
@if(!empty($submission['status'])) {{ $submission['is_renewed'] ? 'Renewed' : ($submission['status'] === 'renewal_pending' ? 'Expired' : ucwords(str_replace('_', ' ', $submission['status']))) }} @endif| License Number | {{ $submission['license_number'] ?? '—' }} |
|---|---|
| Issuing Authority | {{ $submission['issuing_authority_name'] ?? ($submission['issuing_authority_custom'] ?? '—') }} |
| Declared Expiry | @if(!empty($submission['declared_expiry_date'])) {{ viso_date_format($submission['declared_expiry_date']) }} @else — @endif |
| Legal Status | {{ $submission['legal_status'] ?? '—' }} |
| Clarification Count | {{ $submission['clarification_count'] ?? 0 }} / 1 |
| Last Rejection Code | {{ $submission['rejection_code'] }} {{ $submission['rejection_reason'] ?? '' }} |
Verify on Portal
Open the government portal to verify this license, then paste the verified details below.
Open DED (Mainland) Open DMCC Open TECOMVerified Details (paste from portal)
Use the portal date, NOT the vendor's declared date.
Services on OOTBO @if(!empty($submission['services'])) {{ count($submission['services']) }} @endif
@if(!empty($submission['services']))
@foreach($submission['services'] as $service)
@if(!empty($service['rejection_reason']))
{{ $service['rejection_reason'] }}
@endif
@endforeach
@else
@php
$svcStatus = $service['verification_status'] ?? 'pending';
@endphp
{{ ucwords(str_replace('_', ' ', $svcStatus)) }}
@if(!empty($service['rejection_code']))
{{ $service['rejection_code'] }}
@endif
No services found for this vendor.
@endif
@php
$finalizedTitle = $isFinalized ? 'title="This submission has already been ' . $submission['status'] . '"' : '';
@endphp
@if(($submission['status'] ?? '') === 'verified')
Make Payment
@else
@endif