diff --git a/packages/Webkul/Admin/src/Resources/views/catalog/products/edit.blade.php b/packages/Webkul/Admin/src/Resources/views/catalog/products/edit.blade.php index 03d985fe6..e76ff2035 100755 --- a/packages/Webkul/Admin/src/Resources/views/catalog/products/edit.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/catalog/products/edit.blade.php @@ -17,7 +17,8 @@

- + {{ __('admin::app.catalog.products.edit-title') }}

@@ -26,7 +27,8 @@ @foreach (core()->getAllLocales() as $localeModel) - @@ -66,31 +69,37 @@ {!! view_render_event('bagisto.admin.catalog.product.edit_form_accordian.' . $attributeGroup->name . '.before', ['product' => $product]) !!} - +
{!! view_render_event('bagisto.admin.catalog.product.edit_form_accordian.' . $attributeGroup->name . '.controls.before', ['product' => $product]) !!} @foreach ($customAttributes as $attribute) is_required) - array_push($validations, 'required'); + if ($attribute->is_required) { + array_push($validations, 'required'); + } - if ($attribute->type == 'price') - array_push($validations, 'decimal'); + if ($attribute->type == 'price') { + array_push($validations, 'decimal'); + } - array_push($validations, $attribute->validation); + array_push($validations, $attribute->validation); - $validations = implode('|', array_filter($validations)); + $validations = implode('|', array_filter($validations)); ?> @if (view()->exists($typeView = 'admin::catalog.products.field-types.' . $attribute->type)) -
type == 'multiselect') :class="[errors.has('{{ $attribute->code }}[]') ? 'has-error' : '']" @else :class="[errors.has('{{ $attribute->code }}') ? 'has-error' : '']" @endif> +
type == 'multiselect') :class="[errors.has('{{ $attribute->code }}[]') ? 'has-error' : '']" + @else :class="[errors.has('{{ $attribute->code }}') ? 'has-error' : '']" @endif> -
@@ -177,4 +194,4 @@ }); }); -@endpush \ No newline at end of file +@endpush