{{--
--}}
{!! 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) @php $categoryAddedArr = []; $extraItemsSorted = $extraItem[$groupRow->id]; @endphp @foreach($extraItemsSorted as $itemKey => $itemRow) @php $itemLabel = ($itemKey == 0); $itemLast = ($itemKey == count($extraItemsSorted) - 1); @endphp @if($itemLabel)
@endif @if(!isset($categoryAddedArr[$itemRow['category_id']]))
{!! $extraCategory[$itemRow['category_id']] ?? '' !!}
@endif @include('admin.global-items.ajax.extra_item_name_template', [ 'itemRow' => $itemRow, 'label' => $itemLabel, 'itemLast' => $itemLast, 'itemKey' => $itemKey, 'groupKey' => $groupKey, 'groupId' => $groupRow->id ]) @php $categoryAddedArr[$itemRow['category_id']] = 1; @endphp @endforeach @endif