@php $count_items = count($data['rows']); $border_color = "#F5F5F5" ; @endphp
TOTAL DE IMPACTOS
@php $count = 0; $count_rows = count( $data['rows'] ) ; @endphp @php $count_column = count( $data['headers'] ) ; @endphp @for( $i = 0 ; $i < $count_column ; $i++ ) @php $background_color = ( $i == ( $count_column - 1 ) ) ? "#B2DFDB" : "#212121" ; $font_size = ( $i == ( $count_column - 1 ) ) ? 7 : 10 ; $color = ( $i == ( $count_column - 1 ) ) ? "#212121" : "#FFFFFF" ; $align = ( $i == 0 ) ? "left" : "center" ; if ( $i > 0 AND $i < ( $count_column - 1 ) ): setlocale(LC_TIME, 'spanish'); $date_spanish = strftime("%e %h", strtotime($data['headers'][$i])); $date_spanish = strtoupper(str_replace(".", "", $date_spanish )); $value = $date_spanish ; else : $value = $data['headers'][$i] ; endif; @endphp @endfor @for( $x = 0 ; $x < $count_rows ; $x++ ) @foreach ( $data['rows'][$x] as $key => $value ) @php if ( $key == 'total' ) : $background_color = "#212121"; $font_size = 16 ; else : $background_color = ( $key !='point' ) ? "#039BE5" : "#FFFFFF" ; $border_color = ( $key !='point' ) ? "#FFFFFF" : "#E0E0E0" ; $font_size = ( $key !='point' ) ? 9 : 10 ; endif ; if( $key == 'point' ) : $color = "#212121" ; else : $color = ( $value == 0 ) ? "#B2DFDB" : "#FFFFFF" ; endif; $align = ( $key == 'point' ) ? "left" : "center" ; @endphp @endforeach @endfor @for( $z = 0 ; $z < count($data['footer']) ; $z++ ) @php $background_color = ( $z == ( count( $data['footer'] ) - 1 ) ) ? "#B2DFDB" : "#212121" ; $align = ( $z == 0 ) ? "left" : "center" ; $font_size = ( $z == 0 ) ? 11 : 16 ; $value = $data['footer'][$z] ; if( $z != 0 AND $z == ( count($data['footer']) - 1 ) ) : $color = "#212121" ; $font_size = 20 ; else : $color = ( ( $z != 0 AND $z == ( count($data['footer']) - 1 ) AND $data['footer'][$z] == 0 ) OR ( $z != 0 AND $z != ( count($data['footer']) - 1 ) AND $data['footer'][$z] == 0 ) ) ? "#B2DFDB" : "#FFFFFF" ; endif ; @endphp @endfor
{{ $value }}
{{ $value }}
{{ $value }}