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

Bulk Edit

@foreach ($products as $key => $product)

{{ $product->product_name }}

allow_woocommerce_sync) checked @endif>
@php $stock = App\Stock::where('product_id', $product->id)->first(); @endphp @if (empty($product->attribute_id))
qty)) value="{{ $stock->qty }}" @else value="0" @endif>
@else
{{-- --}} @php $child_products = App\Product::where('parent_product_id', $product->id) ->orWhere('id', $product->id) ->get(); @endphp @foreach ($child_products as $child_key => $child_product) @php $attribute = App\Attribute::find($child_product->attribute_id); @endphp @endforeach
Variation Variation ValueSub Variation ValueQuantity Unit Price Selling Price Second Price
{{ $attribute->attribute_name }} {{ $child_product->attribute_value }}
@endif
@endforeach
@endsection @section('scripts') @endsection