@using Microsoft.AspNetCore.Mvc.Localization @using gehGassi.Core.Services @using gehGassi.Web.Models @using System.Globalization @using gehGassi.Web.Helper @using Microsoft.Extensions.Localization @model gehGassi.Web.Models.OrderVm @inject IViewLocalizer Localizer @inject ICountryService countryService @{ IStringLocalizer annotationsLocalizer = ViewBag.AnnotationsLocalizer; OrderAddressVm deliveryAddress = Model.BillingAddress; if (Model.DeliveryAddressIsBilling) { deliveryAddress = Model.DeliveryAddress; } } gehgassi @Localizer["Mail_Order"]

@Localizer["Mail_Order"]: @Model.Number | @Model.Created.ToString()

@Localizer["Mail_DeliveryAddress"]

@Localizer["Mail_BillingAddress"]

@if (!string.IsNullOrWhiteSpace(deliveryAddress.Company)) {
@deliveryAddress.Company
@deliveryAddress.FirstName @deliveryAddress.LastName
} else {
@deliveryAddress.FirstName @deliveryAddress.LastName
}
@deliveryAddress.AddressLine1
@if (!string.IsNullOrWhiteSpace(deliveryAddress.AddressLine2)) {
@deliveryAddress.AddressLine2
}
@deliveryAddress.Zip @deliveryAddress.City
@countryService.GetCountry(deliveryAddress.CountryCode).Name
@if (!string.IsNullOrWhiteSpace(Model.BillingAddress.Company)) {
@Model.BillingAddress.Company
@Model.BillingAddress.FirstName @Model.BillingAddress.LastName
} else {
@Model.BillingAddress.FirstName @Model.BillingAddress.LastName
}
@Model.BillingAddress.AddressLine1
@if (!string.IsNullOrWhiteSpace(Model.BillingAddress.AddressLine2)) {
@Model.BillingAddress.AddressLine2
}
@Model.BillingAddress.Zip @Model.BillingAddress.City
@countryService.GetCountry(Model.BillingAddress.CountryCode).Name
@annotationsLocalizer["Order_PaymentType"]: @Model.PaymentType.GetDisplayName(annotationsLocalizer) @annotationsLocalizer["Order_PaymentStatus"]: @Model.PaymentStatus.GetDisplayName(annotationsLocalizer)
@foreach (var item in Model.Items) { } @foreach (var tax in Model.TaxRates) { }
@Localizer["Mail_Item_Number"] @Localizer["Mail_Item_Name"] @Localizer["Mail_Quantity"] @Localizer["Mail_SinglePrice"] € @Localizer["Mail_TotalPrice"] €
@item.Sku @item.Name @item.Quantity @item.PriceGross.ToString("n2") @item.TotalGross.ToString("n2")

@Localizer["Mail_Subtotal"] € @Model.SubtotalGross.ToString("n2")
@Localizer["Mail_ShipmentPrice"] € @Model.ShipmentGross.ToString("n2")

@Localizer["Mail_TotalSum"] € @((Model.TotalGross).ToString("n2"))
@Localizer["Mail_Tax"] @tax.Key% € @tax.Value.ToString("n2")