<commit_before>@extends('layouts.master')

@section('title', 'Miner Details')

@section('content')

    <div class="row">

        <div class="col-4">
            <div class="card-heading">Miner</div>
            @include('common.card', [
                'avatar' => $miner->avatar,
                'name' => $miner->name, 
                'sub' => (isset($miner->corporation->name) ? $miner->corporation->name : 'UNKNOWN'),
            ])
        </div>

        <div class="col-4">
            <div class="card-heading">Total tax paid to date</div>
            <div class="card highlight">
                <span class="num">{{ number_format($miner->total_payments) }}</span> ISK
            </div>
        </div>

        <div class="col-4">
            <div class="card-heading">Current amount owed</div>
            <div class="card highlight negative">
                <span class="num">{{ number_format($miner->amount_owed) }}</span> ISK
            </div>
        </div>

    </div>

    <div class="row">

        <div class="col-8">

            <div class="card-heading">Activity Log (<a href="/payment/new">Payment received</a>)</div>

            <table>
                <thead>
                    <tr>
                        <th>Activity</th>
                        <th class="numeric">Amount</th>
                        <th>Date</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach ($activity_log as $activity)
                        <tr>
                            <td>
                                @if (isset($activity->amount))
                                    Invoice sent
                                @endif
                                @if (isset($activity->quantity))
                                    Mining {{ $activity->type->typeName }} ({{ number_format($activity->quantity, 0) }} units)
                                @endif
                                @if (isset($activity->amount_received))
                                    Payment received
                                @endif
                            </td>
                            <td class="numeric">
                                @if (isset($activity->amount))
                                    {{ number_format($activity->amount) }} ISK
                                @endif
                                @if (isset($activity->amount_received))
                                    {{ number_format($activity->amount_received) }} ISK
                                @endif
                                @if (isset($activity->quantity))
                                    @if (isset($activity->tax_amount))
                                        {{ number_format($activity->tax_amount) }} ISK
                                    @else
                                        -
                                    @endif<commit_msg>Add refinery information to mining ledger.<commit_after>@extends('layouts.master')

@section('title', 'Miner Details')

@section('content')

    <div class="row">

        <div class="col-4">
            <div class="card-heading">Miner</div>
            @include('common.card', [
                'avatar' => $miner->avatar,
                'name' => $miner->name, 
                'sub' => (isset($miner->corporation->name) ? $miner->corporation->name : 'UNKNOWN'),
            ])
        </div>

        <div class="col-4">
            <div class="card-heading">Total tax paid to date</div>
            <div class="card highlight">
                <span class="num">{{ number_format($miner->total_payments) }}</span> ISK
            </div>
        </div>

        <div class="col-4">
            <div class="card-heading">Current amount owed</div>
            <div class="card highlight negative">
                <span class="num">{{ number_format($miner->amount_owed) }}</span> ISK
            </div>
        </div>

    </div>

    <div class="row">

        <div class="col-8">

            <div class="card-heading">Activity Log (<a href="/payment/new">Payment received</a>)</div>

            <table>
                <thead>
                    <tr>
                        <th>Activity</th>
                        <th>Location</th>
                        <th class="numeric">Amount</th>
                        <th>Date</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach ($activity_log as $activity)
                        <tr>
                            <td>
                                @if (isset($activity->amount))
                                    Invoice sent
                                @endif
                                @if (isset($activity->quantity))
                                    Mining {{ $activity->type->typeName }} ({{ number_format($activity->quantity, 0) }} units)
                                @endif
                                @if (isset($activity->amount_received))
                                    Payment received
                                @endif
                            </td>
                            <td>
                                @if (isset($activity->refinery_id))
                                    {{ $activity->refinery->name }}
                                @endif
                            </td>
                            <td class="numeric">
                                @if (isset($activity->amount))
                                    {{ number_format($activity->amount) }} ISK
                                @endif
                                @if (isset($activity->amount_received))
                                    {{ number_format($activity->amount_received) }} ISK
                                @endif
                                @if (isset($activity->quantity))
                                    @if (isset($activity->tax_amount))
                                        {{ number_format($activity->tax_amount) }} ISK
                                    @else
                                        -
                                    @endif
{'fraction_non_alphanumeric': 0.12672848544005205, 'fraction_numerical': 0.0016268098259313486, 'mean_word_length': 0.930298273155416, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 146, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2125067', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1366, 'n_words': 255}