@php $hidden=(isset($offerRow) && $result->offer_type==2)?"":"hidden"; @endphp @if($label)
@endif
@if(isset($offerRow)) @endif
{!! Form::select('offer_category_id['. ($offerKey ?? '') . ']',['0'=>__('common.select-option')]+ $offerCategory, $offerRow->category_id ?? '', [ 'class' => 'form-control select2-new __offer_category_id __test __select2_change', 'data-target' => '#__offer_item_id_'.($offerKey ?? ''), 'data-route' => route('global-items.get-items'), 'data-url' => route('global-items.get-variation-category'), 'data-selected' => $offerRow->item_id ?? '', 'data-selected-variation' => $offerRow->variation_id ?? '', 'data-target-variation' => '#__offer_variation_id_'.($offerKey ?? ''), ]) !!}
{!! Form::select('offer_item_id['. ($offerKey ?? '') . ']',[''=>__('common.select-option')], $offerRow->item_id ?? '', [ 'class' => 'form-control select2-new __offer_item_id __select2_change', 'data-target' => '#__offer_variation_id_'.($offerKey ?? ''), 'data-route' => route('global-items.get-variations'), 'data-selected' => $offerRow->variation_id ?? '', 'id'=>'__offer_item_id_'.($offerKey ?? ''), ]) !!}
{!! Form::select('offer_variation_id['. ($offerKey ?? '') . ']', $parentVariations, $offerRow->variation_id ?? '', [ 'class' => 'form-control select2-new __offer_variation_id', 'id'=>'__offer_variation_id_'.($offerKey ?? '') ]) !!}
{{ Form::file('offer_image['. ($offerKey ?? '') . ']',array('class'=>'custom-file-upload-field ','accept' => 'image/png, image/jpeg') )}}
@if(isset($offerRow->offer_image))
@endif