@php $number = 0; @endphp
@foreach ($all_products as $key => $child_product)
@php
++$key;
$attribute = App\Attribute::find($child_product->attribute_id);
$stocks = App\Stock::where('product_id', $child_product->id)->get(); // Fetch all stocks for the product
@endphp
| {{ $attribute->attribute_name }} |
{{ $child_product->attribute_value }} |
@foreach ($stocks as $index => $stock)
Lot {{ $loop->iteration }}
@if ($loop->first)
purchase_stock_option == '1') readonly @endif>
@else
@endif
@endforeach
|
@foreach ($stocks as $stock)
@if ($loop->first)
purchase_stock_option == '1') readonly @endif>
@else
@endif
@endforeach
|
@foreach ($stocks as $stock)
@if ($loop->first)
purchase_stock_option == '1') readonly @endif>
@else
@endif
@endforeach
|
@foreach ($stocks as $stock)
@if ($loop->first)
purchase_stock_option == '1') readonly @endif>
@php
$number++
@endphp
@else
@endif
@endforeach
|
@endforeach