@if(!session('business.enable_price_tax')) @php $default = 0; $class = 'hide'; @endphp @else @php $default = null; $class = ''; @endphp @endif @php $common_settings = session()->get('business.common_settings'); @endphp

@foreach($product_deatails->variations as $variation ) @php $is_image_required = !empty($common_settings['is_product_image_required']) && count($variation->media) == 0; @endphp @if($loop->first) @endif @endforeach
@lang('product.default_purchase_price') @lang('product.profit_percent') @show_tooltip(__('tooltip.profit_percent')) @lang('product.default_selling_price') @lang('lang_v1.product_image')
{!! Form::label('single_dpp', trans('product.exc_of_tax') . ':*') !!} {!! Form::text('single_dpp', @num_format($variation->default_purchase_price), ['class' => 'form-control input-sm dpp input_number', 'placeholder' => __('product.exc_of_tax'), 'required']); !!}
{!! Form::label('single_dpp_inc_tax', trans('product.inc_of_tax') . ':*') !!} {!! Form::text('single_dpp_inc_tax', @num_format($variation->dpp_inc_tax), ['class' => 'form-control input-sm dpp_inc_tax input_number', 'placeholder' => __('product.inc_of_tax'), 'required']); !!}

{!! Form::text('profit_percent', @num_format($variation->profit_percent), ['class' => 'form-control input-sm input_number', 'id' => 'profit_percent', 'required']); !!}
{!! Form::text('single_dsp', @num_format($variation->default_sell_price), ['class' => 'form-control input-sm dsp input_number', 'placeholder' => __('product.exc_of_tax'), 'id' => 'single_dsp', 'required']); !!} {!! Form::text('single_dsp_inc_tax', @num_format($variation->sell_price_inc_tax), ['class' => 'form-control input-sm hide input_number', 'placeholder' => __('product.inc_of_tax'), 'id' => 'single_dsp_inc_tax', 'required']); !!} @php $action = !empty($action) ? $action : ''; @endphp @if($action !== 'duplicate') @foreach($variation->media as $media)
{!! $media->thumbnail() !!}
@endforeach @endif
{!! Form::label('variation_images', __('lang_v1.product_image') . ':') !!} {!! Form::file('variation_images[]', ['class' => 'variation_images', 'accept' => 'image/*', 'multiple', 'required' => $is_image_required]); !!}

@lang('purchase.max_file_size', ['size' => (config('constants.document_size_limit') / 1000000)])
@lang('lang_v1.aspect_ratio_should_be_1_1')