@foreach (var node in Nodes) {
@if (!string.IsNullOrWhiteSpace(node.Avatar)) { } else { @(string.IsNullOrWhiteSpace(node.FirstName) ? "N" : node.FirstName.Substring(0, 1)) } @if (node.Children?.Any() == true) { }
@if (!string.IsNullOrWhiteSpace(node.FirstName) || !string.IsNullOrWhiteSpace(node.LastName)) {
@node.FirstName @node.LastName
} else {
@node.Mobile
} @if (!string.IsNullOrWhiteSpace(node.ReferralCode)) {
@node.ReferralCode
} @*
خرید شخصی: @(node.PersonalPurchase?.ToThousands().ToCurrencyUnitIRT() ?? "0 تومان")
خرید تیمی: @(node.TeamPurchase?.ToThousands().ToCurrencyUnitIRT() ?? "0 تومان")
*@
@if (node.IsExpanded && node.Children?.Any() == true) { }
}