Fixed some views.

This commit is contained in:
James Cole 2015-03-04 21:11:47 +01:00
parent 284732c7a6
commit 1139f950ed
2 changed files with 4 additions and 3 deletions

View File

@ -113,7 +113,8 @@ class CategoryController extends Controller
->after($start)
->orderBy('transaction_journals.date')
->get(['transaction_journals.*']);
$subTitle = 'Transactions without a category in ' . $start->format('F Y');
$subTitle = 'Transactions without a category between ' . $start->format('jS F Y').' and '.$end->format('jS F Y');
return view('categories.noCategory', compact('list', 'subTitle'));
}

View File

@ -71,14 +71,14 @@
{{$journal->date->format('j F Y')}}
</td>
<td>
@if($journal->transactions[0]->account->accounttype->description == 'Cash account')
@if($journal->transactions[0]->account->accounttype->type == 'Cash account')
<span class="text-success">(cash)</span>
@else
<a href="{{route('accounts.show',$journal->transactions[0]->account_id)}}">{{{$journal->transactions[0]->account->name}}}</a>
@endif
</td>
<td>
@if($journal->transactions[1]->account->accounttype->description == 'Cash account')
@if($journal->transactions[1]->account->accounttype->type == 'Cash account')
<span class="text-success">(cash)</span>
@else
<a href="{{route('accounts.show',$journal->transactions[1]->account_id)}}">{{{$journal->transactions[1]->account->name}}}</a>