@if ($carts != null && isset($carts[0])) @php $sum_prices = 0; @endphp @forelse ($carts as $key => $product) {{ $product->product->getTranslation('title') }} {{ single_price($product->price) }} {{ currency_sympol()['symbol'] }} @if ($product->product->advanced_product == 'digital_cards') {{ $product->quantity }} @php $sum_prices += single_price($product->price * $product->quantity); @endphp {{ single_price($product->price * $product->quantity) }} {{ currency_sympol()['symbol'] }} @else --- @php $sum_prices += single_price($product->price); @endphp {{ single_price($product->price) }} {{ currency_sympol()['symbol'] }} @endif @empty @endforelse {{ translate('Price') }} {{ single_price($sum_prices) }} {{ currency_sympol()['symbol'] }} {{ translate('Coupon discount') }} {{ single_price($carts->sum('coupon_discount')) }} {{ currency_sympol()['symbol'] }} {{ translate('Tax') }} {{ single_price($carts->sum('tax')) }} {{ currency_sympol()['symbol'] }} {{ translate('Wallet discount') }} {{ single_price($carts->sum('wallet_discount')) }} {{ currency_sympol()['symbol'] }} {{ translate('Total') }} {{ single_price($sum_prices - $carts->sum('coupon_discount') - $carts->sum('wallet_discount') + $carts->sum('tax')) }} {{ currency_sympol()['symbol'] }} @endif