@php /** * @name Pagina ordine\Messaggio conferma ordine * @version 1.0.0 */ @endphp

{{ __t('Grazie per aver effettuato l\'ordine') }}

@php $current_language = LaravelLocalization::getCurrentLocale(); $amount = $order->get_amount(); $type = call_setting('settings.cart.view_amount'); switch ($type) { case 'no_tax': $total = $amount->get_amount_sale(true, true); break; case 'include_tax': $total = $amount->get_amount_sale_with_tax(true, true); break; } $order_mode = $order->get_mode(); @endphp @if($order_mode == 'standard') @if ($order->get_gateway() == 'confirm' || empty($order->get_gateway())) @if(is_customer())

{{ __t('Il tuo metodo di pagamento è ') . $order->get_payment_name() }}

@endif @if(is_agent())

{{ __t('Il metodo di pagamento scelto per il cliente è ') . $order->get_payment_name() }}

@endif @else @switch($order->get_gateway()) @case('bacs') @php $payment_bacs = $payments->get_payment('bacs'); @endphp

{{ __t('Hai scelto di pagare tramite Bonifico.') }} {{ __t('Ti elenchiamo di seguito gli estremi di pagamento:') }}

{{ __t('IBAN:') }} {{ $payment_bacs->get_iban() }}

@if(!empty($payment_bacs->get_bank()))

{{ __t('Banca:') }} {{ $payment_bacs->get_bank() }}

@endif @if(!empty($payment_bacs->get_recipient()))

{{ __t('Intestatario:') }} {{ $payment_bacs->get_recipient() }}

@endif

{{ __t('Causale:') }} {{ __t('Nella causale inserisci il numero :NUMBER', ['NUMBER' => $order->get_sku()]) }}

{{ __t('Totale:') }} {{ $total }}

@break @case('paypal')

{{ __t('Il tuo pagamento tramite PayPal è andato a buon fine.') }}

@break @case('stripe')

{{ __t('Il tuo pagamento tramite Stripe è andato a buon fine.') }}

@break @endswitch @endif @else @php $exchange = get_exchange(); $message_confirm = ''; if($order_mode == 'change' || $order_mode == 'restock'){ $message_confirm = $exchange->get_confirm_text('change', $current_language, true); } if($order_mode == 'return'){ $message_confirm = $exchange->get_confirm_text('return', $current_language, true); } @endphp

{!! $message_confirm !!}

@endif @do_action( "order_received_message", $order, $payments)