136 lines
6.7 KiB
Plaintext
136 lines
6.7 KiB
Plaintext
@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<bool>(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
|
|
}
|
|
|
|
<div class="content-header clearfix">
|
|
<h1 class="float-left">
|
|
@T("Admin.Reports.Sales.Country")
|
|
</h1>
|
|
<div class="float-right">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<section class="content">
|
|
<div class="container-fluid">
|
|
<div class="form-horizontal">
|
|
<div class="cards-group">
|
|
<div class="card card-default card-search">
|
|
<div class="card-body">
|
|
<div class="row search-row @(!hideSearchBlock ? "opened" : "")" data-hideAttribute="@hideSearchBlockAttributeName">
|
|
<div class="search-text">@T("Admin.Common.Search")</div>
|
|
<div class="icon-search"><i class="fas fa-magnifying-glass" aria-hidden="true"></i></div>
|
|
<div class="icon-collapse"><i class="far fa-angle-@(!hideSearchBlock ? "up" : "down")" aria-hidden="true"></i></div>
|
|
</div>
|
|
|
|
<div class="search-body @(hideSearchBlock ? "closed" : "")">
|
|
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
<div class="form-group row">
|
|
<div class="col-md-4">
|
|
<nop-label asp-for="StartDate" />
|
|
</div>
|
|
<div class="col-md-8">
|
|
<nop-editor asp-for="StartDate" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-4">
|
|
<nop-label asp-for="EndDate" />
|
|
</div>
|
|
<div class="col-md-8">
|
|
<nop-editor asp-for="EndDate" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-7">
|
|
<div class="form-group row">
|
|
<div class="col-md-4">
|
|
<nop-label asp-for="OrderStatusId" />
|
|
</div>
|
|
<div class="col-md-8">
|
|
<nop-select asp-for="OrderStatusId" asp-items="Model.AvailableOrderStatuses" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-4">
|
|
<nop-label asp-for="PaymentStatusId" />
|
|
</div>
|
|
<div class="col-md-8">
|
|
<nop-select asp-for="PaymentStatusId" asp-items="Model.AvailablePaymentStatuses" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row" @(Model.AvailableStores.SelectionIsNotPossible() ? Html.Raw("style=\"display:none\"") : null)>
|
|
<div class="col-md-4">
|
|
<nop-label asp-for="SearchStoreId" />
|
|
</div>
|
|
<div class="col-md-8">
|
|
<nop-select asp-for="SearchStoreId" asp-items="Model.AvailableStores" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="text-center col-12">
|
|
<button type="button" id="search-countryreport" class="btn btn-primary btn-search">
|
|
<i class="fas fa-chart-line"></i>
|
|
@T("Admin.Reports.Sales.Country.RunReport")
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card card-default">
|
|
<div class="card-body">
|
|
<nop-doc-reference asp-string-resource="@T("Admin.Documentation.Reference.Reports", Docs.Reports + Utm.OnAdmin)" />
|
|
|
|
@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<FilterParameter>
|
|
{
|
|
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<ColumnProperty>
|
|
{
|
|
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
|
|
}
|
|
}
|
|
})
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section> |