@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('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}}" required>

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

{!! $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 $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
@php $optionCounter = 0; @endphp @foreach($product->products_options as $products_options) @php $optionCounter++ @endphp @endforeach
Option Option Value Price Qty Action
@endsection @section('script') @endsection