LocalGovIMS_localgov-ims/src/Admin/Views/Fund/Details.cshtml
@model Admin.Models.Fund.DetailsViewModel
@{
    ViewBag.Title = "Fund";
}

@section Header { @( string.IsNullOrEmpty(Model.DisplayName) ? "Fund " + Model.FundCode : Model.DisplayName ) }

@section Subheader { Fund details }

@section Actions {
    @Html.ActionLink("Edit", "Edit", new { id = Model.FundCode }, new { @class = "btn btn-secondary" })
}

<div>

    @Html.HiddenFor(m => m.FundCode)

    <div class="mb-3">
        @Html.LabelFor(m => m.FundCode, new { @class = "form-label fw-bold" })
        <div class="form-label">
            @Html.DisplayFor(m => m.FundCode)
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.FundName, new { @class = "form-label fw-bold" })
        <div class="form-label">
            @Html.DisplayFor(m => m.FundName)
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.DisplayName, new { @class = "form-label fw-bold" })
        <div class="form-label">
            @Html.DisplayFor(m => m.DisplayName)
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.AccountReferenceValidatorName, new { @class = "form-label fw-bold" })
        <div class="form-label">
            @Html.DisplayFor(m => m.AccountReferenceValidatorName)
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.VatCode, new { @class = "form-label fw-bold" })
        <div class="form-label">
            @Html.DisplayFor(m => m.VatCode)
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.MaximumAmount, new { @class = "form-label fw-bold" })
        <div class="form-label">
            @Html.DisplayFor(m => m.MaximumAmount)
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.OverPayAccount, new { @class = "form-label fw-bold" })
        <div class="form-label">
            <div class="form-check form-switch">
                @Html.CheckBoxFor(m => m.OverPayAccount, new { @class = "form-check-input", role = "switch", @disabled = true })
            </div>
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.AccountExist, new { @class = "form-label fw-bold" })
        <div class="form-label">
            <div class="form-check form-switch">
                @Html.CheckBoxFor(m => m.AccountExist, new { @class = "form-check-input", role = "switch", @disabled = true })
            </div>
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.AquireAddress, new { @class = "form-label fw-bold" })
        <div class="form-label">
            <div class="form-check form-switch">
                @Html.CheckBoxFor(m => m.AquireAddress, new { @class = "form-check-input", role = "switch", @disabled = true })
            </div>
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.VatOverride, new { @class = "form-label fw-bold" })
        <div class="form-label">
            <div class="form-check form-switch">
                @Html.CheckBoxFor(m => m.VatOverride, new { @class = "form-check-input", role = "switch", @disabled = true })
            </div>
        </div>
    </div>

    <div class="mb-3">
        @Html.LabelFor(m => m.IsDisabled, new { @class = "form-label fw-bold" })
        <div class="form-label">
            <div class="form-check form-switch">
                @Html.CheckBoxFor(m => m.IsDisabled, new { @class = "form-check-input", role = "switch", @disabled = true })
            </div>
        </div>
    </div>

    <div class="d-flex flex-wrap mb-3">
        <div class="me-auto p-0">
            <h3>
                Metadata
            </h3>
        </div>
    </div>

    <div class="mb-3">
        @Html.Action("_ListForFund", "FundMetadata", new { fundCode = Model.FundCode })
    </div>

    @Html.ActionLink("Back", "Back", "Fund", null, new { @class = "btn btn-secondary" })

</div>
