@model PopularSearchTermSearchModel @using Nop.Core @inject Nop.Services.Common.IGenericAttributeService genericAttributeService @inject IWorkContext workContext @{ const string cardId = "popular-search-terms-card"; const string hideCardAttributeName = "Reports.HidePopularSearchTermsReport"; var hideCard = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideCardAttributeName); }

@T("Admin.SearchTermReport")

@await Html.PartialAsync("Table", new DataTablesModel { Name = "search-term-report-grid", UrlRead = new DataUrl("PopularSearchTermsReport", "Common", null), Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Dom = "<'row'<'col-md-12't>>" + "<'row margin-t-5'" + "<'col-lg-10 col-xs-12'<'float-lg-left'p>>" + "<'col-lg-2 col-xs-12'<'float-lg-right text-center'i>>" + ">", ColumnCollection = new List { new ColumnProperty(nameof(PopularSearchTermModel.Keyword)) { Title = T("Admin.SearchTermReport.Keyword").Text }, new ColumnProperty(nameof(PopularSearchTermModel.Count)) { Title = T("Admin.SearchTermReport.Count").Text } } })