@using Bit.Admin.Enums; @using Bit.Core @using Bit.Core.AdminConsole.Enums.Provider @using Bit.Core.Billing.Enums @using Bit.Core.Billing.Extensions @using Microsoft.AspNetCore.Mvc.TagHelpers @inject Bit.Admin.Services.IAccessControlService AccessControlService @inject Bit.Core.Services.IFeatureService FeatureService @model ProviderEditModel @{ ViewData["Title"] = "Provider: " + Model.Provider.DisplayName(); var canEdit = AccessControlService.UserHasPermission(Permission.Provider_Edit); }

Provider @Model.Provider.DisplayName()

Provider Information

@await Html.PartialAsync("_ViewInformation", Model) @await Html.PartialAsync("Admins", Model)

General

Name
@Model.Provider.DisplayName()

Business Information

Business Name
@Model.Provider.DisplayBusinessName()

Billing

@if (Model.Provider.IsBillable()) { switch (Model.Provider.Type) { case ProviderType.Msp: {
break; } case ProviderType.MultiOrganizationEnterprise: { @if (FeatureService.IsEnabled(FeatureFlagKeys.PM12275_MultiOrganizationEnterprises) && Model.Provider.Type == ProviderType.MultiOrganizationEnterprise) {
@{ var multiOrgPlans = new List { PlanType.EnterpriseAnnually, PlanType.EnterpriseMonthly }; }
} break; } }
}
@await Html.PartialAsync("Organizations", Model) @if (canEdit) {
}