<commit_before>@extends('app.template')
@section('content')
<div class="pure-g criticals">
    <div class="pure-u-8-24 projects">
        <div class="l-box">
            <p class="subheading">
                Active Clients <i class="fa fa-plus-square-o" @click="addClient"></i>
            </p>
            <div class="project_box new_project_box" v-if="client_add" transition="expand">
                <div class="l-box">
                    <form method="post" action="/clients">
                        <p>
                            <strong><input type="text" placeholder="Client Name" name="name"></strong>
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Industry" name="industry">
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Contact Name" name="contact_name">
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Contact Email" name="contact_email">
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Contact Phone" name="contact_phone">
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Contact Address" name="contact_address">
                        </p>
                        <p class="details">
                            <button class="pure-button pure-button-primary">Create</button>
                            <a class="pure-button" @click="cancelNewClient">Cancel</a>
                        </p>
                    </form>
                </div>
            </div>
            @if (count($clients) == 0)
                <p class="details">
                    No active clients.
                </p>
            @else
            @foreach ($clients as $ind_client)
            <p>
                <a href="{{url('clients')}}/{{$ind_client->id}}">
                    <strong>{{$ind_client->client_id}} &#8212; </strong>{{$ind_client->name}}
                </a>
            </p>
            @endforeach
            @endif
        </div>
    </div>
    <div class="pure-u-13-24 data">
        <div class="pure-g">
            <div class="pure-u-8-24">
                <div class="l-box">
                    <p class="subheading">
                        Total Outstanding:
                    </p>
                    <p class="highlight">
                        ${{number_format($active_total)}}
                    </p>
                </div>
            </div>
            <div class="pure-u-7-24">
                <div class="l-box">
                    <p class="subheading">
                        Total Overdue:
                    </p>
                    <p class="highlight @if ($overdue_total > 0) red @endif">
                        ${{number_format($overdue_total)}}
                    </p>
                </div>
            </div>
            <div class="pure-u-9-24">
                <div class="l-box">
                    <p class="subheading">
                        30-day Position:
                    </p>
                    <p class="highlight">
                        ${{number_format($thirty_day_total)}} &#8211;
                        <span class="@if ($thirty_day_total > $previous_thirty_day_total) green @else red @endif)">
                        @if ($position_diffeence > 0)
                        <i class="fa fa-angle-up"></i>
                        @else
                        <i class="fa fa-angle-down"></i>
                        @endif
                        ${{number_format(abs($position_diffeence))}}
                        </span>
                    </p>
                </div>
            </div>
            <div class="pure-u-1 invoices">
                <div class="l-box">
                    <p class="subheading">
                        Active Invoices
                    </p>
                    @if (count($active_invoices) == 0)
                        <p class="details">
                            No invoices issued.
                        </p>
                    @else
                    <table id="hor-minimalist-a">
                        <tr>
                            <th>Inv. No.</th>
                            <th>Dated</th>
                            <th>Owed</th>
                            <th>Terms</th>
                            <th>Due</th>
                            <th>Status</th>
                        </tr>
                        @foreach ($active_invoices as $ind_invoice)
                        <tr><commit_msg>UI tweaking<commit_after>@extends('app.template')
@section('content')
<div class="pure-g criticals">
    <div class="pure-u-8-24 projects">
        <div class="l-box">
            <p class="subheading">
                Active Clients <i class="fa fa-plus-square-o" @click="addClient"></i>
            </p>
            <div class="project_box new_project_box" v-if="client_add" transition="expand">
                <div class="l-box">
                    <form method="post" action="/clients">
                        <p>
                            <strong><input type="text" placeholder="Client Name" name="name"></strong>
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Industry" name="industry">
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Contact Name" name="contact_name">
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Contact Email" name="contact_email">
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Contact Phone" name="contact_phone">
                        </p>
                        <p class="details">
                            <input type="text" class="details" placeholder="Client Contact Address" name="contact_address">
                        </p>
                        <p class="details">
                            <button class="pure-button pure-button-primary">Create</button>
                            <a class="pure-button" @click="cancelNewClient">Cancel</a>
                        </p>
                    </form>
                </div>
            </div>
            @if (count($clients) == 0)
                <p class="details">
                    No active clients.
                </p>
            @else
            @foreach ($clients as $ind_client)
            <p>
                <a href="{{url('clients')}}/{{$ind_client->id}}">
                    <strong>{{$ind_client->client_id}} &#8212; </strong>{{$ind_client->name}}
                </a>
            </p>
            @endforeach
            @endif
        </div>
    </div>
    <div class="pure-u-13-24 data">
        <div class="pure-g">
            <div class="pure-u-8-24">
                <div class="l-box">
                    <p class="subheading">
                        Total Outstanding:
                    </p>
                    <p class="highlight">
                        ${{number_format($active_total)}}
                    </p>
                </div>
            </div>
            <div class="pure-u-7-24">
                <div class="l-box">
                    <p class="subheading">
                        Total Overdue:
                    </p>
                    <p class="highlight @if ($overdue_total > 0) red @endif">
                        ${{number_format($overdue_total)}}
                    </p>
                </div>
            </div>
            <div class="pure-u-9-24">
                <div class="l-box">
                    <p class="subheading">
                        30-day Position:
                    </p>
                    <p class="highlight">
                        ${{number_format($thirty_day_total)}} &#8211;
                        <span class="@if ($thirty_day_total > $previous_thirty_day_total) green @else red @endif)">
                        @if ($position_diffeence > 0)
                        <i class="fa fa-angle-up"></i>
                        @else
                        <i class="fa fa-angle-down"></i>
                        @endif
                        ${{number_format(abs($position_diffeence))}}
                        </span>
                    </p>
                </div>
            </div>
            <div class="pure-u-1 invoices">
                <div class="l-box">
                    <p class="subheading">
                        Active Invoices
                    </p>
                    @if (count($active_invoices) == 0)
                        <p class="details">
                            No active invoices.
                        </p>
                    @else
                    <table id="hor-minimalist-a">
                        <tr>
                            <th>Inv. No.</th>
                            <th>Dated</th>
                            <th>Owed</th>
                            <th>Terms</th>
                            <th>Due</th>
                            <th>Status</th>
                        </tr>
                        @foreach ($active_invoices as $ind_invoice)
                        <tr>
{'fraction_non_alphanumeric': 0.13140631406314063, 'fraction_numerical': 0.006355063550635506, 'mean_word_length': 0.9576645264847512, 'pattern_counts': {'":': 0, '<': 209, '<?xml version=': 0, '>': 221, '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': '5700833', 'n_tokens_mistral': 2522, 'n_tokens_neox': 2309, 'n_words': 472}