@foreach ($categories as $cat) @if($products->where('category_id', $cat->id)->count() == 0) @continue @endif

{{ $cat->name_eng }}

@foreach ($products->where('category_id', $cat->id) as $key => $product)

{{ $product->name_eng }}

Price: @if(in_array($product->id, $complementary_product_ids)) 0 ({{ __('obs.complementary') }}) @else @php if($product->partyPriceWithoutStore->count() > 0){ $product->sell_price = $product->partyPriceWithoutStore->first()->price; } else if ($product->salePriceWithoutStore){ $product->sell_price = $product->salePriceWithoutStore->sell_price; } if(qrCodeRestaurantVatType() == 2){ $product->sell_price = $product->sell_price + (calculate_tax($product->sell_price, $product->tax_percentage, 2)); } @endphp {{ round($product->sell_price - percentageToAmount($product->sell_price, $product->fixed_commission), 2) }} @if (floatVal($product->fixed_commission) > 0) {{ $product->sell_price }} @endif @endif

@endforeach @endforeach