@switch($attribute->type) @case('text') code == 'url_key') v-slugify @endif @if ($attribute->code == 'name') v-slugify-target:url_key="setValues" @endif > @break @case('price') {{ core()->currencySymbol(core()->getBaseCurrencyCode()) }} @break @case('textarea') @break @case('date') @break @case('datetime') @break @case('select') @php $selectedOption = old($attribute->code) ?: $product[$attribute->code]; if ($attribute->code != 'tax_category_id') { $options = $attribute->options()->orderBy('sort_order')->get(); } else { $options = app('Webkul\Tax\Repositories\TaxCategoryRepository')->all(); } @endphp @foreach ($options as $option) @endforeach @break @case('multiselect') @php $selectedOption = old($attribute->code) ?: explode(',', $product[$attribute->code]); @endphp @foreach ($attribute->options()->orderBy('sort_order')->get() as $option) @endforeach @break @case('checkbox') @php $selectedOption = old($attribute->code) ?: explode(',', $product[$attribute->code]); @endphp @foreach ($attribute->options as $option)
@endforeach @break @case('boolean') @php $selectedValue = old($attribute->code) ?: $product[$attribute->code] @endphp @break @case('image') @case('file') @if ($product[$attribute->code])
@endif @break @endswitch