{{ _i("ADA - Riepilogo ordine") }} #{{ $order->id }}

{{ _i("In data") }} {{$order->acquired_at->format("d/m/Y")}} {{_i("hai acquistato")}}:
@foreach($order->products()->orderBy("categoryName")->get() as $product) {{ $product->name }} x {{$product->quantity}}: {{App\Helpers\Tdb\Utilities::formatPriceByLocalCurrency($product->quantity * $product->price,$order->localCurrency,$order->currencyPosition)}}
@endforeach
{{_i("Modalità di pagamento")}} : @if($order->paymentMethod=="bankaccount"){{_i("Bonifico bancario")}}@elseif($order->paymentMethod=="paypal") {{_i("PayPal") }} @else {{_i("Invia link") }}@endif

{{_i("Importi")}}
{{_i("Totale")}}: {{App\Helpers\Tdb\Utilities::formatPriceByLocalCurrency($order->totalPrice,$order->localCurrency,$order->currencyPosition)}}
{{_i("Iva")}}: {{number_format($order->iva,0)}}%
{{_i("Totale con IVA")}}: {{App\Helpers\Tdb\Utilities::formatPriceByLocalCurrency($order->totalPrice + ($order->totalPrice/100*$order->iva),$order->localCurrency,$order->currencyPosition)}}

{{_i("Dati acquirente")}}
{{_i("Ragione sociale")}}: {{ $userPersonalData->companyName }}
{{_i("Partita IVA")}}: {{ $userPersonalData->vat }}
{{_i("Codice fiscale")}}: {{ $userPersonalData->taxCode }}
{{_i("Nome e Cognome")}}: {{ $userPersonalData->name}} - {{$userPersonalData->surname}}
{{_i("Email")}}: {{ $userPersonalData->email}}
{{_i("Indirizzo")}}: {{ $userPersonalData->address }}
{{_i("Città")}}: {{ $userPersonalData->city }}
{{_i("CAP")}}: {{ $userPersonalData->postalCode }}

{{_i("Dati Partner")}}
{{_i("Ragione sociale")}}: {{ $higherPersonalData->companyName }}
{{_i("Partita IVA")}}: {{ $higherPersonalData->vat }}
{{_i("Codice fiscale")}}: {{ $higherPersonalData->taxCode }}
{{_i("Indirizzo")}}: {{ $higherPersonalData->address }}
{{_i("Città")}}: {{ $higherPersonalData->city }}
{{_i("CAP")}}: {{ $higherPersonalData->postalCode }}
@if($order->paymentMethod=="bankaccount")
{{_i("Ti ricordiamo che il bonifico dovrà essere effettuato entro 48h dall'ordine a")}}:
{{ $bankAccount['businessName'] }}
{{ _i("IBAN") }}: {{ $bankAccount['iban'] }}
{{ _i("Banca") }}: {{ $bankAccount['bankName'] }}
{{ _i("Sede") }}: {{ $bankAccount['bankAgency'] }}
{{ _i("BIC") }}: {{ $bankAccount['bic'] }}
{{-- {{ $bankAccount['businessCap'] }} - {{ $bankAccount['businessCity'] }}
{{ $bankAccount['businessStreet'] }}
--}} @endif @if($order->paymentMethod=="userLink")
{{_i("Questo è il link da inviare al cliente per effettuare il pagamento")}}:
{{ $userLinkUrl}}/eCommerceLandingPage.php?f=showOrder&p={{laravel_compatible_encrypt($order->id.",".$order->idPersonalData.",".$order->userPersonalData)}}
@endif
{{ _i("Saluti") }},
{{ $senderName }}