{{-- --}} @php($estilos_celda = 'text-align: right; border: 1px solid #0d815a') @php($total_reserva = 0) @php($total_ventas = 0) @php($total_ingreso= 0) @php($total_egreso = 0) @php($contador = 0) @foreach ($array_fechas as $item) @php($contador += 1) @php($valor_item = explode('_', $item)) @if ($valor_item[0] <= $fecha) @else @endif @php($total_reserva += floatval($valor_item[1])) @php($total_ventas += floatval($valor_item[2])) @php($total_ingreso += floatval($valor_item[3])) @php($total_egreso += floatval($valor_item[4])) @endforeach
IdN° Fecha Reservas Ventas Ingresos Egresos Total
{{$contador}} {{ date('d/m/Y', strtotime($valor_item[0]))}} {{number_format($valor_item[1], 2)}} {{number_format($valor_item[2], 2)}} {{number_format($valor_item[3], 2)}} {{number_format($valor_item[4], 2)}} {{number_format(floatval($valor_item[1]) + floatval($valor_item[2]) + floatval($valor_item[3]) - floatval($valor_item[4]), 2)}}
{{number_format($total_reserva,2)}} {{floatval($total_ventas)}} {{number_format($total_ingreso,2)}} {{number_format($total_egreso,2)}} {{number_format($total_reserva + $total_ventas + $total_ingreso - $total_egreso, 2)}}