@if(isset($ingresos) || isset($gastos))
@php($sumaIngresos = 0)
@foreach ($ingresos as $i)
@if(isset($historico))
@php($i = (object)$i)
@endif
@php($sumaIngresos += $i->total_ingreso)
| {{ $i->codigo}} |
{{ Str::ucfirst(Str::lower($i->nombre_formato))}}(Anexo {{$i->no_formato }}) |
$ {{ number_format($i->total_ingreso, 2, ',', '.') }} |
@endforeach
| 100 |
TOTAL DE LOS INGRESOS DE LA CAMPAÑA |
$ {{ number_format($sumaIngresos, 2, ',', '.') }} |
@php($sumaGastos = 0)
@foreach ($gastos as $i)
@if(isset($historico))
@php($i = (object)$i)
@endif
@if($i->codigo != 100)
@php($sumaGastos += $i->total_gasto)
| {{ $i->codigo }} |
{{ Str::ucfirst(Str::lower($i->nombre_formato))}}(Anexo {{$i->no_formato}}) |
$ {{ number_format($i->total_gasto, 2, ',', '.') }} |
@endif
@endforeach
| 202 |
Gastos de oficina y adquisiciones |
$ {{ number_format(0, 2, ',', '.') }} |
| 206 |
Gastos de capacitación e investigación política |
$ {{ number_format(0, 2, ',', '.') }} |
| 207 |
Gastos judiciales y de rendición de cuentas |
$ {{ number_format(0, 2, ',', '.') }} |
| 210 |
Gastos que sobrepasan la suma fijada por el Consejo Nacional Electoral |
$ {{ number_format(0, 2, ',', '.') }} |
| 211 |
Otros Gastos |
$ {{ number_format(0, 2, ',', '.') }} |
| 200 |
TOTAL DE LOS GASTOS DE LA CAMPAÑA |
$ {{ number_format($sumaGastos, 2, ',', '.') }} |
@else
@for ($i = 0; $i < 22; $i++)
| {{ $i + 1 }} |
Anexo en Blanco |
$ {{ number_format(0, 2, ',', '.') }} |
@endfor
@endif