@T("Admin.Common.Search")
Try your search with a different keyword or use * as a wildcard.
@model CustomerReportsSearchModel
@using Nop.Services.Orders;
@{
//page title
ViewBag.PageTitle = T("Admin.Reports.Customers.BestBy.BestByNumberOfOrders").Text;
//active menu item (system name)
NopHtml.SetActiveMenuItemSystemName("Customers by number of orders");
}
@{
const string hideSearchBlockAttributeName = "CustomersBestByNumberOfOrdersPage.HideSearchBlock";
var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}
@T("Admin.Reports.Customers.BestBy.BestByNumberOfOrders")
@T("Admin.Common.Search")
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "best-customers-numberoforders-grid",
UrlRead = new DataUrl("ReportBestCustomersByNumberOfOrdersList", "Report", null),
SearchButtonId = "search-best-customers-numberoforders-grid",
Length = Model.BestCustomersByNumberOfOrders.PageSize,
LengthMenu = Model.BestCustomersByNumberOfOrders.AvailablePageSizes,
Filters = new List
{
new FilterParameter(nameof(Model.BestCustomersByNumberOfOrders.OrderBy), (int)OrderByEnum.OrderByQuantity),
new FilterParameter(nameof(Model.BestCustomersByNumberOfOrders.StartDate), nameof(CustomerReportsSearchModel.BestCustomersByNumberOfOrders)),
new FilterParameter(nameof(Model.BestCustomersByNumberOfOrders.EndDate), nameof(CustomerReportsSearchModel.BestCustomersByNumberOfOrders)),
new FilterParameter(nameof(Model.BestCustomersByNumberOfOrders.OrderStatusId), nameof(CustomerReportsSearchModel.BestCustomersByNumberOfOrders)),
new FilterParameter(nameof(Model.BestCustomersByNumberOfOrders.PaymentStatusId), nameof(CustomerReportsSearchModel.BestCustomersByNumberOfOrders)),
new FilterParameter(nameof(Model.BestCustomersByNumberOfOrders.ShippingStatusId), nameof(CustomerReportsSearchModel.BestCustomersByNumberOfOrders))
},
ColumnCollection = new List
{
new ColumnProperty(nameof(BestCustomersReportModel.CustomerName))
{
Title = T("Admin.Reports.Customers.BestBy.Fields.Customer").Text
},
new ColumnProperty(nameof(BestCustomersReportModel.OrderTotal))
{
Title = T("Admin.Reports.Customers.BestBy.Fields.OrderTotal").Text
},
new ColumnProperty(nameof(BestCustomersReportModel.OrderCount))
{
Title = T("Admin.Reports.Customers.BestBy.Fields.OrderCount").Text
},
new ColumnProperty(nameof(BestCustomersReportModel.CustomerId))
{
Title = T("Admin.Common.View").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonView(new DataUrl("~/Admin/Customer/Edit/"))
}
}
})