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

@section('page-header', 'Production Advisor')

@section('content')
    @include('partials.dominion.advisor-selector')

    <div class="row">

        <div class="col-md-12 col-md-9">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title"><i class="fa fa-industry"></i> Production Advisor</h3>
                </div>
                <div class="box-body no-padding">
                    <div class="row">

                        <div class="col-xs-12 col-sm-4">
                            <table class="table">
                                <colgroup>
                                    <col width="50%">
                                    <col width="50%">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th colspan="2">Production /hr</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>Platinum:</td>
                                        <td>{{ number_format($productionCalculator->getPlatinumProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Food:</td>
                                        <td>{{ number_format($productionCalculator->getFoodProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Lumber:</td>
                                        <td>{{ number_format($productionCalculator->getLumberProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Mana:</td>
                                        <td>{{ number_format($productionCalculator->getManaProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Ore:</td>
                                        <td>{{ number_format($productionCalculator->getOreProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Gems:</td>
                                        <td>{{ number_format($productionCalculator->getGemProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td class="nyi">Research points:</td>
                                        <td class="nyi">NYI</td>
                                    </tr>
                                    <tr>
                                        <td>Boats:</td>
                                        <td>{{ number_format($productionCalculator->getBoatProduction($selectedDominion)) }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                        <div class="col-xs-12 col-sm-4">
                            <table class="table">
                                <colgroup>
                                    <col width="50%">
                                    <col width="50%">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th colspan="2">Consumption /hr</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>Food Eaten:</td>
                                        <td>{{ number_format($productionCalculator->getFoodConsumption($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Food Decayed:</td>
                                        <td>{{ number_format($productionCalculator->getFoodDecay($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Lumber Rotted:</td>
                                        <td>{{ number_format($productionCalculator->getLumberDecay($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Mana Drain:</td>
                                        <td>{{ number_format($productionCalculator->getManaDecay($selectedDominion)) }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                        <div class="col-xs-12 col-sm-4">
                            <table class="table">
                                <colgroup>
                                    <col width="50%">
                                    <col width="50%">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th colspan="2">Net Change /hr</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr class="hidden-xs">
                                        <td colspan="2">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>Food:</td>
                                        <td>{{ number_format($productionCalculator->getFoodNetChange($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Lumber:</td>
                                        <td>{{ number_format($productionCalculator->getLumberNetChange($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Mana:</td>
                                        <td>{{ number_format($productionCalculator->getManaNetChange($selectedDominion)) }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <div class="col-md-12 col-md-3">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">Information</h3>
                </div>
                <div class="box-body">
                    <p>The production advisor tells you about your resource production, general population and jobs.</p>
                    <p>
                        Total population: {{ number_format($populationCalculator->getPopulation($selectedDominion)) }} / {{ number_format($populationCalculator->getMaxPopulation($selectedDominion)) }}<br>
                        Peasant population: {{ number_format($populationCalculator->getPopulation($selectedDominion) - $populationCalculator->getPopulationMilitary($selectedDominion)) }} / {{ number_format($populationCalculator->getMaxPopulation($selectedDominion) - $populationCalculator->getPopulationMilitary($selectedDominion)) }}<br>
                        Military population: {{ number_format($populationCalculator->getPopulationMilitary($selectedDominion)) }}<br>
                        Peasant change last hour: <b>{{ ((($selectedDominion->peasants_last_hour > 0) ? '+' : null) . number_format($selectedDominion->peasants_last_hour)) }}</b><br>
                        <br>
                        Jobs total: {{ number_format($populationCalculator->getEmploymentJobs($selectedDominion)) }} / {{ number_format($populationCalculator->getPopulationEmployed($selectedDominion)) }}<br>
                        @php($jobsNeeded = ($selectedDominion->peasants - $populationCalculator->getEmploymentJobs($selectedDominion)))
                        @if ($jobsNeeded < 0)
                            Jobs available: {{ number_format($jobsNeeded) }}<br>
                            Opportunity cost of job overrun: <b>{{ number_format(2.7 * $jobsNeeded) }} platinum</b>
                        @else
                            Jobs needed: {{ number_format($jobsNeeded) }}<br>
                            Opportunity cost of job underrun: <b>{{ number_format(2.7 * $jobsNeeded) }} platinum</b>
                        @endif
                    </p>
                </div>
            </div>
        </div>

    </div>
<commit_msg>Rework jobs some more to make it more clear<commit_after>@extends('layouts.master')

@section('page-header', 'Production Advisor')

@section('content')
    @include('partials.dominion.advisor-selector')

    <div class="row">

        <div class="col-md-12 col-md-9">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title"><i class="fa fa-industry"></i> Production Advisor</h3>
                </div>
                <div class="box-body no-padding">
                    <div class="row">

                        <div class="col-xs-12 col-sm-4">
                            <table class="table">
                                <colgroup>
                                    <col width="50%">
                                    <col width="50%">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th colspan="2">Production /hr</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>Platinum:</td>
                                        <td>{{ number_format($productionCalculator->getPlatinumProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Food:</td>
                                        <td>{{ number_format($productionCalculator->getFoodProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Lumber:</td>
                                        <td>{{ number_format($productionCalculator->getLumberProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Mana:</td>
                                        <td>{{ number_format($productionCalculator->getManaProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Ore:</td>
                                        <td>{{ number_format($productionCalculator->getOreProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Gems:</td>
                                        <td>{{ number_format($productionCalculator->getGemProduction($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td class="nyi">Research points:</td>
                                        <td class="nyi">NYI</td>
                                    </tr>
                                    <tr>
                                        <td>Boats:</td>
                                        <td>{{ number_format($productionCalculator->getBoatProduction($selectedDominion)) }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                        <div class="col-xs-12 col-sm-4">
                            <table class="table">
                                <colgroup>
                                    <col width="50%">
                                    <col width="50%">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th colspan="2">Consumption /hr</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>Food Eaten:</td>
                                        <td>{{ number_format($productionCalculator->getFoodConsumption($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Food Decayed:</td>
                                        <td>{{ number_format($productionCalculator->getFoodDecay($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Lumber Rotted:</td>
                                        <td>{{ number_format($productionCalculator->getLumberDecay($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Mana Drain:</td>
                                        <td>{{ number_format($productionCalculator->getManaDecay($selectedDominion)) }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                        <div class="col-xs-12 col-sm-4">
                            <table class="table">
                                <colgroup>
                                    <col width="50%">
                                    <col width="50%">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th colspan="2">Net Change /hr</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr class="hidden-xs">
                                        <td colspan="2">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>Food:</td>
                                        <td>{{ number_format($productionCalculator->getFoodNetChange($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Lumber:</td>
                                        <td>{{ number_format($productionCalculator->getLumberNetChange($selectedDominion)) }}</td>
                                    </tr>
                                    <tr>
                                        <td>Mana:</td>
                                        <td>{{ number_format($productionCalculator->getManaNetChange($selectedDominion)) }}</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>

                    </div>
                </div>
            </div>
        </div>

        <div class="col-md-12 col-md-3">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">Information</h3>
                </div>
                <div class="box-body">
                    <p>The production advisor tells you about your resource production, general population and jobs.</p>
                    <p>
                        Total population: {{ number_format($populationCalculator->getPopulation($selectedDominion)) }} / {{ number_format($populationCalculator->getMaxPopulation($selectedDominion)) }}<br>
                        Peasant population: {{ number_format($populationCalculator->getPopulation($selectedDominion) - $populationCalculator->getPopulationMilitary($selectedDominion)) }} / {{ number_format($populationCalculator->getMaxPopulation($selectedDominion) - $populationCalculator->getPopulationMilitary($selectedDominion)) }}<br>
                        Military population: {{ number_format($populationCalculator->getPopulationMilitary($selectedDominion)) }}<br>
                        Peasant change last hour: <b>{{ ((($selectedDominion->peasants_last_hour > 0) ? '+' : null) . number_format($selectedDominion->peasants_last_hour)) }}</b><br>
                        <br>
                        Jobs total: {{ number_format($populationCalculator->getEmploymentJobs($selectedDominion)) }}<br>
                        Jobs fulfilled: {{ number_format($populationCalculator->getPopulationEmployed($selectedDominion)) }}<br>
                        @php($jobsNeeded = ($selectedDominion->peasants - $populationCalculator->getEmploymentJobs($selectedDominion)))
                        @if ($jobsNeeded < 0)
                            Jobs available: {{ number_format(abs($jobsNeeded)) }}<br>
                            Opportunity cost of job overrun: <b>{{ number_format(2.7 * abs($jobsNeeded)) }} platinum</b>
                        @else
                            Jobs needed: {{ number_format($jobsNeeded) }}<br>
                            Opportunity cost of job underrun: <b>{{ number_format(2.7 * $jobsNeeded) }} platinum</b>
                        @endif
                    </p>
                </div>
            </div>
        </div>

    </div>

{'fraction_non_alphanumeric': 0.11021122906862209, 'fraction_numerical': 0.004487249644303382, 'mean_word_length': 0.8056516154530184, 'pattern_counts': {'":': 0, '<': 378, '<?xml version=': 0, '>': 432, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 180, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1791753', 'n_tokens_mistral': 4086, 'n_tokens_neox': 3648, 'n_words': 607}