@if(session('business.enable_product_expiry'))
@if(session('business.expiry_type') == 'add_expiry')
@php
$expiry_period = 12;
$hide = true;
@endphp
@else
@php
$expiry_period = null;
$hide = false;
@endphp
@endif
@endif
@if(session('business.enable_racks') || session('business.enable_row') || session('business.enable_position'))
@lang('lang_v1.rack_details'):
@show_tooltip(__('lang_v1.tooltip_rack_details'))
@foreach($business_locations as $id => $location)
{!! Form::label('rack_' . $id, $location . ':') !!}
@if(!empty($rack_details[$id]))
@if(session('business.enable_racks'))
{!! Form::text('product_racks_update[' . $id . '][rack]', $rack_details[$id]['rack'], ['class' => 'form-control', 'id' => 'rack_' . $id]); !!}
@endif
@if(session('business.enable_row'))
{!! Form::text('product_racks_update[' . $id . '][row]', $rack_details[$id]['row'], ['class' => 'form-control']); !!}
@endif
@if(session('business.enable_position'))
{!! Form::text('product_racks_update[' . $id . '][position]', $rack_details[$id]['position'], ['class' => 'form-control']); !!}
@endif
@else
{!! Form::text('product_racks[' . $id . '][rack]', null, ['class' => 'form-control', 'id' => 'rack_' . $id, 'placeholder' => __('lang_v1.rack')]); !!}
{!! Form::text('product_racks[' . $id . '][row]', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.row')]); !!}
{!! Form::text('product_racks[' . $id . '][position]', null, ['class' => 'form-control', 'placeholder' => __('lang_v1.position')]); !!}
@endif
@endforeach
@endif
{!! Form::label('weight', __('lang_v1.weight') . ':') !!}
{!! Form::text('weight', $product->weight, ['class' => 'form-control', 'placeholder' => __('lang_v1.weight')]); !!}
{!! Form::label('product_custom_field1', __('lang_v1.product_custom_field1') . ':') !!}
{!! Form::text('product_custom_field1', $product->product_custom_field1, ['class' => 'form-control', 'placeholder' => __('lang_v1.product_custom_field1')]); !!}
{!! Form::label('product_custom_field2', __('lang_v1.product_custom_field2') . ':') !!}
{!! Form::text('product_custom_field2', $product->product_custom_field2, ['class' => 'form-control', 'placeholder' => __('lang_v1.product_custom_field2')]); !!}
{!! Form::label('product_custom_field3', __('lang_v1.product_custom_field3') . ':') !!}
{!! Form::text('product_custom_field3', $product->product_custom_field3, ['class' => 'form-control', 'placeholder' => __('lang_v1.product_custom_field3')]); !!}
{!! Form::label('product_custom_field4', __('lang_v1.product_custom_field4') . ':') !!}
{!! Form::text('product_custom_field4', $product->product_custom_field4, ['class' => 'form-control', 'placeholder' => __('lang_v1.product_custom_field4')]); !!}