@if(isset($ingresos) && $datos->tipo == 1 || isset($gastos) && $datos->tipo == 1)
@php($sumaIngresos = 0)
@php($sumaIngresosCandidato = 0)
@foreach ($ingresos as $i)
@php($sumaIngresos += (is_array($i) ? $i['total_ingreso'] : $i->total_ingreso))
@php($sumaIngresosCandidato += (is_array($i) ? $i['ingresosCandidato'] : $i->ingresosCandidato))
| {{ (is_array($i) ? $i['codigo'] : $i->codigo)}} |
{{ Str::ucfirst(Str::lower((is_array($i) ? $i['nombre_formato'] : $i->nombre_formato)))}}(Anexo {{(is_array($i) ? $i['no_formato'] : $i->no_formato) }}) |
$ {{ number_format((is_array($i) ? $i['total_ingreso'] : $i->total_ingreso), 2, ',', '.') }} |
$ {{ number_format((is_array($i) ? $i['ingresosCandidato'] : $i->ingresosCandidato), 2, ',', '.') }} |
$ {{ number_format((is_array($i) ? $i['total_ingreso'] : $i->total_ingreso) + (is_array($i) ? $i['ingresosCandidato'] : $i->ingresosCandidato), 2, ',', '.') }} |
@endforeach
{{--
| 104 |
Rendimiento neto de actos públicos |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
| 105 |
Rendimiento de inversiones |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
--}}
| 100 |
TOTAL DE LOS INGRESOS DE LA CAMPAÑA |
$ {{ number_format($sumaIngresos, 2, ',', '.') }} |
$ {{ number_format($sumaIngresosCandidato, 2, ',', '.') }} |
$ {{ number_format($sumaIngresos + $sumaIngresosCandidato, 2, ',', '.') }} |
@php($sumaGastos = 0)
@php($sumaGastosCandidato = 0)
@foreach ($gastos as $i)
@if((is_array($i) ? $i['codigo'] : $i->codigo) != 100)
@php($sumaGastos += (is_array($i) ? $i['total_gasto'] : $i->total_gasto))
@php($sumaGastosCandidato += (is_array($i) ? $i['gastosCandidato'] : $i->gastosCandidato))
| {{ (is_array($i) ? $i['codigo'] : $i->codigo) }} |
{{ Str::ucfirst(Str::lower((is_array($i) ? $i['nombre_formato'] : $i->nombre_formato)))}}(Anexo {{(is_array($i) ? $i['no_formato'] : $i->no_formato) }}) |
$ {{ number_format((is_array($i) ? $i['total_gasto'] : $i->total_gasto), 2, ',', '.') }} |
$ {{ number_format((is_array($i) ? $i['gastosCandidato'] : $i->gastosCandidato), 2, ',', '.') }} |
$ {{ number_format((is_array($i) ? $i['total_gasto'] : $i->total_gasto) + (is_array($i) ? $i['gastosCandidato'] : $i->gastosCandidato), 2, ',', '.') }} |
@endif
@endforeach
{{--
| 202 |
Gastos de oficina y adquisiciones |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
| 206 |
Gastos de capacitación e investigación política |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
| 207 |
Gastos judiciales y de rendición de cuentas |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
| 209 |
Costos financieros |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
| 210 |
Gastos que sobrepasan la suma fijada por el Consejo Nacional Electoral |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
| 211 |
Otros Gastos |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
$ {{ number_format(0, 2, ',', '.') }} |
--}}
| 200 |
TOTAL DE LOS GASTOS DE LA CAMPAÑA |
$ {{ number_format(isset($sumaGastos), 2, ',', '.') }} |
$ {{ number_format(isset($sumaGastosCandidato), 2, ',', '.') }} |
$ {{ number_format($sumaGastos + $sumaGastosCandidato, 2, ',', '.') }} |
@else
@for ($i = 0; $i < 18; $i++)
| {{ $i + 1 }} |
Anexo en Blanco |
|
|
|
@endfor
@endif