@foreach($documentos as $documento) @endforeach
DOCUMENTOS DE INGRESOS/EGRESOS
@if(!empty($filtros['fechaInicio']) && !empty($filtros['fechaFin'])) PerĂ­odo: {{ \Carbon\Carbon::parse($filtros['fechaInicio'])->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($filtros['fechaFin'])->format('d/m/Y') }} @endif @if(!empty($filtros['sucursal'])) | Sucursal: {{ $filtros['sucursal'] }} @endif @if(!empty($filtros['usuario'])) | Usuario: {{ $filtros['usuario'] }} @endif
Fecha Importe Concepto Referencia Quien Entrega Quien Recibe
{{ \Carbon\Carbon::parse($documento->fechadocumento)->format('d/m/Y') }} @if($documento->egresoingreso == 0) {{ number_format($documento->importedocumento, 2) }} @else {{ number_format(-$documento->importedocumento, 2) }} @endif {{ $documento->concepto }} {{ $documento->referencia }} {{ $documento->quien_entrega }} {{ $documento->quien_recibe }}
Importe total por ingresos: {{ number_format($totales['ingresos'] ?? 0, 2) }}
Importe total por egresos: {{ number_format(-($totales['egresos'] ?? 0), 2) }}
Importe total por diferencia: {{ number_format($totales['diferencia'] ?? 0, 2) }}