@extends('backend.layouts_backend.master2') @section('title') Edit Product @endsection @section('content') {{-- header --}}

Edit Product

@if (Auth::user()->can('product-create')) @endif @if (Auth::user()->can('product-list')) @endif

{{-- end header --}}
@csrf @method('PATCH')
{{--
--}}

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

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

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

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

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

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

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

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

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

{{-- validation --}} @if ($errors->has('product_created_date')) @endif
@if (is_array($product_create_form_fields_values)) @if (in_array(1, $product_create_form_fields_values ?? ''))

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

--}} {{--
--}}
{{-- validation --}} @if ($errors->has('product_status')) @endif
@if (is_array($product_create_form_fields_values)) @if (in_array(2, $product_create_form_fields_values ?? ''))

{{-- validation --}} @if ($errors->has('product_stock_quantity')) @endif
@endif @endif @if (is_array($product_create_form_fields_values)) @if (in_array(3, $product_create_form_fields_values ?? ''))

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

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

{{-- validation --}} @if ($errors->has('product_selling_price')) @endif
@if (is_array($product_create_form_fields_values)) @if (in_array(4, $product_create_form_fields_values ?? ''))

{{-- validation --}} @if ($errors->has('product_image')) @endif
{{-- previous images --}} preview {{-- end previous images --}}
@endif @endif @if (is_array($product_create_form_fields_values)) @if (in_array(5, $product_create_form_fields_values ?? ''))

{{-- validation --}} @if ($errors->has('product_image_gallery')) @endif
{{-- gallery photos existing --}}
@if (!empty($product_gallery_decoded)) @foreach ($product_gallery_decoded as $key => $photo)
preview


@endforeach @endif

{{-- end of gallery photos existing --}}
@endif @endif @if (is_array($product_create_form_fields_values)) @if (in_array(6, $product_create_form_fields_values ?? ''))

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

@if (is_array($product_create_form_fields_values)) @if (in_array(7, $product_create_form_fields_values ?? ''))

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

@endif @endif
@endsection @section('extra_scripts') {{-- handline select2 --}} @endsection