Document Details

Document ID: {{ $documentId }} - {{ $countryName }} @if($documentInfo && $documentInfo->key)
Document Key: {{ $documentInfo->key }} @endif

Document Information
@if($documentInfo) @php $docData = json_decode($documentInfo->data, true) ?? []; @endphp
Database Fields
@if(isset($documentInfo->created_at))@endif @if(isset($documentInfo->updated_at))@endif
id{{ $documentInfo->id }}
created_at{{ $documentInfo->created_at }}
updated_at{{ $documentInfo->updated_at }}
@if($botRecords && $botRecords->count() > 0)
Bot Records
@foreach($botRecords as $bot) @endforeach
Bot ID Status Created At Updated At Actions
{{ $bot->id }} @if($bot->status == 'IN_QUEUE') {{ $bot->status }} @elseif($bot->status == 'PROCESSING') {{ $bot->status }} @elseif($bot->status == 'COMPLETED') {{ $bot->status }} @elseif($bot->status == 'FAILED') {{ $bot->status }} @else {{ $bot->status }} @endif {{ $bot->created_at }} {{ $bot->updated_at }}
@endif @if(!empty($docData))
JSON Data Fields
@php // Definir el orden prioritario de campos $priorityFields = ['last_name', 'name', 'passport', 'nationality', 'birth_date', 'country', 'occupation', 'gender', 'phone_code', 'phone']; // Inyectar campo hardcodeado 'occupation' con valor 'OTHER' $docData['occupation'] = 'OTHER'; // Crear arrays separados para campos prioritarios y resto $priorityData = []; $remainingData = []; foreach($docData as $key => $value) { if($key !== 'travelers') { if(in_array($key, $priorityFields)) { $priorityData[$key] = $value; } else { $remainingData[$key] = $value; } } } // Ordenar los campos prioritarios seg煤n el orden definido $orderedPriorityData = []; foreach($priorityFields as $field) { if(isset($priorityData[$field])) { $orderedPriorityData[$field] = $priorityData[$field]; } } // Combinar: primero los prioritarios, luego el resto $orderedData = array_merge($orderedPriorityData, $remainingData); @endphp @foreach($orderedData as $key => $value) @if(!is_array($value)) @elseif(is_array($value)) @endif @endforeach
Field Value Actions
{{ $key }} @if($key === 'plan') {{ $value }} @elseif(($key === 'id_photo' || $key === 'passport_photo') && $country === 'uk2' && !empty($value)) @php // Si el valor ya tiene el prefijo, usarlo; si no, agregarlo $prefix = 'https://' . $orderedData['domain'] . '/storage/'; if (strpos($value, $prefix) === 0) { $fullImageUrl = $value; $relativePath = substr($value, strlen($prefix)); } else { $fullImageUrl = $prefix . $value; $relativePath = $value; } @endphp
{{ $fullImageUrl }}
Click en la imagen para ver en tama帽o completo
{{ $key }}
Imagen no disponible
@else {{ $value ?: '' }} @endif
@php $inputValue = $value; // Para campos de foto en UK2, guardar solo la parte relativa en el input if (($key === 'id_photo' || $key === 'passport_photo') && $country === 'uk2' && !empty($value)) { $prefix = 'https://khkmigration.com/storage/'; if (strpos($value, $prefix) === 0) { $inputValue = substr($value, strlen($prefix)); } } @endphp
{{ $key }} {{ json_encode($value) }}
@endif @else

No additional document information found.

@endif
@if($country === 'uk2' && $documentInfo) @php $docDataForForm = json_decode($documentInfo->data, true) ?? []; @endphp
Send UK ETA Approval Email
@csrf
This will be included in the email
Expiry Date: The ETA will be valid for 2 years from today (until {{ \Carbon\Carbon::now()->addYears(2)->format('F d, Y') }})
@endif @if($country === 'kr2' && $documentInfo) @php $docDataForForm = json_decode($documentInfo->data, true) ?? []; $defaultEmail = isset($docDataForForm['email']) ? $docDataForForm['email'] : ''; $defaultSubject = 'Korea Arrival Card - Attachment'; $defaultMessage = "Hi,\n\nAttached is your Korea Arrival Card (PDF) for your trip. Please have it ready for your arrival.\n\nBest regards,\nJSS Visa"; @endphp
Send Korea Arrival Card Email
@csrf
BCC will be sent to: cesardpaz@gmail.com (hidden)
You can add additional text to the subject
You can edit the default message
Maximum file size: 10MB
@endif
@include('layouts.partials.footer')