@model CustomerOrderListModel @{ Layout = "_ColumnsTwo"; //title NopHtml.AddTitleParts(T("PageTitle.Account").Text); //page class NopHtml.AppendPageCssClassParts("html-account-page"); NopHtml.AppendPageCssClassParts("html-order-list-page"); } @section left { @await Component.InvokeAsync(typeof(CustomerNavigationViewComponent), new { selectedTabId = CustomerNavigationEnum.Orders }) }

@T("Account.MyAccount") - @T("Account.CustomerOrders")

@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerOrdersTop, additionalData = Model }) @if (Model.RecurringOrders.Count > 0) {
@T("Account.CustomerOrders.RecurringOrders")
@{ var canRetryRecurringOrders = Model.RecurringOrders.Any(recurring => recurring.CanRetryLastPayment); }
@if (canRetryRecurringOrders) { } @if (canRetryRecurringOrders) { } @foreach (var item in Model.RecurringOrders) { @if (canRetryRecurringOrders) { } }
@T("Account.CustomerOrders.RecurringOrders.StartDate") @T("Account.CustomerOrders.RecurringOrders.CycleInfo") @T("Account.CustomerOrders.RecurringOrders.NextPayment") @T("Account.CustomerOrders.RecurringOrders.TotalCycles") @T("Account.CustomerOrders.RecurringOrders.CyclesRemaining") @T("Account.CustomerOrders.RecurringOrders.InitialOrder") @T("Account.CustomerOrders.RecurringOrders.RetryLastPayment") @T("Account.CustomerOrders.RecurringOrders.Cancel")
@item.StartDate @item.CycleInfo @item.NextPayment @item.TotalCycles @item.CyclesRemaining @string.Format(T("Account.CustomerOrders.RecurringOrders.ViewInitialOrder").Text, item.InitialOrderNumber) @if (item.CanRetryLastPayment) { } @if (item.CanCancel) { }
if (Model.RecurringPaymentErrors.Any()) {
    @foreach (var error in Model.RecurringPaymentErrors) {
  • @error
  • }
} } @if (Model.Orders.Count > 0) {
@foreach (var order in Model.Orders) {
@T("Account.CustomerOrders.OrderNumber"): @order.CustomOrderNumber
  • @T("Account.CustomerOrders.OrderStatus"): @order.OrderStatus
  • @T("Account.CustomerOrders.OrderDate"): @order.CreatedOn.ToString()
  • @T("Account.CustomerOrders.OrderTotal"): @order.OrderTotal
@if (order.IsReturnRequestAllowed) { }
}
} else {
@T("Account.CustomerOrders.NoOrders")
} @await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerOrdersBottom, additionalData = Model })