{{Session('message')}}
Update
- Basic Settings
- Advanced Settings
- has('tree_id')) style="border-color: #dd4b39;" @endif> Category
- Images
- Videos
- SEO
- Other
- Points
- Color
- discounted_product_msg)) style="display: block;" @else style="display: none;" @endif> Discounted
{{--Basic Settings--}}
{{--Advanced Settings--}}
{{--Product Category--}}
{!! 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)') !!}
{!! 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
{!! 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('Esitamed Price Visible?') !!}
@if($product->estimated_visible ==1)
@else
@endif
{!! Form::label('Regular Price') !!}
{!! Form::text('product_price1', $product->product_price1, ['class' => 'form-control', 'id' => 'regular_price', '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', 'id' => 'special_price', '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', 'id' => 'ecom_discount_price', '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',
7 => 'Coming Soon'
], $product->product_is_upcoming, ['class' => 'form-control', 'id' => 'product_is_upcoming', 'onchange' => "upcomingProducts();"]) !!}
{!! Form::label('Group') !!}
{!! Form::select('product_search_group', [3 => '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', 'id'=> 'product_is_exist']) !!}
{!! Form::label('Cross Price') !!}
{!! Form::text('cross_price', $product->cross_price, ['class' => 'form-control', 'placeholder' => 'Cross Price', 'id' => 'cross_price']) !!}
{!! 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', 'id' => 'force_disable']) !!}
{!! Form::label('Discontinued product updated SKU') !!}
{!! Form::text('out_of_stock_updated_sku', $product->out_of_stock_updated_sku , ['class' => 'form-control', 'placeholder' => 'Discontinued product updated SKU']) !!}
{!! Form::label('Is discounted?') !!} discounted_product_msg)) checked="checked" @endif id="discounted_slug_chk" />
Please select item type first!
@if ($errors->has('tree_id'))
{!! $errors->first('tree_id') !!}
@endif
@include('admin.category.treeview-edit')
{{--Product Videos--}}
{{--Product Images--}}
@foreach($product->productImages as $productImage)
@if($productImage->product_image_name)