<commit_before>﻿@using System.Globalization
@using SFA.DAS.EAS.Web.Extensions

@model SFA.DAS.EAS.Web.OrchestratorResponse<SFA.DAS.EAS.Web.ViewModels.FinanceDashboardViewModel>

@{
    ViewBag.PageID = "page-transactions";
    ViewBag.Section = "finance";
    ViewBag.Title = "Finance";
    ViewBag.GaData.Vpv = "/accounts/finance";

    var culture = new CultureInfo("en-GB");
    var now = DateTime.UtcNow.ToGmtStandardTime();
}

<div class="grid-row">
    <div class="column-full">
        <h1 class="heading-xlarge">
            Finance
        </h1>
    </div>
</div>
<div class="grid-row">
    <div class="column-half">
        <div class="data-wrap">
            <div class="data">
                <dl class="transfer-funds">
                    <dt>
                        Current funds
                    </dt>
                    @{
                        var balance = Model.Data.CurrentLevyFunds.ToString("C0", culture);
                        var balanceClass = string.Empty;

                        if (balance.Length > 8)
                        {
                            balanceClass = "long";
                        }
                        if (balance.Length > 10)
                        {
                            balanceClass = "longer";
                        }
                    }
                    <dd class="@balanceClass">@balance</dd>
                </dl>
            </div>
        </div>
    </div>
</div>
<div class="grid-row">
    <div class="column-half">
        <h2 class="heading-medium">
            <a title="View transactions" href="@Url.Action("TransactionsView", "EmployerAccountTransactions", new { hashedAccountId = Model.Data.Account.HashedId, year = now.Year, month = now.Month })">
                View transactions
            </a>
        </h2>
        <p>View payments made into and out of your apprenticeship service account. </p>
    </div>
    @if (Html.IsFeatureEnabled("EmployerAccountTransactions", "TransactionsDownload"))
    {
        <div class="column-half">
            <h2 class="heading-medium">
                <a title="Download transactions" href="@Url.Action("TransactionsDownload", "EmployerAccountTransactions", new { hashedAccountId = Model.Data.Account.HashedId })">
                    Download transactions
                </a>
            </h2>
            <p>Download your financial transactions within a specific date range. </p>
        </div>
    }
    @if (Html.IsFeatureEnabled("EmployerProjections", "Index"))
    {
        <div class="column-half">
            <h2 class="heading-medium">
                <a title="Funding projection" href="@Url.EmployerProjectionsAction("forecasting")">
                    Funding projection
                </a>
            </h2>
            <p>View funding projection to plan your future spending. </p>
        </div>
    }
    @if (Html.IsFeatureEnabled("Transfers", "Index"))
    {
        <div class="column-half">
            <h2 class="heading-medium">
                <a title="Manage transfers" href="@Url.Action("Index", "Transfers")">
                    Manage transfers
                </a>
            </h2>
            <p>Connect with other employers and send or receive transfer funds. </p>
        </div>
    }
</div>

@section breadcrumb {
    <div class="breadcrumbs">
        <ol role="navigation">
            <li><a href="@Url.Action("Index", "EmployerTeam", new {HashedAccountId = Model.Data.Account.HashedId})">Home</a></li>
            <li>@ViewBag.Title</li>
        </ol>
    </div>
}

@section pageSpecificJS {
    <script language="javascript" type="text/javascript" src="~/bundles/modernizr"></script>
}<commit_msg>fixed url to funding projections page<commit_after>﻿@using System.Globalization
@using SFA.DAS.EAS.Web.Extensions

@model SFA.DAS.EAS.Web.OrchestratorResponse<SFA.DAS.EAS.Web.ViewModels.FinanceDashboardViewModel>

@{
    ViewBag.PageID = "page-transactions";
    ViewBag.Section = "finance";
    ViewBag.Title = "Finance";
    ViewBag.GaData.Vpv = "/accounts/finance";

    var culture = new CultureInfo("en-GB");
    var now = DateTime.UtcNow.ToGmtStandardTime();
}

<div class="grid-row">
    <div class="column-full">
        <h1 class="heading-xlarge">
            Finance
        </h1>
    </div>
</div>
<div class="grid-row">
    <div class="column-half">
        <div class="data-wrap">
            <div class="data">
                <dl class="transfer-funds">
                    <dt>
                        Current funds
                    </dt>
                    @{
                        var balance = Model.Data.CurrentLevyFunds.ToString("C0", culture);
                        var balanceClass = string.Empty;

                        if (balance.Length > 8)
                        {
                            balanceClass = "long";
                        }
                        if (balance.Length > 10)
                        {
                            balanceClass = "longer";
                        }
                    }
                    <dd class="@balanceClass">@balance</dd>
                </dl>
            </div>
        </div>
    </div>
</div>
<div class="grid-row">
    <div class="column-half">
        <h2 class="heading-medium">
            <a title="View transactions" href="@Url.Action("TransactionsView", "EmployerAccountTransactions", new { hashedAccountId = Model.Data.Account.HashedId, year = now.Year, month = now.Month })">
                View transactions
            </a>
        </h2>
        <p>View payments made into and out of your apprenticeship service account. </p>
    </div>
    @if (Html.IsFeatureEnabled("EmployerAccountTransactions", "TransactionsDownload"))
    {
        <div class="column-half">
            <h2 class="heading-medium">
                <a title="Download transactions" href="@Url.Action("TransactionsDownload", "EmployerAccountTransactions", new { hashedAccountId = Model.Data.Account.HashedId })">
                    Download transactions
                </a>
            </h2>
            <p>Download your financial transactions within a specific date range. </p>
        </div>
    }
    @if (Html.IsFeatureEnabled("EmployerProjections", "Index"))
    {
        <div class="column-half">
            <h2 class="heading-medium">
                <a title="Funding projection" href="@Url.EmployerProjectionsAction("forecasting/projections")">
                    Funding projection
                </a>
            </h2>
            <p>View funding projection to plan your future spending. </p>
        </div>
    }
    @if (Html.IsFeatureEnabled("Transfers", "Index"))
    {
        <div class="column-half">
            <h2 class="heading-medium">
                <a title="Manage transfers" href="@Url.Action("Index", "Transfers")">
                    Manage transfers
                </a>
            </h2>
            <p>Connect with other employers and send or receive transfer funds. </p>
        </div>
    }
</div>

@section breadcrumb {
    <div class="breadcrumbs">
        <ol role="navigation">
            <li><a href="@Url.Action("Index", "EmployerTeam", new {HashedAccountId = Model.Data.Account.HashedId})">Home</a></li>
            <li>@ViewBag.Title</li>
        </ol>
    </div>
}

@section pageSpecificJS {
    <script language="javascript" type="text/javascript" src="~/bundles/modernizr"></script>
}
{'fraction_non_alphanumeric': 0.1358108108108108, 'fraction_numerical': 0.0037837837837837837, 'mean_word_length': 1.7441601779755285, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 141, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3750802', 'n_tokens_mistral': 2130, 'n_tokens_neox': 2023, 'n_words': 423}