@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 }} |
@if($setting->product_purchase_id == 1)
@foreach ($stocks as $stock)
@if(!empty($stock->grn_id))
@php
$grnID = App\Grn::where('id',$stock->grn_id)->first();
@endphp
@else
@endif
@endforeach
|
@endif
@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
|
@if ($setting->second_woocommerece_api_setting_enable == '1')
@foreach ($stocks as $stock)
@if ($loop->first)
purchase_stock_option == '1') readonly @endif>
@else
@endif
@endforeach
|
@endif
@foreach ($stocks as $stock)
@if ($loop->first)
purchase_stock_option == '1') readonly @endif>
@else
@endif
@endforeach
|
{{-- --}}
|
@endforeach