{{-- @dd($release_customers, $product); --}} @php $pone_semana = false; @endphp @foreach($product as $value)
| {{ $value->no_part }} | @for ($i = 0; $i < 52; $i++)CW {{ $i + 1 }} | @endfor|||
|---|---|---|---|---|
| Release WK {{ $i + 1 }} | @foreach ($release_customers as $value2) {{-- @dd($release_customers, $value2->semanas); --}} @if ($value2->week == $i+1 && $value2->product_id == $value->id) @php $semanas = json_decode($value2->semanas); $pone_semana = true; @endphp @for($j = 1; $j <= count($semanas); $j++) @if($j > $i){{ $semanas[$j - 1]->valor }} | @else@endif @endfor @endif @endforeach @if($pone_semana == false) @for($j = 1; $j <= 52; $j++) @if($j > $i) | 0 | @else@endif @endfor @else @php $pone_semana = false; @endphp @endif |