<commit_before>﻿@using SFA.DAS.Authorization
@using SFA.DAS.Authorization.Mvc
@using SFA.DAS.EmployerAccounts.Web.Extensions
@using SFA.DAS.EmployerAccounts.Web.Helpers
@using SFA.DAS.Tasks.API.Types.Enums

@model SFA.DAS.EmployerAccounts.Web.OrchestratorResponse<SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel>

@{
    ViewBag.Title = "Home";
    ViewBag.Section = "home";
    ViewBag.PageID = "page-company-homepage";
    ViewBag.GaData.Vpv = "/accounts/agreements/page-company-homepage";

    if (!string.IsNullOrEmpty(Model.Data.EmployerAccountType))
    {
        ViewBag.PageID = $"page-employer-account-created-{Model.Data.EmployerAccountType}";
    }
}

@if (Model.Data.ShowWizard)
{
    @Html.Partial("_WelcomeWizard")
}
else
{

    <h1 class="heading-secondary dashboard-heading">
        Your employer account 
    </h1>
    <p class="heading-xlarge dashboard-heading-company">@Model.Data.Account.Name</p>

    <a href="@Url.FavouritesAction()" class="das-favourites-link govuk-body">
        <span class="das-favourites-link__icon">
        <svg class="icon" focusable="false" aria-hidden="true">
            <use xlink:href="#icon-favourite" />
        </svg></span>
        <span class="das-favourites-link__text">View saved favourites</span>
    </a>

    <hr class="dashboard-heading-separator" />

    <div class="grid-row">
        <div class="column-two-thirds">
            <section class="dashboard-section">
                <div class="grid-row">
                    <div class="column-two-thirds">
                        <h2 class="section-heading heading-large">Apprenticeships</h2>
                        <p class="section-description">Manage your apprentices, recruit apprentice and set training provider permissions</p>
                    </div>
                </div>
                <div class="cards">
                    <div class="card">
                        <h3 class="heading-medium"><a href="@Url.EmployerCommitmentsAction("apprentices/home")">Apprentices</a></h3>
                        <p>Add apprentices, update details of existing apprentices and authorise payments to training providers.</p>
                    </div>
                    @if (Html.IsAuthorized(FeatureType.Recruitments))
                    {
                        <div class="card">
                            <h3 class="heading-medium"><a href="@Url.EmployerRecruitAction()">Recruitment</a></h3>
                            <p>Recruit an apprentice by creating a vacancy. This vacancy will be advertised on Find an apprenticeship.</p>
                        </div><commit_msg>remove saved favourites link (we don't remove everything that's only there for the saved favourites link (e.g. related model code & image), as it's expected to come back soon.)<commit_after>﻿@using SFA.DAS.Authorization
@using SFA.DAS.Authorization.Mvc
@using SFA.DAS.EmployerAccounts.Web.Extensions
@using SFA.DAS.EmployerAccounts.Web.Helpers
@using SFA.DAS.Tasks.API.Types.Enums

@model SFA.DAS.EmployerAccounts.Web.OrchestratorResponse<SFA.DAS.EmployerAccounts.Web.ViewModels.AccountDashboardViewModel>

@{
    ViewBag.Title = "Home";
    ViewBag.Section = "home";
    ViewBag.PageID = "page-company-homepage";
    ViewBag.GaData.Vpv = "/accounts/agreements/page-company-homepage";

    if (!string.IsNullOrEmpty(Model.Data.EmployerAccountType))
    {
        ViewBag.PageID = $"page-employer-account-created-{Model.Data.EmployerAccountType}";
    }
}

@if (Model.Data.ShowWizard)
{
    @Html.Partial("_WelcomeWizard")
}
else
{

    <h1 class="heading-secondary dashboard-heading">
        Your employer account 
    </h1>
    <p class="heading-xlarge dashboard-heading-company">@Model.Data.Account.Name</p>

    @*<a href="@Url.FavouritesAction()" class="das-favourites-link govuk-body">
        <span class="das-favourites-link__icon">
        <svg class="icon" focusable="false" aria-hidden="true">
            <use xlink:href="#icon-favourite" />
        </svg></span>
        <span class="das-favourites-link__text">View saved favourites</span>
    </a>*@

    <hr class="dashboard-heading-separator" />

    <div class="grid-row">
        <div class="column-two-thirds">
            <section class="dashboard-section">
                <div class="grid-row">
                    <div class="column-two-thirds">
                        <h2 class="section-heading heading-large">Apprenticeships</h2>
                        <p class="section-description">Manage your apprentices, recruit apprentice and set training provider permissions</p>
                    </div>
                </div>
                <div class="cards">
                    <div class="card">
                        <h3 class="heading-medium"><a href="@Url.EmployerCommitmentsAction("apprentices/home")">Apprentices</a></h3>
                        <p>Add apprentices, update details of existing apprentices and authorise payments to training providers.</p>
                    </div>
                    @if (Html.IsAuthorized(FeatureType.Recruitments))
                    {
                        <div class="card">
                            <h3 class="heading-medium"><a href="@Url.EmployerRecruitAction()">Recruitment</a></h3>
                            <p>Recruit an apprentice by creating a vacancy. This vacancy will be advertised on Find an apprenticeship.</p>
                        </div>
{'fraction_non_alphanumeric': 0.13219774115904462, 'fraction_numerical': 0.0029624143677096835, 'mean_word_length': 2.4276649746192893, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1218076', 'n_tokens_mistral': 1663, 'n_tokens_neox': 1559, 'n_words': 284}