@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')
@if ($product->product_type != 'single' || $product->product_type != null) @else @endif
allow_woocommerce_sync ? 'checked' : '' }}>
product_visible_sync ? 'checked' : '' }}>
@if ($setting->second_woocommerece_api_setting_enable == '1')
second_allow_woocommerce_sync ? 'checked' : '' }}>
second_product_visible_sync ? 'checked' : '' }}>
@endif
custom_website_sync ? 'checked' : '' }}>
@if (!empty($product->attribute_id))
@if($setting->product_purchase_id == 1) @endif @if ($setting->second_woocommerece_api_setting_enable == '1') @endif @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 @if($setting->product_purchase_id == 1) @endif @if ($setting->second_woocommerece_api_setting_enable == '1') @endif @endforeach
Attribute Variation ValuePurchase no Quantity Unit Price Selling PriceSecond WooCommerce Selling PriceRe-Seller Price Action
{{ $attribute->attribute_name }} {{ $child_product->attribute_value }} @foreach ($stocks as $stock)
@if(!empty($stock->grn_id)) @php $grnID = App\Grn::where('id',$stock->grn_id)->first(); @endphp @else @endif
@endforeach
@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> @else @endif @endforeach @foreach ($stocks as $stock) @if ($loop->first) purchase_stock_option == '1') readonly @endif> @else @endif @endforeach {{-- --}}
@endif
@if (empty($product->attribute_id))
@if($setting->product_purchase_id == 1) @endif @foreach ($stocks as $index => $stock) @if ($index == 0) @if($setting->product_purchase_id == 1) @endif @else @if($setting->product_purchase_id == 1) @endif @endif @endforeach
Purchase no Available Quantity Unit Cost Selling Price Second WooCommerce Selling Price Re-Seller Price
@if(!empty($stock->grn_id)) @php $grnID = App\Grn::where('id',$stock->grn_id)->first(); @endphp @else @endif
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> purchase_stock_option == '1') readonly @endif>
@if(!empty($stock->grn_id)) @php $grnID = App\Grn::where('id',$stock->grn_id)->first(); @endphp @else @endif
Lot {{$index +1}}
@endif
is_combo == 'no') hidden @endif>
@endsection @section('scripts') @endsection