@model Nop.Plugin.Misc.FruitBankPlugin.Models.Orders.OrderModelExtended @{ //page title ViewBag.PageTitle = T("Admin.Orders.EditOrderDetails").Text; //active menu item (system name) NopHtml.SetActiveMenuItemSystemName("Orders"); } @{ const string hideInfoBlockAttributeName = "OrderPage.HideInfoBlock"; var customer = await workContext.GetCurrentCustomerAsync(); var hideInfoBlock = await genericAttributeService.GetAttributeAsync(customer, hideInfoBlockAttributeName); const string hideBillingAndShippingBlockAttributeName = "OrderPage.HideBillingAndShippingBlock"; var hideBillingAndShippingBlock = await genericAttributeService.GetAttributeAsync(customer, hideBillingAndShippingBlockAttributeName); const string hideProductsBlockAttributeName = "OrderPage.HideProductsBlock"; var hideProductsBlock = await genericAttributeService.GetAttributeAsync(customer, hideProductsBlockAttributeName); const string hideNotesBlockAttributeName = "OrderPage.HideNotesBlock"; var hideNotesBlock = await genericAttributeService.GetAttributeAsync(customer, hideNotesBlockAttributeName); }

@T("Admin.Orders.EditOrderDetails") - @Model.CustomOrderNumber @T("Admin.Orders.BackToList")

@T("Admin.Orders.PdfInvoice") @if (!Model.IsLoggedInAsVendor) { @T("Admin.Common.Delete") } @await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.OrderDetailsButtons, additionalData = Model })
@await Component.InvokeAsync(typeof(AdminWidgetViewComponent), new { widgetZone = AdminWidgetZones.OrderDetailsBlock, additionalData = Model }) @await Html.PartialAsync("~/Areas/Admin/Views/Order/_OrderDetails.Info.cshtml", Model) @await Html.PartialAsync("~/Areas/Admin/Views/Order/_OrderDetails.BillingShipping.cshtml", Model) @await Html.PartialAsync("~/Plugins/Misc.FruitBankPlugin/Areas/Admin/Views/Order/_CustomOrderDetails.Products.cshtml", Model) @if (!Model.IsLoggedInAsVendor) { @await Html.PartialAsync("~/Areas/Admin/Views/Order/_OrderDetails.Notes.cshtml", Model) }