Comprobante de Transferencia
{{ \Carbon\Carbon::parse($transferencia->created_at)->format('d/m/Y') }} a las {{ \Carbon\Carbon::parse($transferencia->created_at)->format('H:i') }} hs
@php $statusConfig = [ 'settled' => ['text' => '✓ Transferencia Completada', 'class' => 'status-success'], 'completed' => ['text' => '✓ Transferencia Completada', 'class' => 'status-success'], 'failed' => ['text' => '✗ Transferencia Fallida', 'class' => 'status-failed'], 'reversed' => ['text' => '⟲ Transferencia Revertida', 'class' => 'status-reversed'], 'rejected' => ['text' => '⊘ Transferencia Rechazada', 'class' => 'status-rejected'], 'IN_PROGRESS' => ['text' => '⟳ Procesando', 'class' => 'status-processing'], 'unknown' => ['text' => '? Estado Desconocido', 'class' => 'status-unknown'], 'created' => ['text' => '⏳ Pendiente', 'class' => 'status-pending'], 'sent' => ['text' => '➤ Enviada', 'class' => 'status-sent'], 'pending' => ['text' => '⏳ Pendiente', 'class' => 'status-pending'] ]; $currentStatus = $transferencia->status ?: 'unknown'; $statusInfo = $statusConfig[$currentStatus] ?? $statusConfig['unknown']; @endphp
{{ $statusInfo['text'] }}
${{ number_format($transferencia->amount, 2, ',', '.') }}
{{ $transferencia->description ?: 'Transferencia PSP' }}
@php // Buscar contacto de agenda por destination_value para obtener titular/cuit $contactoDestino = \App\Models\Psp\PspAgContacto::where('psp_company_id', $transferencia->psp_company_id) ->where('tipo_cuenta', $transferencia->destination_type) ->where('valor_cuenta', $transferencia->destination_value) ->first(); // COELSA ID desde el movement raw $movement = $transferencia->movement ?? null; $coelsaId = null; if ($movement) { $raw = $movement->raw; if (is_string($raw)) { $decoded = json_decode($raw, true); if (is_array($decoded)) $raw = $decoded; } if (is_array($raw)) { $coelsaId = $raw['detail']['coelsa_id'] ?? ($raw['coelsa_id'] ?? null); } } @endphp
Origen
{{ $empresa->razon_social }}
CUIT/CUIL: {{ $empresa->document }}
@if($transferencia->cvu)
CVU: {{ $transferencia->cvu->cvu }}
@endif
Destino
{{ $contactoDestino && $contactoDestino->titular ? $contactoDestino->titular : ($contactoDestino && $contactoDestino->nombre ? $contactoDestino->nombre : 'Destinatario') }}
@if($contactoDestino && $contactoDestino->cuit)
CUIT/CUIL: {{ $contactoDestino->cuit }}
@endif @if($contactoDestino && $contactoDestino->banco)
Banco: {{ $contactoDestino->banco }}
@endif
{{ strtoupper($transferencia->destination_type) }}: {{ $transferencia->destination_value }}
@if($contactoDestino && $contactoDestino->cbu_resuelto && $contactoDestino->cbu_resuelto !== $transferencia->destination_value)
CBU resuelto: {{ $contactoDestino->cbu_resuelto }}
@endif
@if($transferencia->bind_transaction_id || $transferencia->status || $transferencia->fees || $transferencia->error_message)
@if($coelsaId)
COELSA ID:
{{ $coelsaId }}
@endif @if($transferencia->bind_transaction_id)
ID de Transacción:
{{ $transferencia->bind_transaction_id }}
@endif @if($transferencia->status)
Estado:
{{ ucfirst($transferencia->status) }}
@endif @if($transferencia->error_message && in_array($transferencia->status, ['failed', 'reversed', 'rejected']))
Motivo:
{{ $transferencia->error_message }}
@endif @if($transferencia->fees && $transferencia->fees > 0)
Comisión:
$ {{ number_format($transferencia->fees, 2, ',', '.') }}
@endif
Fecha de Procesamiento:
{{ \Carbon\Carbon::parse($transferencia->created_at)->format('d/m/Y H:i:s') }}
@endif
Número de Operación {{ $transferencia->ctaReca->descripcion ?? 'PSP' }}
#{{ str_pad($transferencia->id, 12, '0', STR_PAD_LEFT) }}
Conserve este número para futuras consultas
@if(in_array($transferencia->status, ['settled', 'completed']))
🔒 Transacción Segura y Verificada
@elseif(in_array($transferencia->status, ['failed', 'reversed', 'rejected']))
⚠️ Transacción No Completada
@else
ℹ️ Transacción en Proceso
@endif