@extends('admin.layouts.master') @section('title', 'Edit Product') @section('content')
@csrf
@if ($errors->has('name'))

{{ $errors->first('name') }}

@endif
@if ($errors->has('slug'))

{{ $errors->first('slug') }}

@endif
@if ($errors->has('weight'))

{{ $errors->first('weight') }}

@endif
@if ($errors->has('quantity'))

{{ $errors->first('quantity') }}

@endif
@if ($errors->has('threshold'))

{{ $errors->first('threshold') }}

@endif
@if ($errors->has('sku'))

{{ $errors->first('sku') }}

@endif
@if ($errors->has('cost_price'))

{{ $errors->first('cost_price') }}

@endif
@if ($errors->has('unit_price'))

{{ $errors->first('unit_price') }}

@endif
@if ($errors->has('off_price'))

{{ $errors->first('off_price') }}

@endif
@if ($errors->has('import_cost'))

{{ $errors->first('import_cost') }}

@endif
@if ($errors->has('minimum_purchase_quantity'))

{{ $errors->first('minimum_purchase_quantity') }}

@endif
{{-- maximum_purchase_quantity --}}
@if ($errors->has('maximum_purchase_quantity'))

{{ $errors->first('maximum_purchase_quantity') }}

@endif
@error('qrcode')

{{ $message }}

@enderror
@if ($errors->has('warehouse_no'))

{{ $errors->first('warehouse_no') }}

@endif
@error('specification')

{{ $message }}

@enderror
is_refundable == true ? 'checked' : '' }}>
@if ($errors->has('is_refundable'))

{{ $errors->first('is_refundable') }}

@endif
allow_discount == 1 ? 'checked' : '' }}>
@if ($errors->has('is_discountable'))

{{ $errors->first('is_discountable') }}

@endif
@error('short_description')

{{ $message }}

@enderror
@error('long_description')

{{ $message }}

@enderror
show_purchase_note == true ? 'checked' : '' }}>
@if ($errors->has('show_purchase_note'))

{{ $errors->first('show_purchase_note') }}

@endif
@error('purchase_note')

{{ $message }}

@enderror
Product Attributes
@php $oldTitle = old('title', []); $oldValue = old('value', []); $count = max(count($oldTitle), count($oldValue), isset($product) ? count($product->productAttributes) : 0); @endphp @for ($i = 0; $i < $count; $i++)
@endfor
Product Gallery

@if ($errors->has('thumbnail_image'))

{{ $errors->first('thumbnail_image') }}

@endif
Product Gallery
@error('product_images')

{{ $message }}

@enderror
Category & Brand
@error('category_id')

{{ $message }}

@enderror
@if ($errors->has('sub_category_id'))

{{ $errors->first('sub_category_id') }}

@endif
@if ($errors->has('brand_id'))

{{ $errors->first('brand_id') }}

@endif
@error('label_id')

{{ $message }}

@enderror
Publish
@error('status')

{{ $message }}

@enderror
@error('visibility')

{{ $message }}

@enderror
Meta Data
@error('meta_title')

{{ $message }}

@enderror
@error('meta_keywords')

{{ $message }}

@enderror
@error('meta_image')

{{ $message }}

@enderror
@error('meta_description')

{{ $message }}

@enderror
@endsection