Update text.blade.php

This commit is contained in:
Devansh 2022-07-20 19:11:19 +05:30 committed by GitHub
parent 8fb656ade5
commit 9662f095de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -5,15 +5,14 @@
class="control"
id="{{ $attribute->code }}"
{{-- To Do (@devansh-webkul): Need to handle from the backend. --}}
@if ($attribute->code === 'sku')
v-validate="{ required: true, regex: /^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/ }"
@else
v-validate="'{{ $validations }}'"
@endif
data-vv-as=""{{ $attribute->admin_name }}""
{{-- To Do (@devansh-webkul): Need to handle from the backend. --}}
{{ in_array($attribute->code, ['url_key']) ? 'v-slugify' : '' }}
{{ $attribute->code == 'name' && ! $product->url_key ? 'v-slugify-target=\'url_key\'' : '' }}
>