{{-- Hidden inputs to store attribute names in both Arabic and English --}} @foreach(config('language') as $locale => $language) id}.name.{$locale}", $attribute->getTranslation('name', $locale)) }}" hidden> @endforeach @if ($attribute->type == 'select')
{{-- Select dropdown for attribute options --}}
@elseif ($attribute->type == 'checkbox' || $attribute->type == 'radio')
{{-- Checkbox or radio inputs for attribute options --}} @foreach ($attribute->options as $option) adAttributes as $adAttribute) @if ($option->id == $adAttribute->option_id) checked @endif @endforeach > {{ $option->options }}
@endforeach
@else
{{-- Input fields for attribute values --}} @foreach(config('language') as $locale => $language) @if (app()->getLocale() == $locale) id}.value.{$locale}", $attribute->value) }}"> @endif @endforeach
@endif