Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

CountrySales.cshtml

@model CountryReportSearchModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Reports.Sales.Country").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Country sales");
}

@{
    const string hideSearchBlockAttributeName = "CountrySalesPage.HideSearchBlock";
    var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}

@T("Admin.Reports.Sales.Country")

 
@await Html.PartialAsync("Table", new DataTablesModel { Name = "countryreport-grid", UrlRead = new DataUrl("CountrySalesList", "Report", null), SearchButtonId = "search-countryreport", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.StartDate), typeof(DateTime?)), new FilterParameter(nameof(Model.EndDate), typeof(DateTime?)), new FilterParameter(nameof(Model.OrderStatusId)), new FilterParameter(nameof(Model.PaymentStatusId)), new FilterParameter(nameof(Model.SearchStoreId)), }, ColumnCollection = new List { new ColumnProperty(nameof(CountryReportModel.CountryName)) { Title = T("Admin.Reports.Sales.Country.Fields.CountryName").Text }, new ColumnProperty(nameof(CountryReportModel.TotalOrders)) { Title = T("Admin.Reports.Sales.Country.Fields.TotalOrders").Text }, new ColumnProperty(nameof(CountryReportModel.SumOrders)) { Title = T("Admin.Reports.Sales.Country.Fields.SumOrders").Text } } })