--}}
{{-- validation --}}
@if ($errors->has('product_name'))
{{ $errors->first('product_name') }}
@endif
{{-- validation --}}
@if ($errors->has('parent_product_category_id'))
{{ $errors->first('parent_product_category_id') }}
@endif
{{-- validation --}}
@if ($errors->has('product_category_id'))
{{ $errors->first('product_category_id') }}
@endif
{{--
--}}
{{-- validation --}}
@if ($errors->has('brand_id'))
{{ $errors->first('brand_id') }}
@endif
{{-- validation --}}
@if ($errors->has('supplier_id'))
{{ $errors->first('supplier_id') }}
@endif
{{-- validation --}}
@if ($errors->has('unit_id'))
{{ $errors->first('unit_id') }}
@endif
{{--
--}}
{{-- validation --}}
@if ($errors->has('branch_id'))
{{ $errors->first('branch_id') }}
@endif
{{-- validation --}}
@if ($errors->has('product_created_date'))
{{ $errors->first('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'))
{{ $errors->first('product_expiry_date') }}
@endif
@endif
@endif
{{--
--}}
{{-- validation --}}
@if ($errors->has('product_status'))
{{ $errors->first('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'))
{{ $errors->first('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'))
{{ $errors->first('product_cost_price') }}
@endif
@endif
@endif
{{--
--}}
{{-- validation --}}
@if ($errors->has('product_selling_price'))
{{ $errors->first('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'))
{{ $errors->first('product_image') }}
@endif
{{-- previous images --}}
{{-- 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'))
{{ $errors->first('product_image_gallery') }}
@endif
{{-- gallery photos existing --}}
@if (!empty($product_gallery_decoded))
@foreach ($product_gallery_decoded as $key => $photo)
@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'))
{{ $errors->first('product_stock_alert') }}
@endif
@endif
@endif
@if (is_array($product_create_form_fields_values))
@if (in_array(7, $product_create_form_fields_values ?? ''))
@endif
@endif