@php $now = \Carbon\Carbon::now(); $semana_actual = $now->weekOfYear; @endphp

MP MRP

@for($i=$semana_actual; $i < 53; $i++) @endfor @foreach($rowMaterials as $key => $value) @if ($value->pedido_mrp != NULL && $value->pedido_mrp != 1) @foreach(json_decode($value->pedido_mrp) as $key => $valuel2) @if ($key == 0) @endif @if($key >= $semana_actual ) {{-- @dd($value->pedido_mrp); --}} @endif @endforeach @else @for($i=$semana_actual - 1 ; $i < 53; $i++) @if($i >= $semana_actual - 1 ) @endif @endfor @endif @endforeach
Pos. Cliente No parte Descripcion BL CW{{ $i }}
{{ $value->id }} @if(isset( $value->suppliers )) {{ $value->suppliers->company }} @else -- @endif {{ $value->no_part }} {{ $value->description }} {{ $valuel2 }} {{ $valuel2 }} 0