@if ($attributes) @foreach ($attributes as $attribute)
{{-- 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) {{ $option->options }}
@endforeach
@else
@foreach(config('language') as $locale => $language) @if (app()->getLocale() == $locale) id}.value.{$locale}", $attribute->value) }}"> @endif @endforeach
@endif
@endforeach @endif @if ($globalAttributes) @foreach ($globalAttributes as $globalAttribute)
{{-- Hidden inputs to store attribute names in both Arabic and English --}} @foreach(config('language') as $locale => $language) id}.name.{$locale}", $globalAttribute->getTranslation('name', $locale)) }}" hidden> @endforeach @if ($globalAttribute->type == 'select')
{{-- Select dropdown for attribute options --}}
@elseif ($globalAttribute->type == 'checkbox' || $globalAttribute->type == 'radio')
{{-- Checkbox or radio inputs for attribute options --}} @foreach ($globalAttribute->options as $optionManyOption) {{ $optionManyOption->options }}
@endforeach
@else
@foreach(config('language') as $locale => $language) @if (app()->getLocale() == $locale) id}.value.{$locale}", $globalAttribute->value) }}"> @endif @endforeach
@endif
@endforeach @endif