{{-- Histórico de facturas procesadas de Declaración de Cambio (dentro de calculonumerales), kit ui-ctc. "Revertir" pide confirmación con swal:confirmarReversionFactura (partials.eventos-planti) → revertirFactura. --}}
@if (session()->has('message')) Excelente. {{ session('message') }} @endif Nro factura Cliente Entidad bancaria Fecha extracto Documento transporte Fecha documento transporte Días extracto vs doc. embarque Numeral Valor FOB Numeral 2016 Validación Acciones @forelse ($historico as $index => $factura) {{-- valor_sfo llega vacío en las declaraciones antiguas: number_format('') y '' + número fallan en PHP 8. --}} @php $valorSfo = (float) $factura['valor_sfo']; @endphp {{ $factura['nro_factura'] }} {{ $factura['cliente'] }} {{ $factura['banco'] }} {{ $factura['fecha_extracto'] }} {{ $factura['documento_transporte'] }} {!! $factura['fecha_doc_transporte'] == '' ? '—' : e($factura['fecha_doc_transporte']) !!} {{ $factura['dias'] }} {{ $factura['numeral'] }} ${{ number_format($factura['valor_fob']) }} ${{ number_format($valorSfo) }} @include('livewire.po.partials.declaracion-cambio-validacion', ['cuadra' => $factura['valor_factura'] == $factura['valor_fob'] + $valorSfo, 'otro' => 'numeral 2016']) Revertir @php $total_fob += $factura['valor_fob']; $total_num_2016 += $valorSfo; @endphp @empty
No hay facturas procesadas.
@endforelse @if (count($historico) > 0) TOTAL ${{ number_format($total_fob) }} ${{ number_format($total_num_2016) }} @endif