@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
@show_tooltip(__('lang_v1.tooltip_sr_no'))
@show_tooltip(__('lang_v1.tooltip_not_for_selling'))
@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(session('business.enable_racks'))
{!! Form::text('product_racks[' . $id . '][rack]', !empty($rack_details[$id]['rack']) ? $rack_details[$id]['rack'] : null, ['class' => 'form-control bd-rd-7', 'id' => 'rack_' . $id,
'placeholder' => __('lang_v1.rack')]); !!}
@endif
@if(session('business.enable_row'))
{!! Form::text('product_racks[' . $id . '][row]', !empty($rack_details[$id]['row']) ? $rack_details[$id]['row'] : null, ['class' => 'form-control bd-rd-7', 'placeholder' => __('lang_v1.row')]); !!}
@endif
@if(session('business.enable_position'))
{!! Form::text('product_racks[' . $id . '][position]', !empty($rack_details[$id]['position']) ? $rack_details[$id]['position'] : null, ['class' => 'form-control bd-rd-7', 'placeholder' => __('lang_v1.position')]); !!}
@endif
@endforeach
@endif
{!! Form::label('weight', __('lang_v1.weight') . ':') !!}
{!! Form::text('weight', !empty($duplicate_product->weight) ? $duplicate_product->weight : null, ['class' => 'form-control bd-rd-7', 'placeholder' => '']); !!}
@php
$custom_labels = json_decode(session('business.custom_labels'), true);
$product_custom_fields = !empty($custom_labels['product']) ? $custom_labels['product'] : [];
$product_cf_details = !empty($custom_labels['product_cf_details']) ? $custom_labels['product_cf_details'] : [];
@endphp
@foreach($product_custom_fields as $index => $cf)
@if(!empty($cf))
@php
$db_field_name = 'product_custom_field' . $loop->iteration;
$cf_type = !empty($product_cf_details[$loop->iteration]['type']) ? $product_cf_details[$loop->iteration]['type'] : 'text';
$dropdown = !empty($product_cf_details[$loop->iteration]['dropdown_options']) ? explode(PHP_EOL, $product_cf_details[$loop->iteration]['dropdown_options']) : [];
@endphp
@endif
@endforeach
{!! Form::label('preparation_time_in_minutes', __('lang_v1.preparation_time_in_minutes') . ':') !!}
{!! Form::number('preparation_time_in_minutes', !empty($duplicate_product->preparation_time_in_minutes) ? $duplicate_product->preparation_time_in_minutes : null, ['class' => 'form-control bd-rd-7', 'placeholder' => '']); !!}
@include('layouts.partials.module_form_part')