{{Session('message')}}
Update
- Basic Settings
- Advanced Settings
- has('tree_id')) style="border-color: #dd4b39;" @endif> Category
- Images
- Videos
- SEO
- Other
- Points
{{--Basic Settings--}}
{{--Advanced Settings--}}
{{--Product Category--}}
@endif
{{--Product Images--}}
{{--Product SEO--}}
{{--Other--}}
{{--Points Settings--}}
{!! Form::label('Item Type') !!}
{!! Form::select('item_type_id', $item_types, $product->item_type_id, ['class' => 'form-control item_type_select2', 'placeholder' => 'Select Item Type', 'id' => 'item_type_select2']) !!}
@if ($errors->has('item_type_id'))
{!! $errors->first('item_type_id') !!}
@endif
{!! Form::label('Sub Item Type') !!}
{!! Form::select('sub_item_type_id', [ 0 => 'Select Sub Item Type'], $product->sub_item_type_id, ['class' => 'form-control sub_item_type_select2', 'id' => 'sub_item_type_select2']) !!}
@if ($errors->has('sub_item_type'))
{!! $errors->first('item_type') !!}
@endif
{!! Form::label('Brand') !!}
{!! Form::select('brand_id', $brands, $product->brand_id, ['class' => 'form-control brand_select2', 'placeholder' => 'Select Brand', 'id' => 'brand_select2']) !!}
@if ($errors->has('brand_id'))
{!! $errors->first('brand_id') !!}
@endif
{!! Form::label('Head') !!}
{!! Form::text('product_head', $product->product_head, ['class' => 'form-control', 'placeholder' => 'Head', 'id' => 'product_head']) !!}
@if ($errors->has('product_head'))
{!! $errors->first('product_head') !!}
@endif
{!! Form::label('Name') !!}
{!! Form::text('product_name', $product->product_name, ['class' => 'form-control', 'placeholder' => 'Name', 'id' => 'product_name']) !!}
@if ($errors->has('product_name'))
{!! $errors->first('product_name') !!}
@endif
{!! Form::label('Slug (Don`t use any &, /, +, #, $ symbols)') !!} discounted_product_msg)) checked="checked" @endif id="discounted_slug_chk" />
{!! Form::text('product_slug', $product->product_slug, ['class' => 'form-control', 'placeholder' => 'Slug', 'id' => 'product_slug']) !!}
@if ($errors->has('product_slug'))
{!! $errors->first('product_slug') !!}@endif
discounted_product_msg)) style="display: block;" @else style="display: none;" @endif >
{!! Form::label('Discounted Slug Message') !!}
{!! Form::text('discounted_product_msg', $product->discounted_product_msg , ['class' => 'form-control', 'placeholder' => 'Discounted Slug Msg' ,'id' => 'discounted_product_msg']) !!}
{!! Form::label('INV Code') !!}
{!! Form::text('product_code_inv', $product->product_code_inv, ['class' => 'form-control', 'placeholder' => 'INV Code']) !!}
@if ($errors->has('product_code_inv'))
{!! $errors->first('product_code_inv') !!}
@endif
{!! Form::label('Destop Builder Segment') !!}
{!! Form::select('desktop_b_type_ids[]', $desktop_b_types, null, ['class' => 'form-control desktop_b_type_select2', 'id' => 'desktop_b_type_select2', 'multiple' => 'multiple']) !!}
{!! Form::label('Short Description') !!}
{!! Form::textarea('product_short_description', $product->product_short_description, ['class' => 'form-control', 'rows' => '3', 'placeholder' => 'Short Description']) !!}
@if ($errors->has('product_short_description'))
{!! $errors->first('product_short_description') !!}
@endif
{!! Form::label('Long Description') !!}
{!! Form::textarea('product_long_description', $product->product_long_description, ['class' => 'form-control', 'rows' => '8','placeholder' => 'Long Description', 'id' => 'product_long_description']) !!}
@if ($errors->has('product_long_description'))
{!! $errors->first('product_long_description') !!}
@endif
{!! Form::label('Regular Price') !!}
{!! Form::text('product_price1', $product->product_price1, ['class' => 'form-control', 'placeholder' => 'Regular Price']) !!}
@if ($errors->has('product_price1'))
{!! $errors->first('product_price1') !!}
@endif
{!! Form::label('Special Price') !!}
{!! Form::text('product_price2', $product->product_price2, ['class' => 'form-control', 'placeholder' => 'Special Price']) !!}
@if ($errors->has('product_price2'))
{!! $errors->first('product_price2') !!}
@endif
{!! Form::label($specialDiscountLabel) !!}
{!! Form::text('special_discount', $product->special_discount, ['class' => 'form-control', 'placeholder' => $specialDiscountLabel]) !!}
@if ($errors->has('special_discount'))
{!! $errors->first('special_discount') !!}
@endif
{{-- --}}
{{-- {!! Form::label('Price Three') !!}--}}
{{-- {!! Form::text('product_price3', $product->product_price3, ['class' => 'form-control', 'placeholder' => 'Price Three']) !!}--}}
{{-- @if ($errors->has('product_price3'))--}}
{{-- {!! $errors->first('product_price3') !!}--}}
{{-- @endif--}}
{{--
--}}
{{-- --}}
{{-- {!! Form::label('Price Four') !!}--}}
{{-- {!! Form::text('product_price4', $product->product_price4, ['class' => 'form-control', 'placeholder' => 'Price Four']) !!}--}}
{{-- @if ($errors->has('product_price4'))--}}
{{-- {!! $errors->first('product_price4') !!}--}}
{{-- @endif--}}
{{--
--}}
{!! Form::label('Home') !!}
{!! Form::select('product_is_home', [0 => 'No',1 => 'Yes'], $product->product_is_home, ['class' => 'form-control']) !!}
{!! Form::label('Upcoming or General') !!}
{!! Form::select('product_is_upcoming', [0 => 'General',
1 => 'Upcoming', 2 => 'Out Of stock', 3 => 'Pre Order', 4 =>'Discounted', 5=> 'Discontinued'], $product->product_is_upcoming, ['class' => 'form-control', 'id' => 'product_is_upcoming', 'onchange' => "upcomingProducts();"]) !!}
{!! Form::label('Group') !!}
{!! Form::select('product_search_group', [0 => 'Default', 1 => 'A', 2 => 'B'],
$product->product_search_group,
['class' => 'form-control']) !!}
@php($product_upcoming_expire_date = new DateTime($product->product_upcoming_expire_date))
{!! Form::label('Date') !!}
{!! Form::date('product_upcoming_date', $product_upcoming_expire_date->format('Y-m-d'), ['class' => 'form-control']) !!}
{!! Form::label('Time') !!}
{!! Form::time('product_upcoming_time', $product_upcoming_expire_date->format('H:i:s'), ['class' => 'form-control']) !!}
{!! Form::label('Expected delivery days') !!}
{!! Form::select('expected_delivery_time_days', $days, floor(($product->expected_delivery_time) / 24), ['class' => 'form-control', 'id' => 'expected_delivery_time_days']) !!}
{!! Form::label('Expected delivery hours') !!}
{!! Form::select('expected_delivery_time_hours', $hours, ($product->expected_delivery_time % 24), ['class' => 'form-control', 'id' => 'expected_delivery_time_hours']) !!}
{!! Form::label('Details for upcoming products') !!}
{!! Form::textarea('product_upcoming_details', $product->product_upcoming_details, ['class' => 'form-control']) !!}
{!! Form::label('Status') !!}
{!! Form::select('product_is_exist', [1 => 'Active', 0 => 'Inactive'], $product->product_is_exist, ['class' => 'form-control']) !!}
{!! Form::label('Force disable From showing on list and search') !!}
{!! Form::select('force_disable', [1 => 'Disable', 0 => 'Not disabled'], $product->force_disable, ['class' => 'form-control']) !!}
{!! Form::label('Out of stock product updated SKU') !!}
{!! Form::text('out_of_stock_updated_sku', $product->out_of_stock_updated_sku , ['class' => 'form-control', 'placeholder' => 'Out of stock product updated SKU']) !!}
Please select item type first!
@if ($errors->has('tree_id'))
{!! $errors->first('tree_id') !!}
@endif
@include('admin.category.treeview-edit')
{{--Product Videos--}}
{!! Form::label('Video Title') !!}
{!! Form::text('product_video_title', $product->product_video_title, ['class' => 'form-control', 'placeholder' => 'Enter Video Title']) !!}
@if ($errors->has('product_video_title'))
{!! $errors->first('product_video_title') !!}@endif
{!! Form::label('Video URL') !!}
{!! Form::text('product_video_url', $product->product_video_url, ['class' => 'form-control', 'placeholder' => 'Enter Video Url']) !!}
@if ($errors->has('product_video_url'))
{!! $errors->first('product_video_url') !!}@endif
@if($product->product_video_url)
@foreach($product->productImages as $productImage)
@endforeach
@if($productImage->product_image_name)
@else
@endif
{!! Form::hidden('current_images[]', $productImage->product_image_name) !!}
{!! Form::label('Meta Title') !!}
{!! Form::text('product_meta_title', $product->product_meta_title, ['class' => 'form-control', 'placeholder' => 'Enter Meta Title']) !!}
@if ($errors->has('product_meta_title'))
{!! $errors->first('product_meta_title') !!}@endif
{!! Form::label('Meta Keyword') !!}
{!! Form::textarea('product_meta_keyword', $product->product_meta_keyword, ['class' => 'form-control', 'placeholder' => 'Enter Meta Keyword']) !!}
@if ($errors->has('product_meta_keyword'))
{!! $errors->first('product_meta_keyword') !!}@endif
{!! Form::label('Meta Description') !!}
{!! Form::textarea('product_meta_description', $product->product_meta_description, ['class' => 'form-control', 'placeholder' => 'Enter Meta Description']) !!}
@if ($errors->has('product_meta_description'))
{!! $errors->first('product_meta_description') !!}@endif
{!! Form::label('Related Products') !!}
{{--{!! Form::select('related_products[]',$related_products, null, ['class' => 'form-control','id' => 'related_products' ,'multiple' => 'multiple']) !!}--}}
{!! Form::textarea('related_products', $related_products->product_inv_codes , ['class' => 'form-control', 'placeholder' => 'Enter comma separated SKU']) !!}
@if ($errors->has('related_products'))
{!! $errors->first('related_products') !!}@endif
{!! Form::label('Similar Products') !!}
{{--{!! Form::select('related_products[]',$related_products, null, ['class' => 'form-control','id' => 'related_products' ,'multiple' => 'multiple']) !!}--}}
{!! Form::textarea('similar_products', $similar_products->product_inv_codes, ['class' => 'form-control', 'placeholder' => 'Enter comma separated SKU']) !!}
@if ($errors->has('similar_products'))
{!! $errors->first('similar_products') !!}@endif
{!! Form::label('Other Color Products') !!}
{!! Form::select('color_products[]',[], null, ['class' => 'form-control','id' => 'color_products' ,'multiple' => 'multiple']) !!}
{{--{!! Form::textarea('color_products', null, ['class' => 'form-control', 'placeholder' => 'Enter comma separated SKU']) !!}--}}
@if ($errors->has('color_products'))
{!! $errors->first('similar_products') !!}@endif
{!! Form::label('Point') !!}
{!! Form::number('point', $product->point, ['class' => 'form-control', 'placeholder' => 'Point']) !!}
@if ($errors->has('point'))
{!! $errors->first('point') !!}@endif
{!! Form::label('Point Type') !!}
{!! Form::select('point_type', $pointTypes, $product->point_type, ['class' => 'form-control', 'id' => 'pointType']) !!}
@if ($errors->has('point_type'))
{!! $errors->first('point_type') !!}@endif
{!! Form::submit('Update',['class' => 'btn btn-warning']) !!}
{!! Form::close() !!}