@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.BestByOrderTotal").Text;
//active menu item (system name)
NopHtml.SetActiveMenuItemSystemName("Customers by order total");
}
@{
const string hideSearchBlockAttributeName = "CustomersBestByOrderTotalPage.HideSearchBlock";
var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}
@T("Admin.Reports.Customers.BestBy.BestByOrderTotal")
@T("Admin.Common.Search")
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "customers-ordertotal-grid",
UrlRead = new DataUrl("ReportBestCustomersByOrderTotalList", "Report", null),
SearchButtonId = "search-best-customers-ordertotal",
Length = Model.BestCustomersByOrderTotal.PageSize,
LengthMenu = Model.BestCustomersByOrderTotal.AvailablePageSizes,
Filters = new List
{
new FilterParameter(nameof(Model.BestCustomersByOrderTotal.OrderBy), (int)OrderByEnum.OrderByTotalAmount),
new FilterParameter(nameof(Model.BestCustomersByOrderTotal.StartDate), nameof(CustomerReportsSearchModel.BestCustomersByOrderTotal)),
new FilterParameter(nameof(Model.BestCustomersByOrderTotal.EndDate), nameof(CustomerReportsSearchModel.BestCustomersByOrderTotal)),
new FilterParameter(nameof(Model.BestCustomersByOrderTotal.OrderStatusId), nameof(CustomerReportsSearchModel.BestCustomersByOrderTotal)),
new FilterParameter(nameof(Model.BestCustomersByOrderTotal.PaymentStatusId), nameof(CustomerReportsSearchModel.BestCustomersByOrderTotal)),
new FilterParameter(nameof(Model.BestCustomersByOrderTotal.ShippingStatusId), nameof(CustomerReportsSearchModel.BestCustomersByOrderTotal))
},
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/"))
}
}
})