@if(isset($sell_details) && $sell_details->count() > 0) @foreach($sell_details as $key => $product) {{$product->product_name}} @if($product->is_warranty == 1) ({{'Warranty '.$product->period.' Month'}}) @endif
{{$product->sub_sku}}@if(!empty($product->brand)), {{$product->brand}} @endif   @if(empty($product->quantity_ordered)) @php $product->quantity_ordered = 1; @endphp @endif
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')" min="1" max="{{@num_format($product->quantity_ordered)}}">
{{$product->unit}} @php $hide_tax = 'hide'; if($product->default_sell_price !== $product->product_sell_price) { $hide_tax = ''; } @endphp new @php $hide_tax = 'hide'; if(session()->get('business.enable_inline_tax') == 1){ $hide_tax = ''; } $tax_id = $product->tax_id; $unit_price_inc_tax = $product->product_sell_price; if($hide_tax == 'hide'){ $tax_id = null; $unit_price_inc_tax = $product->default_sell_price; } @endphp {!! Form::select("products[$key][tax_id]", $tax_dropdown['tax_rates'], $tax_id, ['placeholder' => 'Select', 'class' => 'form-control tax_id'], $tax_dropdown['attributes']); !!} @if(session('business.enable_lot_number')) {!! Form::text('products[' . $key . '][lot_number]', null, ['class' => 'form-control input-sm']); !!} @endif @if(session('business.enable_product_expiry'))
{!! Form::text('products[' . $key . '][exp_date]', null, ['class' => 'form-control input-sm expiry_datepicker', 'readonly']); !!}
@endif @endforeach @else {{$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
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')" >
{{$product->unit}} @php $hide_tax = 'hide'; if(session()->get('business.enable_inline_tax') == 1){ $hide_tax = ''; } $tax_id = $product->tax_id; $unit_price_inc_tax = $product->product_sell_price; 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']); !!} @if(session('business.enable_lot_number')) {!! Form::text('products[' . $row_count . '][lot_number]', null, ['class' => 'form-control input-sm']); !!} @endif @if(session('business.enable_product_expiry'))
{!! Form::text('products[' . $row_count . '][exp_date]', null, ['class' => 'form-control input-sm expiry_datepicker', 'readonly']); !!}
@endif @endif