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