@model BackInStockSubscribeModel

@if (Model.AlreadySubscribed) { @T("BackInStockSubscriptions.AlreadySubscribed") } else { @T("BackInStockSubscriptions.PopupTitle") }

@if (!Model.SubscriptionAllowed) {
@T("BackInStockSubscriptions.NotAllowed")
} else if (!Model.IsCurrentCustomerRegistered) {
@T("BackInStockSubscriptions.OnlyRegistered")
} else if (!Model.AlreadySubscribed && Model.CurrentNumberOfBackInStockSubscriptions >= Model.MaximumBackInStockSubscriptions) {
@string.Format(T("BackInStockSubscriptions.MaxSubscriptions").Text, Model.MaximumBackInStockSubscriptions)
} else { if (!Model.AlreadySubscribed) {
@T("BackInStockSubscriptions.Tooltip")
} }