{{$product->product_name}}
{{$product->sub_sku}}@if(!empty($product->brand)), {{$product->brand}} @endif
|
@if(empty($product->quantity_ordered))
@php
$product->quantity_ordered = 1;
@endphp
@endif
@php
$common_settings = session()->get('business.common_settings');
$multiplier = 1;
@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
@php
$max_quantity = $product->qty_available;
$formatted_max_quantity = $product->formatted_qty_available;
$max_qty_rule = $max_quantity;
$max_qty_msg = __('validation.custom-messages.quantity_not_available', ['qty'=> $formatted_max_quantity, 'unit' => $product->unit ]);
@endphp
@foreach($sub_units as $key => $value)
@if(!empty($product->sub_unit_id) && $product->sub_unit_id == $key)
@php
$max_qty_rule = $max_qty_rule / $multiplier;
$unit_name = $value['name'];
$max_qty_msg = __('validation.custom-messages.quantity_not_available', ['qty'=> $max_qty_rule, 'unit' => $unit_name ]);
if(!empty($product->lot_no_line_id)){
$max_qty_msg = __('lang_v1.quantity_error_msg_in_lot', ['qty'=> $max_qty_rule, 'unit' => $unit_name ]);
}
@endphp
@endif
@endforeach
unit_allow_decimal == 1)
data-decimal=1
@else
data-decimal=0
data-rule-abs_digit="true"
data-msg-abs_digit="@lang('lang_v1.decimal_value_not_allowed')"
@endif
data-rule-required="true"
data-msg-required="@lang('validation.custom-messages.this_field_is_required')"
@if($product->enable_stock)
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
>
{{$product->unit}}
|
|
@php
$hide_tax = 'hide';
$tax_id = $product->tax_id;
$unit_price_inc_tax = $product->sell_price_inc_tax;
if($hide_tax == 'hide'){
$tax_id = null;
$unit_price_inc_tax = $product->default_sell_price;
}
@endphp
{!! Form::select("products[$row_count][tax_id]", $tax_dropdown['tax_rates'], $tax_id, ['placeholder' => 'Select', 'class' => 'form-control tax_id'], $tax_dropdown['attributes']); !!}
|
|
|
|