@if($label)
@endif
{!! Form::text('extra_item_group_name['. ($groupKey ?? '') . ']', $groupRow->group_name ?? '', ['class' => 'form-control __extra_item_group_name']) !!}
@if(isset($groupRow)) @endif
{!! Form::text('extra_item_group_max_items[' . ($groupKey ?? '') . ']', $groupRow->max_select ?? '', ['class' => 'form-control __extra_item_max_items']) !!}
{!! Form::text('extra_item_group_min_items[' . ($groupKey ?? '') . ']', $groupRow->min_select ?? '', ['class' => 'form-control __extra_item_min_items']) !!}
{!! Form::select('extra_item_group_choose_design[' . ($groupKey ?? '') . ']', extraDesigns(), $groupRow->design ?? 0, ['class' => 'form-control __extra_item_choose_design']) !!}
{!! Form::text('extra_item_group_sort[' . ($groupKey ?? '') . ']', $groupRow->sort ?? '', ['class' => 'form-control __extra_item_sort']) !!}
@if(isset($groupRow) && isset($extraItem[$groupRow->id]) && count($extraItem[$groupRow->id]) > 0) @foreach($extraItem[$groupRow->id] as $itemKey => $itemRow) @php $itemLabel = ($itemKey == 0); $itemLast = ($itemKey == count($extraItem[$groupRow->id]) - 1); @endphp @include('seller.item.ajax.extra_item_name_template', [ 'itemRow' => $itemRow, 'label' => $itemLabel, 'itemLast' => $itemLast, 'itemKey' => $itemKey, 'groupKey' => $groupKey ]) @endforeach @endif