@model CheckGiftCardBalanceModel @using Nop.Core @using Nop.Services.Customers @inject IWorkContext workContext @inject ICustomerService customerService @{ var isRegisterCustomer = await customerService.IsRegisteredAsync(await workContext.GetCurrentCustomerAsync()); Layout = isRegisterCustomer ? "_ColumnsTwo" : "_ColumnsOne"; //title NopHtml.AddTitleParts(T("PageTitle.CheckGiftCardBalance").Text); //page class NopHtml.AppendPageCssClassParts("html-account-page"); } @if (isRegisterCustomer) { @section left { @await Component.InvokeAsync(typeof(CustomerNavigationViewComponent), new { selectedTabId = CustomerNavigationEnum.CheckGiftCardBalance }) } }
@if (isRegisterCustomer) {

@T("Account.MyAccount") - @T("PageTitle.CheckGiftCardBalance")

} else {

@T("PageTitle.CheckGiftCardBalance")

}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerCheckGiftCardBalanceTop, additionalData = Model }) @if (!string.IsNullOrEmpty(Model.Message)) {
@Model.Message
} @if (!string.IsNullOrEmpty(Model.Result)) {
@string.Format(T("ShoppingCart.Totals.GiftCardInfo.Remaining").Text, @Model.Result)
}
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.CustomerCheckGiftCardBalanceBottom, additionalData = Model })