@php
$even = false;
if ($row_count % 2 == 0) {
$even = true;
}
@endphp
|
@php
$product_name = $product->product_name ;
if(!empty($product->brand)){ $product_name .= ' ' . $product->brand ;}
@endphp
@php
$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;
}
@endphp
{!! $product_name !!}
@if(isset($modifiers) && $modifiers->isNotEmpty())
@foreach($modifiers as $modifier)
{{ $modifier->name }} ({{ @num_format($modifier->sell_price_inc_tax) }} X
{{ @num_format($quantity) }})
@endforeach
@endif
|
@if(isset($quantityNew) && $quantityNew > 0)
{{ @format_quantity($quantityNew) }}
@elseif(isset($extended_price) && $extended_price != 0)
{{ @num_format($extended_price / $unit_price_inc_tax) }}
@elseif(isset($product->quantity_ordered))
{{ @format_quantity($product->quantity_ordered) }}
@else
1
@endif
|
@php
$subtotal_type = !empty($pos_settings['is_pos_subtotal_editable']) ? 'text' : 'hidden';
@endphp
@if(isset($total_price) && $total_price > 0)
{{ $total_price }}
@else
@if(isset($extended_price) && $extended_price != 0 ) {{@num_format($extended_price )}}
@else {{@num_format($product->quantity_ordered*$unit_price_inc_tax )}}
@endif
@endif
|