@using Nop.Plugin.Misc.AuctionPlugin.Domains.Enums @using Nop.Web.Framework.TagHelpers.Shared @model ProductBidBoxViewModel @* @inject IJsonHelper JsonHelper; *@ @* @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(myObj) as String) *@ @{ if (!Model.IsGuest) { if (Model.FirstProductToAuction != null) { var bgClass = Model.FirstProductToAuction.WinnerCustomerId == Model.CustomerId ? "bg-success" : "bg-primary"; var bidButtonActive = Model.IsItemActive && (Model.FirstProductToAuction.WinnerCustomerId != Model.CustomerId || Model.IsAdmin); var auctionStatus = Model.FirstProductToAuction.AuctionStatus; var lastBidIsMine = Model.FirstProductToAuction.WinnerCustomerId == Model.CustomerId; var title = auctionStatus switch { AuctionStatus.Sold => lastBidIsMine ? @T("Plugins.Misc.AuctionPlugin.YouWin") : @T("Plugins.Misc.AuctionPlugin.Sold"), AuctionStatus.NotSold => @T("Plugins.Misc.AuctionPlugin.Finished"), _ => lastBidIsMine ? @T("Plugins.Misc.AuctionPlugin.YourBidLeading") : @T("Plugins.Misc.AuctionPlugin.PlaceABid") };
@(string.IsNullOrEmpty(Model.LastProductName) ? "---" : Model.LastProductName)
@(string.IsNullOrEmpty(Model.NextProductName) ? "---" : Model.NextProductName)
No access to admin level buttons
} } } else {@T("Plugins.Misc.AuctionPlugin.PleaseLogInOrRegister")