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 }} @else {{ $value ?: '' }} @endif
{{ $key }} {{ json_encode($value) }}
@endif @else

No additional document information found.

@endif
@include('layouts.partials.footer')