@php
$pos_unit_price = $product->tax_type == 'inclusive' ? $product->sell_price_inc_tax : $product->default_sell_price;
$pos_unit_price = $product->default_sell_price;
@endphp
@if(!auth()->user()->can('edit_product_price_from_sale_screen'))
@lang('sale.unit_price'): {{@num_format(!empty($product->unit_price_before_discount) ? $product->unit_price_before_discount : $product->default_sell_price)}}
@endif
@if(!empty($discount))
@endif
{!! Form::select("products[$row_count][line_discount_type]", ['fixed' => __('lang_v1.fixed'), 'percentage' => __('lang_v1.percentage')], $discount_type , ['class' => 'form-control row_discount_type', 'onclick' => "hide_numpad({$row_count})"]); !!}
{!! Form::text("products[$row_count][line_discount_amount]", @num_format($discount_amount), ['class' => 'form-control input_number row_discount_amount', 'onfocus' => "show_numpad({$row_count}, this.name, this, 'row_product_edit')"]); !!}
{!! Form::hidden("products[$row_count][item_tax]", @num_format($item_tax), ['class' => 'item_tax']); !!}
{!! Form::select("products[$row_count][tax_id]", $tax_dropdown['tax_rates'], $tax_id, ['placeholder' => 'Select', 'class' => 'form-control tax_id'], $tax_dropdown['attributes']); !!}
@if(!empty($warranties))
{!! Form::select("products[$row_count][warranty_id]", $warranties, $warranty_id, ['placeholder' => __('messages.please_select'), 'class' => 'form-control', 'onclick' => "hide_numpad({$row_count})"]); !!}
@endif