@php
$common_settings = session()->get('business.common_settings');
$product_name = $product->product_name . '
' . $product->sub_sku ;
if(!empty($product->brand)){ $product_name .= ' ' . $product->brand ;}
@endphp
{!! $product_name !!}
@php
$hide_tax = 'hide';
$tax_id = $product->tax_id;
$item_tax = !empty($product->item_tax) ? $product->item_tax : 0;
$unit_price_inc_tax = $product->sell_price_inc_tax;
$discount_type = !empty($product->line_discount_type) ? $product->line_discount_type : 'fixed';
$discount_amount = !empty($product->line_discount_amount) ? $product->line_discount_amount : 0;
$sell_line_note = '';
if(!empty($product->sell_line_note)){
$sell_line_note = $product->sell_line_note;
}
@endphp
@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
@lang('lang_v1.sell_line_description_help')
|
@php
$multiplier = 1;
$allow_decimal = true;
if($product->unit_allow_decimal != 1) {
$allow_decimal = false;
}
@endphp
@foreach($sub_units as $key => $value)
@if(!empty($product->sub_unit_id) && $product->sub_unit_id == $key)
@php
$multiplier = $value['multiplier'];
if($value['allow_decimal']) {
$allow_decimal = true;
}
@endphp
@endif
@endforeach
@if(count($sub_units) > 0)
@else
{{$product->unit}}
@endif
{{-- Hidden fields for combo products --}}
@if($product->product_type == 'combo'&& !empty($product->combo_products))
@foreach($product->combo_products as $k => $combo_product)
@php
$qty_total = $combo_product['qty_required'];
@endphp
@endforeach
@endif
|
@php
$pos_unit_price = !empty($product->unit_price_before_discount) ? $product->unit_price_before_discount : $product->default_sell_price;
@endphp
|
{!! Form::text("products[$row_count][line_discount_amount]", @num_format($discount_amount), ['class' => 'form-control input_number row_discount_amount']); !!}
{!! Form::select("products[$row_count][line_discount_type]", ['fixed' => __('lang_v1.fixed'), 'percentage' => __('lang_v1.percentage')], $discount_type , ['class' => 'form-control row_discount_type']); !!}
@if(!empty($discount))
{!! __('lang_v1.applied_discount_text', ['discount_name' => $discount->name, 'starts_at' => $discount->formated_starts_at, 'ends_at' => $discount->formated_ends_at]) !!}
@endif
|
{!! 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']); !!}
|
@format_currency($unit_price_inc_tax)
|
{{$product->quantity_ordered*$unit_price_inc_tax}}
|
|