@model EzeScanWebApps.Models.LicenseDataModel
@{
    ViewBag.Title = "License Status";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<p><strong>Server HostName:</strong> @(LicenseLibrary.Models.LicenseModel.GetHostname())</p>

<p><strong>License Status:</strong> @(Model.Result.IsValid ? "License Valid" : "License Invalid")</p>

<p><strong>License Type:</strong> @(Model.License.LicenseType)</p>

@if (Model.License.LicensedModules.Count > 0)
 {
    <p>
        <strong>Licensed Modules:</strong>
        <ul>
            @foreach (LicenseLibrary.Module module in Model.License.LicensedModules)
            {
                <li>
                    @module.Name (@module.Instances)
                    <span class="label @(module.Enabled ? "label-success" : "label-default")">@(module.Enabled ? "Enabled" : "Disabled")</span>

                </li>

            }
        </ul>

    </p>
 }
 
<p>@Model.Result.ErrorMessage</p>

<p>@Model.Result.LicenseStatusMessage</p>




