{{$product->sub_sku}} {{$product->product_name}} @if(!empty($edit)) @php $qty = $product->quantity_returned; $purchase_price = $product->purchase_price; @endphp @else @php $qty = 1; $purchase_price = $product->last_purchased_price; @endphp @endif @php $tax_rat = (float)(1 + $product->tax_amount * 0.01); $taxable_value = (float)$purchase_price / $tax_rat; $taxamount = ($purchase_price - $taxable_value) * $qty; $basic_cost = $purchase_price - $taxamount; @endphp unit_allow_decimal == 1) data-decimal=1 @else data-rule-abs_digit="true" data-msg-abs_digit="@lang('lang_v1.decimal_value_not_allowed')" data-decimal=0 @endif data-rule-required="true" data-msg-required="@lang('validation.custom-messages.this_field_is_required')" @if($product->enable_stock) data-rule-max-value="{{$product->qty_available}}" data-msg-max-value="@lang('validation.custom-messages.quantity_not_available', ['qty'=> $product->formatted_qty_available, 'unit' => $product->unit])" data-qty_available="{{$product->qty_available}}" data-msg_max_default="@lang('validation.custom-messages.quantity_not_available', ['qty'=> $product->formatted_qty_available, 'unit' => $product->unit])" @endif> Total Qty: {{$product->formatted_qty_available}}