<commit_before>@extends('layouts.default')
@section('content')
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $journal) !!}
<div class="row">
    <div class="col-lg-6 col-md-6 col-sm-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <i class="fa fa-info-circle fa-fw"></i>
                Metadata
            </div>
                <table class="table table-striped table-bordered">
                    <tr>
                        <td>Date</td>
                        <td>{{{$journal->date->format('jS F Y')}}}</td>
                    </tr>
                    <tr>
                        <td>Type</td>
                        <td>{{{$journal->transactiontype->type}}}</td>
                    </tr>
                    <tr>
                        <td>Completed</td>
                        <td>
                            @if($journal->completed == 1)
                            <span class="text-success">Yes</span>
                            @else
                            <span class="text-danger">No</span>
                            @endif
                        </td>
                    </tr>
                    @foreach($journal->budgets()->get() as $budget)
                                    <tr>
                                        <td>Budget</td>
                                        <td><a href="{{route('budgets.show',$budget->id)}}">{{{$budget->name}}}</a></td>
                                    </tr>
                    @endforeach
                    @foreach($journal->categories()->get() as $category)
                        <tr>
                            <td>Category</td>
                            <td><a href="{{route('categories.show',$category->id)}}">{{{$category->name}}}</a></td>
                        </tr>
                    @endforeach

                </table>
        </div>
        <!-- events, if present -->
        @if(count($journal->piggyBankEvents) > 0)
            <div class="panel panel-default">
                <div class="panel-heading">
                    Piggy banks
                </div>
                <div class="panel-body">
                    @include('list.piggy-bank-events',['events' => $journal->piggyBankEvents,'showPiggyBank' => true])<commit_msg>Show tags in transaction.<commit_after>@extends('layouts.default')
@section('content')
{!! Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $journal) !!}
<div class="row">
    <div class="col-lg-6 col-md-6 col-sm-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <i class="fa fa-info-circle fa-fw"></i>
                Metadata
            </div>
                <table class="table table-striped table-bordered">
                    <tr>
                        <td>Date</td>
                        <td>{{{$journal->date->format('jS F Y')}}}</td>
                    </tr>
                    <tr>
                        <td>Type</td>
                        <td>{{{$journal->transactiontype->type}}}</td>
                    </tr>
                    <tr>
                        <td>Completed</td>
                        <td>
                            @if($journal->completed == 1)
                            <span class="text-success">Yes</span>
                            @else
                            <span class="text-danger">No</span>
                            @endif
                        </td>
                    </tr>
                    @foreach($journal->budgets()->get() as $budget)
                                    <tr>
                                        <td>Budget</td>
                                        <td><a href="{{route('budgets.show',$budget->id)}}">{{{$budget->name}}}</a></td>
                                    </tr>
                    @endforeach
                    @foreach($journal->categories()->get() as $category)
                        <tr>
                            <td>Category</td>
                            <td><a href="{{route('categories.show',$category->id)}}">{{{$category->name}}}</a></td>
                        </tr>
                    @endforeach
                    @if($journal->tags()->count() > 0)
                        <tr>
                            <td>Tags</td>
                            <td>
                                @foreach($journal->tags as $tag)

                                    <h4 style="display: inline;"><a class="label label-success" href="{{route('tags.show',$tag)}}">
                                            @if($tag->tagMode == 'nothing')
                                                <i class="fa fa-fw fa-tag"></i>
                                            @endif
                                            @if($tag->tagMode == 'balancingAct')
                                                <i class="fa fa-fw fa-refresh"></i>
                                            @endif
                                            @if($tag->tagMode == 'advancePayment')
                                                <i class="fa fa-fw fa-sort-numeric-desc"></i>
                                            @endif
                                            {{$tag->tag}}</a>
                                    </h4>
                                @endforeach
                            </td>
                        </tr>
                    @endif
                </table>
        </div>
        <!-- events, if present -->
        @if(count($journal->piggyBankEvents) > 0)
            <div class="panel panel-default">
                <div class="panel-heading">
                    Piggy banks
                </div>
                <div class="panel-body">
                    @include('list.piggy-bank-events',['events' => $journal->piggyBankEvents,'showPiggyBank' => true])
{'fraction_non_alphanumeric': 0.1487449118046133, 'fraction_numerical': 0.002544097693351425, 'mean_word_length': 0.8810207336523126, 'pattern_counts': {'":': 0, '<': 125, '<?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': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2547877', 'n_tokens_mistral': 1425, 'n_tokens_neox': 1336, 'n_words': 215}