@extends('layouts.master') @section('page_title', 'Edit Product') @section('title', 'Products Details') @section('main_item', 'Products') @section('sub_item', 'Edit Product') @section('content')

Edit Product

@csrf @method('PATCH')
allow_woocommerce_sync) checked @endif>
product_visible_sync) checked @endif>
@if (!empty($product->attribute_id))
@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 @endforeach
Variation Variation Value Quantity Unit Price Selling Price Second Price
{{ $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
@else @endif
@if (empty($product->attribute_id))
@foreach ($stocks as $index => $stock) @if ($index == 0) @else @endif @endforeach
Available Quantity Unit Price Selling Price Second Price
Lot {{$index +1}} purchase_stock_option == '1') readonly @endif> purchase_stock_option == '1') readonly @endif> purchase_stock_option == '1') readonly @endif> purchase_stock_option == '1') readonly @endif>
Lot {{$index +1}}
@else @endif
is_combo == 'no') hidden @endif hidden>
@endsection @section('scripts') @endsection