<commit_before>﻿@using System.Globalization
@model SFA.DAS.EAS.Web.OrchestratorResponse<SFA.DAS.EAS.Web.ViewModels.CoursePaymentDetailsViewModel>

@{
    var culture = new CultureInfo("en-GB");
    ViewBag.PageID = "page-course-payment-details";
    ViewBag.Title = "Payment: apprentice details";
    ViewBag.Section = "finance";

}
<div class="grid-row">
    <div class="column-two-thirds">
        <div class="hgroup">
            <h1 class="heading-xlarge">Payment: apprentice details</h1>
            <dl class="inline">
                <dt>Date</dt>
                <dd>@Model.Data.PaymentDate.ToString("dd MMMM yyyy")</dd>
                <dt>Payment to</dt>
                <dd>@Model.Data.ProviderName</dd>
                <dt>Course</dt>
                @{
                    var courseTitle = Model.Data.CourseName;

                    if (Model.Data.CourseLevel.HasValue)
                    {
                        courseTitle += $" level {Model.Data.CourseLevel.Value}";
                    }
                }
                <dd>@courseTitle</dd>
            </dl>
        </div>
    </div>
</div>    

<div class="grid-row">
    <div class="column-full">
        <table class="responsive">
            <thead>
            <tr>
                <th colspan="2"></th>
                <th class="highlight colgroup" scope="colgroup" colspan="2">Co-investment</th>
                <th colspan="2"></th>
            </tr>
            <tr>
                <th scope="col" class="tw-20">Apprentice</th>
                <th scope="col" class="numeric tw-20">Paid from levy</th>
                <th scope="col" class="numeric tw-20 highlight">Government contribution</th>
                <th scope="col" class="numeric tw-20 highlight">Your contribution</th>
                <th scope="col" class="numeric tw-20">Amount</th>
            </tr>
            </thead>
            <tbody>
            @foreach (var coursePaymentSummary in Model.Data.ApprenticePayments)
            {
                <tr class="responsive-tr">
                    <td data-label="Apprentice">@coursePaymentSummary.ApprenticeName</td>
                    <td class="numeric" data-label="Paid from levy">@coursePaymentSummary.LevyPaymentAmount.ToString("C0", culture)</td>
                    <td class="numeric highlight" data-label="Government contribution">@coursePaymentSummary.SFACoInvestmentAmount.ToString("C0", culture)</td>
                    <td class="numeric highlight" data-label="Your contribution">@coursePaymentSummary.EmployerCoInvestmentAmount.ToString("C0", culture)</td>
                    <td class="numeric" data-label="Amount">@coursePaymentSummary.TotalAmount.ToString("C0", culture)</td><commit_msg>Added message if learner name is not found<commit_after>﻿@using System.Globalization
@model SFA.DAS.EAS.Web.OrchestratorResponse<SFA.DAS.EAS.Web.ViewModels.CoursePaymentDetailsViewModel>

@{
    var culture = new CultureInfo("en-GB");
    ViewBag.PageID = "page-course-payment-details";
    ViewBag.Title = "Payment: apprentice details";
    ViewBag.Section = "finance";

}
<div class="grid-row">
    <div class="column-two-thirds">
        <div class="hgroup">
            <h1 class="heading-xlarge">Payment: apprentice details</h1>
            <dl class="inline">
                <dt>Date</dt>
                <dd>@Model.Data.PaymentDate.ToString("dd MMMM yyyy")</dd>
                <dt>Payment to</dt>
                <dd>@Model.Data.ProviderName</dd>
                <dt>Course</dt>
                @{
                    var courseTitle = Model.Data.CourseName;

                    if (Model.Data.CourseLevel.HasValue)
                    {
                        courseTitle += $" level {Model.Data.CourseLevel.Value}";
                    }
                }
                <dd>@courseTitle</dd>
            </dl>
        </div>
    </div>
</div>    

<div class="grid-row">
    <div class="column-full">
        <table class="responsive">
            <thead>
            <tr>
                <th colspan="2"></th>
                <th class="highlight colgroup" scope="colgroup" colspan="2">Co-investment</th>
                <th colspan="2"></th>
            </tr>
            <tr>
                <th scope="col" class="tw-20">Apprentice</th>
                <th scope="col" class="numeric tw-20">Paid from levy</th>
                <th scope="col" class="numeric tw-20 highlight">Government contribution</th>
                <th scope="col" class="numeric tw-20 highlight">Your contribution</th>
                <th scope="col" class="numeric tw-20">Amount</th>
            </tr>
            </thead>
            <tbody>
            @foreach (var coursePaymentSummary in Model.Data.ApprenticePayments)
            {
                <tr class="responsive-tr">
                    @if (string.IsNullOrEmpty(@coursePaymentSummary.ApprenticeName))
                    {
                        <td data-label="Apprentice"><em>Not available</em></td>
                    }
                    else
                    {
                        <td data-label="Apprentice">@coursePaymentSummary.ApprenticeName</td>
                    }
                    <td class="numeric" data-label="Paid from levy">@coursePaymentSummary.LevyPaymentAmount.ToString("C0", culture)</td>
                    <td class="numeric highlight" data-label="Government contribution">@coursePaymentSummary.SFACoInvestmentAmount.ToString("C0", culture)</td>
                    <td class="numeric highlight" data-label="Your contribution">@coursePaymentSummary.EmployerCoInvestmentAmount.ToString("C0", culture)</td>
                    <td class="numeric" data-label="Amount">@coursePaymentSummary.TotalAmount.ToString("C0", culture)</td>
{'fraction_non_alphanumeric': 0.13949433304272013, 'fraction_numerical': 0.006625980819529207, 'mean_word_length': 1.892586989409985, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, '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': '682957', 'n_tokens_mistral': 1671, 'n_tokens_neox': 1552, 'n_words': 266}