@isset($exportar) @php $ocultarValores = (session('BloqValoresAdmin') == 'hidden'); header("Cache-Control: maxage=1"); header("Pragma: public"); header('Content-type: application/vnd.ms-excel'); header("Content-Disposition: attachment; filename=Movimientos_Transacciones_".date('Ymd_His').".xls"); header("Pragma: no-cache"); header("Expires: 0"); @endphp @php $totalDebito = 0; $totalCredito = 0; @endphp @foreach ($Movimeintos as $item) @php $totalDebito += $item->egreso; $totalCredito += $item->ingreso; @endphp @endforeach @php $diferencia = round($totalDebito - $totalCredito, 2); if (abs($diferencia) < 0.001) $diferencia = 0; @endphp
Id Fecha Cuenta Nombre Cuenta Debito Credito Bodega No Movimiento Nit / Tercero Tipo
{{ $item->id }} {{ $item->fechaM }} {{ $item->cuentaNum }} {{ $item->NombreCuenta }} {{ $ocultarValores ? '***' : round($item->egreso, 2) }} {{ $ocultarValores ? '***' : round($item->ingreso, 2) }} {{ $item->bodegaIng }} {{ $item->numeroMoimiento }} {{ $item->nit }} {{ $item->tipoMovimiento }}
TOTAL GENERAL: {{ $ocultarValores ? '***' : round($totalDebito, 2) }} {{ $ocultarValores ? '***' : round($totalCredito, 2) }} Diferencia: {{ $ocultarValores ? '***' : round($diferencia, 2) }}
@else @php $ocultarValores = (session('BloqValoresAdmin') == 'hidden'); $subtotalDebito = 0; $subtotalCredito = 0; @endphp
@forelse ($Movimeintos as $item) @php $subtotalDebito += (float)$item->egreso; $subtotalCredito += (float)$item->ingreso; @endphp @empty @endforelse @php $subDiferencia = round($subtotalDebito - $subtotalCredito, 2); if (abs($subDiferencia) < 0.001) $subDiferencia = 0; $globDiferencia = isset($diferencia) ? $diferencia : round($totalDebito - $totalCredito, 2); if (abs($globDiferencia) < 0.001) $globDiferencia = 0; @endphp
# ID Fecha Cuenta PUC Nombre Cuenta Débito Crédito Bodega N° Movimiento NIT / Cédula Tipo
#{{ $item->id }} {{ $item->fechaM }} {{ $item->cuentaNum }} {{ $item->NombreCuenta }} {{ $ocultarValores ? '***' : '$' . number_format($item->egreso, 2) }} {{ $ocultarValores ? '***' : '$' . number_format($item->ingreso, 2) }} {{ $item->bodegaIng }} {{ $item->numeroMoimiento }} {{ $item->nit }} {{ $item->tipoMovimiento }}
🔍
No se encontraron transacciones en el rango de fechas y filtros seleccionados.
SUBTOTAL PÁGINA: {{ $ocultarValores ? '***' : '$' . number_format($subtotalDebito, 2) }} {{ $ocultarValores ? '***' : '$' . number_format($subtotalCredito, 2) }} Dif. Pág: {{ $ocultarValores ? '***' : ($subDiferencia == 0 ? '$0.00' : '$' . number_format($subDiferencia, 2)) }}
TOTALES GENERALES (FILTRO): {{ $ocultarValores ? '***' : '$' . number_format($totalDebito, 2) }} {{ $ocultarValores ? '***' : '$' . number_format($totalCredito, 2) }} Diferencia: {{ $ocultarValores ? '***' : ($globDiferencia == 0 ? '$0.00 (Cuadrado)' : '$' . number_format($globDiferencia, 2) . ' (Descuadre)') }}
@if(is_object($Movimeintos) && method_exists($Movimeintos, 'hasPages'))
Mostrando {{ $Movimeintos->firstItem() ?? 0 }} a {{ $Movimeintos->lastItem() ?? 0 }} de {{ number_format($Movimeintos->total()) }} transacciones @if($Movimeintos->lastPage() > 1) (Pág. {{ $Movimeintos->currentPage() }} de {{ $Movimeintos->lastPage() }}) @endif
Ver:
{{ $Movimeintos->links() }}
@endif
@endif