{!! Form::open( ['route' => ['gastos.update_gastos'], 'method' => 'post', 'class' => 'form-horizontal', 'enctype' => 'multipart/form-data', 'role' => 'form', 'id' => 'FormEstadoGastos', 'files' => false, 'name' => 'FormEstadoGastos' ]) !!}

ESTADO DE LOS GASTOS

@php $saldo=0 @endphp @foreach ($asientos as $key => $list) @php $saldo += $list->total @endphp @endforeach

TOTAL: $ {{ number_format($saldo, 2, ',', '.') }}

@foreach ($headerEstado as $key => $list)

{{ $list->CuentaTipo->cta_cte_tesoreria_cuenta->nombre }} - {{ $list->CuentaTipo->tipoGasto->nombre }}: ${{ number_format($list->total, 2, ',', '.') }}

@php $x=0; @endphp @foreach ($asientos as $key => $gasto) @if ($list->CuentaTipo_id == $gasto->CuentaTipo_id) @php $x++; @endphp @endif @endforeach
NÂș CAJA CENTRO DE COSTO ASIGNACION GASTO COMENTARIO MONTO ESTADO BORRAR
{{$x}} {{$gasto->CuentaTipo->cta_cte_tesoreria_cuenta->nombre}} {{$gasto->CuentaTipo->tipoGasto->nombre}} {{$gasto->centroCosto->nombre}} {{$gasto->debe_cta_cte_tesoreria_cuenta->nombre}}
@endforeach {{ Form::close() }}