Resultados de Búsqueda

Email: {{ $email }}

Encontrados {{ array_sum(array_map(function($r) { return count($r['documents']); }, $results)) }} documentos en {{ count($results) }} países

@if(count($results) > 0) @foreach($results as $countryCode => $countryData)
{{ $countryCode }}
{{ $countryData['country_name'] }} ({{ $countryCode }})
{{ count($countryData['documents']) }} documentos
@foreach($countryData['documents'] as $document) @php // Intentar múltiples formas de obtener los datos $data = json_decode($document->data, true); // Obtener email $email = $data['email'] ?? 'N/A'; // Obtener nombres - probar diferentes formatos $firstName = $data['first_name'] ?? $data['firstName'] ?? $data['name'] ?? 'N/A'; $lastName = $data['last_name'] ?? $data['lastName'] ?? $data['surname'] ?? ''; // Si no hay first_name, intentar separar el campo name if ($firstName === 'N/A' && isset($data['name'])) { $nameParts = explode(' ', $data['name'], 2); $firstName = $nameParts[0] ?? 'N/A'; $lastName = $nameParts[1] ?? ''; } $fullName = trim($firstName . ' ' . $lastName); if ($fullName === 'N/A' || $fullName === '') { $fullName = 'Nombre no disponible'; } // Obtener monto del campo payment JSON $payment = json_decode($document->payment, true); $amount = '0.00'; if (is_array($payment)) { // Intentar diferentes ubicaciones del monto $amount = $payment['amount'] ?? $payment['amount_total'] ?? $payment['amount_paid'] ?? ($payment['amount_received'] ?? '0.00'); // Si está en centavos, convertir a dólares if (is_numeric($amount) && $amount > 1000) { $amount = $amount / 100; } } $amount = is_numeric($amount) ? number_format(floatval($amount), 2) : '0.00'; @endphp @endforeach
ID BOT Cliente Monto Gateway BIN CARD Estado Fecha Acciones
{{ $document->id }} @if($document->bot_status) @php $statusColors = [ 'IN_QUEUE' => 'warning', 'PROCESSING' => 'info', 'COMPLETED' => 'success', 'FAILED' => 'danger', 'WAITING' => 'primary' ]; $color = $statusColors[$document->bot_status] ?? 'secondary'; @endphp
{{ $document->bot_status }} @if($document->bot_status === 'COMPLETED') @endif
@else N/A @endif
{{ $fullName }}
{{ $email }}
${{ $amount }} {{ $document->payment_gateway ?? 'N/A' }} @if($document->bin_card)
{{ $document->bin_card }}
Check BIN
@else N/A @endif
@if($document->refund) Refund @elseif($document->status === 'PAID') Pagado @else {{ ucfirst($document->status) }} @endif {{ \Carbon\Carbon::parse($document->created_at)->format('d/m/Y H:i') }}
Editar @if($document->refund) Reembolsado @elseif(is_null($document->parent_id)) @else Documento relacionado @endif
@endforeach @else
No se encontraron documentos

No se encontraron documentos pagados para el email {{ $email }} en los países seleccionados.

Realizar nueva búsqueda
@endif