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

@{
    var culture = new CultureInfo("en-GB");
}
@{ViewBag.Title = "Credit details";}
<div class="grid-row">
        <div class="column-two-thirds">
            <h1 class="heading-xlarge">Credit details</h1>
            <div>
                <p>
                    The following shows details of the payment into your account.
                </p>
            </div>
        </div>
    </div>
    <div class="grid-row">
        <div class="column-full">

            <table class="table-19-font">
                <thead>
                    <tr>
                        <th colspan="2">
                            <h2 class="heading-medium">Overview</h2>

                        </th>
                    </tr>
                </thead>
                <tbody>

                    <tr>
                        <td class="rjTableName">Payment type</td>
                        <td class="">Levy Credit</td>

                    </tr>
                    <tr>
                        <td class="rjTableName">Date</td>
                       <td class="">@Model.LineItem.First().TransactionDate.ToGdsFormat()</td>

                    </tr>
                
                </tbody>
            </table>
            <h2 class="heading-medium">Payroll</h2>
            <div class="responsive-table table-19-font">
                <div class="responsive-thead">
                    <div class="responsive-tr">
                        <div class="responsive-th" scope="col">PAYE scheme</div>
                        <div class="responsive-th numeric" scope="col">Levy Declared</div>
                        <div class="responsive-th numeric" scope="col">English Percentage</div>
                        <div class="responsive-th numeric" scope="col">Top up</div>
                        <div class="responsive-th numeric" scope="col">Paid in</div>
                    </div>
                </div>
                <div class="responsive-tbody">


                    @foreach (var aggregationLineItem in Model.LineItem)
                    {
                        
                      

                        <div class="responsive-tr">
                            <div class="responsive-td rjTableName">
                                <div>@aggregationLineItem.Empref</div>
                                <div class="responsive-inner-caption"></div>
                            </div>
                            <div class="responsive-td rjTableName">
                                <div>@aggregationLineItem.Amount</div>
                                <div class="responsive-inner-caption"></div>
                            </div>
                            <div class="responsive-td numeric">
                                <div class="responsive-inner-caption">English percentage</div>
                                <div>@($"{aggregationLineItem.EnglishFraction*100:n0}")%</div>
                            </div>
                            <div class="responsive-td numeric">
                                <div class="responsive-inner-caption">Top up</div>
                                <div>@(aggregationLineItem.TopUp.ToString("C0", culture))</div>
                            </div>
                            <div class="responsive-td numeric">
                                <div class="responsive-inner-caption">Paid in</div>
                                <div>@((aggregationLineItem.Amount + aggregationLineItem.TopUp).ToString("C0", culture))</div>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
@section breadcrumb {
    <div class="breadcrumbs">
        <ol role="navigation">
            <li><a href="/">Your User Profile</a></li>
            <li><a href="@Url.Action("Index", "EmployerTeam")">Employer Account Homepage</a></li>
            <li><a href="@Url.Action("Index", "EmployerAccountTransactions")">View Your Transactions</a></li>
            <li>Credit details</li>
        </ol>
    </div>
}<commit_msg>Formatted the credit details view<commit_after>﻿@using System.Globalization
@using SFA.DAS.EAS.Web.Extensions
@model SFA.DAS.EAS.Web.Orchestrators.TransactionLineItemViewModel

@{
    var culture = new CultureInfo("en-GB");
    var paymentType = "Credit";
    ViewBag.Title = paymentType + " details";
    if (1 == 2)
    {
        paymentType = "Adjustment";
    }
}


    <div class="grid-row">
        <div class="column-two-thirds">
            <h1 class="heading-xlarge">@paymentType details</h1>
            <p class="lede">@paymentType made on @Model.LineItem.First().TransactionDate.ToGdsFormat()</p>
            <table class="responsive-table table-19-font">
                <thead class="responsive-thead">
                    <tr class="responsive-tr">
                        <th scope="col">PAYE scheme</th>
                        <th class="numeric" scope="col">Levy declared</th>
                        <th class="numeric" scope="col">English %</th>
                        <th class="numeric" scope="col">Top up</th>
                        <th class="numeric" scope="col">Paid in</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var aggregationLineItem in Model.LineItem)
                    {
                        <tr class="responsive-tr">
                            <td>
                                @aggregationLineItem.Empref
                            </td>
                            <td class="numeric">
                                @(aggregationLineItem.Amount.ToString("C0", culture))
                            </td>
                            <td class="numeric">
                                @($"{aggregationLineItem.EnglishFraction*100:n0}")%
                            </td>
                            <td class="numeric">
                                @(aggregationLineItem.TopUp.ToString("C0", culture))
                            </td>
                            <td class="numeric">
                                @((aggregationLineItem.Amount + aggregationLineItem.TopUp).ToString("C0", culture))
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
            <div class="panel panel-border-wide">
                <p>Levy declared to HMRC might include negative adjustments from previous months.</p>
            </div>
        </div>
    </div>
@section breadcrumb {
    <div class="breadcrumbs">
        <ol role="navigation">
            <li><a href="/">Your User Profile</a></li>
            <li><a href="@Url.Action("Index", "EmployerTeam")">Employer Account Homepage</a></li>
            <li><a href="@Url.Action("Index", "EmployerAccountTransactions")">View Your Transactions</a></li>
            <li>@paymentType details</li>
        </ol>
    </div>
}
{'fraction_non_alphanumeric': 0.13141887112745793, 'fraction_numerical': 0.004243881737162258, 'mean_word_length': 1.2387587080430653, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, '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': '1116255', 'n_tokens_mistral': 1887, 'n_tokens_neox': 1736, 'n_words': 322}