@php
$amount = $order->get_amount();
$type = call_setting('settings.cart.view_amount');
switch ($type) {
case 'no_tax':
$subtotal = $amount->get_amount(true, true);
$total = $amount->get_amount_sale(true, true);
$sale = $amount->amount_format(($amount->get_amount(false, false) - $amount->get_amount_sale(false, false)), true);
break;
case 'include_tax':
$subtotal = $amount->get_amount_with_tax(true, true);
$total = $amount->get_amount_sale_with_tax(true, true);
$sale = $amount->amount_format(($amount->get_amount(false, false) - $amount->get_amount_sale(false, false)), true);
break;
}
@endphp
{{ __t('Subtotale') }}
{{ $subtotal }}
{{ __t('Sconto') }}
{{ '- ' . $sale }}
{{ __t('Totale') }}
{{ $total }}
{{ __t('Quantità totale') }}
{{ $order->get_quantity() }}