@php $common_settings = session()->get('business.common_settings'); $multiplier = 1; $action = !empty($action) ? $action : ''; @endphp @foreach($sub_units as $key => $value) @if(!empty($product->sub_unit_id) && $product->sub_unit_id == $key) @php $multiplier = $value['multiplier']; @endphp @endif @endforeach @if(!empty($so_line)) @endif @php $product_name = $product->product_name . '
' . $product->sub_sku; if(!empty($product->brand)){ $product_name .= ' ' . $product->brand; } $hide_tax = 'hide'; if(session()->get('business.enable_inline_tax') == 1){ $hide_tax = ''; } $tax_id = $product->tax_id; $item_tax = !empty($product->item_tax) ? $product->item_tax : 0; $unit_price_inc_tax = $product->sell_price_inc_tax; if($hide_tax == 'hide'){ $tax_id = null; $unit_price_inc_tax = $product->default_sell_price; } $discount_type = !empty($product->line_discount_type) ? $product->line_discount_type : 'fixed'; $discount_amount = !empty($product->line_discount_amount) ? $product->line_discount_amount : 0; if(!empty($discount)) { $discount_type = $discount->discount_type; $discount_amount = $discount->discount_amount; } if($discount_type == 'fixed') { $discount_amount = $discount_amount * $multiplier; } @endphp @if(($edit_price || $edit_discount) && empty($is_direct_sell))
{!! $product_name !!}  
@else {!! $product_name !!} @endif product-img {{-- Hidden fields for form submission --}} {{-- Tax related fields --}} @if(!empty($discount)) {!! Form::hidden("products[$row_count][discount_id]", $discount->id); !!} @endif @php $warranty_id = !empty($action) && $action == 'edit' && !empty($product->warranties->first()) ? $product->warranties->first()->id : $product->warranty_id; @endphp @if(!empty($warranties)) {!! Form::hidden("products[$row_count][warranty_id]", $warranty_id, ['class' => 'row_warranty_id']); !!} @endif @if(session()->get('business.enable_lot_number') == 1) @if(!empty($product->lot_numbers)) @endif @endif
enable_stock && empty($pos_settings['allow_overselling']) && empty($is_sales_order) ) data-rule-max-value="{{$max_qty_rule}}" data-qty_available="{{$product->qty_available}}" data-msg-max-value="{{$max_qty_msg}}" data-msg_max_default="@lang('validation.custom-messages.quantity_not_available', ['qty'=> $product->formatted_qty_available, 'unit' => $product->unit ])" @endif >
@if(count($sub_units) > 0)
@else {{$product->unit}} @endif