@foreach ($registros as $clave => $registro)
ORGANIZACIÓN ELECTORAL - CONSEJO NACIONAL ELECTORAL
FONDO NACIONAL DE FINANCIACIÓN POLÍTICA
LIBRO DE INGRESOS Y GASTOS DE CAMPAÑA

Nombre de la Organización: {{ $agrupacion->nombre }}


Código: {{ $clave }}

{{-- @php dd($registros) @endphp --}} {{$sumatotal = 0}} @for ($i = 0; $i < count($registro); $i++) {{$sumatotal += $registro[$i]['valor']}} {{$num = $i + 1}} @endfor

VALOR TOTAL:. $ {{ number_format($sumatotal) }}

No. Fecha Comprobante Interno Descripción Persona Natural o Jurídica Valor Total
{{ $num }} {{ $registro[$i]['fecha_registro'] }} {{ $registro[$i]['comprobante_interno'] }} {{ $registro[$i]['concepto'] }} {{ $registro[$i]['nombre_persona'] }} {{ number_format($registro[$i]['valor']) }}
@endforeach {{-- --}} {{-- --}}