@php
$options = $attribute->lookup_type
? app('Webkul\Attribute\Repositories\AttributeRepository')->getLookUpOptions($attribute->lookup_type)
: $attribute->options()->orderBy('sort_order')->get();
$selectedOption = old($attribute->code) ?: $value;
@endphp
@foreach ($options as $option)
@endforeach