Cola de Bots - {{ $countryName }}

Documentos con al menos un registro en cola (mostrando todos los status relacionados)

Total en Cola

{{ $queueBots->total() }}

Página Actual

{{ $queueBots->currentPage() }}

Bots en Cola y Duplicados
Muestra todos los registros de document_id que tienen al menos uno en cola
@if($queueBots->count() > 0)
@php $startPosition = ($queueBots->currentPage() - 1) * $queueBots->perPage() + 1; @endphp @foreach($queueBots as $index => $bot) @endforeach
Posición ID Document ID Key Estado Viajero Principal Fecha de Llegada Plan Data Actions
#{{ $startPosition + $index }} {{ $bot->id }} @if($bot->document_id && $bot->document_id != 'N/A') {{ $bot->document_id }} @else N/A @endif @if($bot->document_id && in_array($bot->document_id, $allDocumentIds))
DUPLICATE @endif
@if($bot->key && $bot->key != 'N/A') {{ $bot->key }} @else N/A @endif @if($bot->status == 'IN_QUEUE') {{ $bot->status }} @elseif($bot->status == 'COMPLETED') {{ $bot->status }} @elseif($bot->status == 'PROCESSING') {{ $bot->status }} @elseif($bot->status == 'ERROR') {{ $bot->status }} @else {{ $bot->status }} @endif @if($bot->status != 'IN_QUEUE')
(Mostrado por duplicado) @endif
@php $arrivalDate = null; $travelerInfo = null; $planInfo = null; if ($bot->data && !empty($bot->data)) { $data = json_decode($bot->data, true); if (json_last_error() === JSON_ERROR_NONE && is_array($data)) { // Extraer información adicional para mostrar $travelerInfo = [ 'name' => $data['name'] ?? 'N/A', 'country' => $data['country'] ?? 'N/A', 'travelers_count' => isset($data['travelers']) ? count($data['travelers']) : 1 ]; // Extraer plan $planInfo = $data['plan'] ?? null; // Extraer arrival_date if (isset($data['arrival_date']) && !empty($data['arrival_date'])) { try { $arrivalDate = \Carbon\Carbon::createFromFormat('Y-m-d', $data['arrival_date']); } catch (\Exception $e) { try { $arrivalDate = \Carbon\Carbon::parse($data['arrival_date']); } catch (\Exception $e2) { $arrivalDate = null; } } } } } @endphp @if($travelerInfo)
{{ $travelerInfo['name'] }}
{{ $travelerInfo['country'] }}
@else Sin información @endif
@if($arrivalDate)
{{ $arrivalDate->format('d/m/Y') }}
{{ $arrivalDate->diffForHumans() }} @if($travelerInfo)
{{ $travelerInfo['travelers_count'] }} viajero(s) @endif
@else Sin fecha de llegada @endif
@if($planInfo) {{ $planInfo }} @else Sin plan @endif @if($bot->document_id) VER @else N/A @endif @if($bot->status != 'COMPLETED') @else Completed @endif
Mostrando {{ $queueBots->firstItem() }} a {{ $queueBots->lastItem() }} de {{ $queueBots->total() }} resultados
@if($queueBots->currentPage() > 1) Previous @else Previous @endif Page {{ $queueBots->currentPage() }} of {{ $queueBots->lastPage() }} @if($queueBots->hasMorePages()) Next @else Next @endif
@else
¡No hay bots en cola!

Actualmente no hay documentos pendientes de procesamiento para {{ $countryName }}.

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