mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
12ae548dab
- Small feedback bug in migration controller - Better database create scripts. - Fixed bug in seed scripts. - Cleanup and fixed sorting in various helpers - Extended some tests to catch changed code. - Created show(journal) and edit(journal) (untested) [skip-ci]
77 lines
2.3 KiB
PHP
77 lines
2.3 KiB
PHP
@extends('layouts.default')
|
|
@section('content')
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
<h1>Firefly
|
|
<small>Transaction "{{{$journal->description}}}"</small>
|
|
</h1>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
<h3>Metadata</h3>
|
|
<table class="table">
|
|
<tr>
|
|
<td>Date</td>
|
|
<td>{{{$journal->date->format('jS F Y')}}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Currency</td>
|
|
<td>{{{$journal->transactioncurrency->code}}}</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->components as $component)
|
|
<tr>
|
|
<td>{{$component->class}}</td>
|
|
<td>{{{$component->name}}}</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
</div>
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
<h3>Transactions</h3>
|
|
@foreach($journal->transactions as $t)
|
|
<h4>{{{$t->account->name}}}<br /><small>{{{$t->account->accounttype->description}}}</small></h4>
|
|
<table class="table">
|
|
<tr>
|
|
<td>Amount</td>
|
|
<td>{{mf($t->amount)}}</td>
|
|
</tr>
|
|
@if(!is_null($t->description))
|
|
<tr>
|
|
<td>Description</td>
|
|
<td>{{{$t->description}}}</td>
|
|
</tr>
|
|
@endif
|
|
</table>
|
|
@endforeach
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
<div class="btn-group">
|
|
<a class="btn btn-default" href="{{route('transactions.edit',$journal->id)}}"><span class="glyphicon glyphicon-pencil"></span> Edit</a> <a href="{{route('transactions.delete',$journal->id)}}" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span> Delete</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@stop
|
|
@section('scripts')
|
|
@stop |