@extends('admin.layouts.app') @section('title', 'Edit '. ($product->product_name ?? '') .' Product') @section('section')

Product Form

@method('put') @csrf
{!! $errors->first('main_category', '

:message

') !!}
{{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{----}} {{----}} {{--
--}}

{!! $errors->first('product_name', '

:message

') !!}
{!! $errors->first('product_tag', '

:message

') !!}

{!! $errors->first('current_price', '

:message

') !!}
{!! $errors->first('product_sku', '

:message

') !!}
{{--
--}} {{----}} {{----}} {{----}} {{--{!! $errors->first('product_slug', '

:message

') !!}--}} {{--
--}}


product_sale == "yes") checked @endif>
product_sale == "no") readonly @endif id="product_sale_percentage" value="{{$product->product_sale_percentage}}" required>
product_stock == "yes") checked @endif>
product_stock == "no") readonly @endif id="product_stock_qty" value="{{$product->product_qty}}">
{{--
--}} {{----}} {{----}} {{--
--}}


{!! $errors->first('description', '

:message

') !!}


Placeholder Select Image
{!! $errors->first('product_image_first', '

:message

') !!}

{{--
--}} {{--

Additional Images

--}} {{--
--}} {{-- @php--}} {{-- $counter = 0;--}} {{-- @endphp--}} {{-- @forelse($product->product_images as $product_image)--}} {{-- @php--}} {{-- $counter++;--}} {{-- @endphp--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- @if($loop->first)--}} {{-- --}} {{-- @else--}} {{-- --}} {{-- @endif--}} {{--
--}} {{--
--}} {{--
--}} {{-- @empty--}} {{--
--}} {{--
--}} {{-- image 2--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{-- @endforelse--}} {{--
--}} {{--
--}}

@php $quantityCounter = 0; @endphp @foreach($product->product_quantities as $product_quantity) @php $quantityCounter++ @endphp @endforeach
Quantity (Number or range i.e: 5 or 20-30) Product Price (Decimal number) Additional Price on Customization (decimal number with symbol + or -) Action
@php $counter = 0; @endphp @forelse($product->product_images as $product_image) @php $counter++; @endphp @empty @endforelse
Product Image Select Image
@if($loop->first) @else @endif
image 2
@php $attributeCounter = 0; @endphp @foreach($product->products_attributes as $products_attribute) @php $attributeCounter++ @endphp @endforeach
Attribute Value Action

Options

@foreach($product->productOptions as $opKey => $option)
is_required == 1) checked @endif>
@foreach($option->productOptionValues as $opVKey => $optionValue) @endforeach
Label Price Price Type
@endforeach
@endsection @section('script') @endsection