@php $count_items = ( count($rows) ) ? count($rows[0]['subheaders']) : 3; $border_color = "#F5F5F5" ; @endphp
TOTAL DE INVENTARIO
@foreach( $rows as $data ) @for( $i = 0 ; $i < count($data['headers']); $i++) @php if ( $i != 0 ) : setlocale(LC_TIME, 'spanish'); $date_spanish = strftime("%e %h", strtotime($data['headers'][$i])); $date_spanish = strtoupper(str_replace(".", "", $date_spanish )); endif; $background_color = ( $i != 0 ) ? "#212121" : "#607D8B" ; $font_size = ( $i != 0 ) ? 10 : 11 ; $align = ( $i != 0 ) ? "center" : "left" ; $colspan = ( $i != 0 ) ? 2 : 1 ; $color = "#FFFFFF"; $value_header = ( $i != 0 ) ? $date_spanish : $data['headers'][$i] ; @endphp @endfor @for( $x = 0 ; $x < count($data['subheaders']) ; $x++ ) @php $background_color = "#212121" ; $color = "#FFFFFF"; $align = ( $x == 0 ) ? "left" : "center" ; $font_size = 10; $value_subheader = $data['subheaders'][$x] ; @endphp @endfor @foreach( $data['rows'] as $row ) @foreach( $row as $key => $value ) @php $border_color = "#E0E0E0" ; $background_color = "#FFFFFF" ; if( $key == 'item' ) : $color = "#212121"; $font_size = 10; else : $color = ( $value == 0 ) ? "#FF7043" : "#607D8B" ; $font_size = 9; endif ; $align = ( $key == 'item' ) ? "left" : "center" ; @endphp @endforeach @endforeach
{{ $value_header }}
{{ $value_subheader }}
{{ $value }}
@endforeach