@php $selectedStore = isset($result->store_id) ? explode(',', $result->store_id) : []; $taxes = defaultCompanyTaxes(); @endphp
{!! Form::label('stores', __('global_items.stores'), ['class' => 'control-label mb-2']) !!} {!! Form::select('stores[]', $stores, $selectedStore, [ 'class' => 'form-control select2', 'multiple' => 'true', 'data-actions-box' => 'true', 'data-width' => '100%', ]) !!}
{!! Form::label('main_category_id', __('item.main_category'), ['class' => 'control-label mb-2']) !!} {!! Form::select('main_category_id', $category, null, [ 'class' => 'form-control __select2_change', 'data-target' => '#subCatId', 'data-route' => route('global-items.get-category'), ]) !!}
@php $subCategory = isset($subCategory) ? $subCategory : []; @endphp
{!! Form::label('category_id', __('item.category'), ['class' => 'control-label mb-2']) !!} {!! Form::select('category_id', $subCategory, null, [ 'class' => 'form-control', 'id' => 'subCatId', 'title' => __('category.select_sub_category'), 'data-route' => route('global-items.get-skip-variation'), ]) !!}
{!! Form::label('name', __('item.item_name'), ['class' => 'control-label']) !!} {!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::label('report_group_id', __('item.report_group_id'), ['class' => 'control-label']) !!} {!! Form::select('report_group_id', zReportGroup(), null, ['class' => 'form-control ']) !!}
{!! Form::label('choose_design', __('item.choose_design'), ['class' => 'control-label']) !!} {!! Form::select('choose_design', buildItemDesign(), $chooseDesign, ['class' => 'form-control']) !!}
@php $selectedPlatform = isset($result->platform) ? explode(',', $result->platform) : []; @endphp
{!! Form::label('platform', __('global_items.platform'), ['class' => 'control-label mb-2']) !!} {!! Form::select('platform[]', itemFor(), $selectedPlatform, ['class' => 'form-control select2', 'multiple' => 'true', 'data-actions-box' => 'true','data-width' => '100%']) !!}
{!! Form::label('description', __('item.description'), ['class' => 'control-label']) !!} {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 3]) !!}
{!! Form::label('en_description', __('item.en_description'), ['class' => 'control-label']) !!} {!! Form::textarea('en_description', null, ['class' => 'form-control', 'rows' => 3]) !!}
{!! Form::text('item_code', $itemCodeFinal , ['class' => 'form-control']) !!}
{!! Form::text('ean', null , ['class' => 'form-control']) !!}
{!! Form::select('is_offer_item', renderDeal(), $offerVal, ['class' => 'form-control is_offer_item']) !!}
{{Form::label('id', __('advertisements.weeks'), array('class' => 'control-label'))}}
@foreach($weekdays as $dayNo => $days) @endforeach
{{ Form::label('start_end_date', "Start/End Date", array('class' => 'control-label')) }}
{!! Form::text('start_date', $startDate, ['class' => 'form-control datepicker-input', 'placeholder' => __('item.start_date'), ]) !!}
{!! Form::text('end_date',$endDate, ['class' => 'form-control datepicker-input', 'placeholder' => __('item.end_date'), ]) !!}
{{Form::label('start_end_time', "Start/End Time", array('class' => 'control-label schedule-date'))}}
{!! Form::text('start_time', (isset($result) && $result->start_time != '') ? $result->start_time : '', ['class' => 'form-control time-picker start_time', 'placeholder' => 'From', 'autocomplete' => 'off']) !!}
{!! Form::text('end_time', (isset($result) && $result->end_time != '') ? $result->end_time : '', ['class' => 'form-control time-picker end_time', 'placeholder' => 'To', 'autocomplete' => 'off']) !!}
{{--
--}}
{!! Form::file('featured_image', ['class' => 'custom-file-upload-field']) !!}

{!! __('item.feature_image_note') !!}

@if (isset($result->featured_image))

@endif
{!! Form::file('gallery_image[]', ['class' => 'custom-file-upload-field', 'multiple' => 'multiple']) !!}

{!! __('item.gallery_image_note') !!}

@if (isset($gallery) && count($gallery) > 0)
@foreach ($gallery as $img)
@endforeach
@endif
@if (!empty(howSpicyIt()))
    @foreach (howSpicyIt() as $spciyKey => $spicyVal)
  • @endforeach
@endif
{!! Form::label('item_info', __('item.information'), ['class' => 'control-label']) !!} {!! Form::textarea('item_info', null, ['class' => 'form-control', 'rows' => 3]) !!}