2014-08-21 15:16:12 +02:00
|
|
|
@extends('layouts.default')
|
|
|
|
|
@section('content')
|
2014-12-29 20:28:17 +01:00
|
|
|
{{ Breadcrumbs::renderIfExists(Route::getCurrentRoute()->getName(), $bill) }}
|
2014-08-21 15:16:12 +02:00
|
|
|
<div class="row">
|
2014-10-12 08:19:18 +02:00
|
|
|
<div class="col-lg-6 col-sm-12 col-md-12">
|
2014-10-11 18:52:24 +02:00
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">
|
2014-12-29 20:28:17 +01:00
|
|
|
<i class="fa fa-rotate-right"></i> {{{$bill->name}}}
|
2014-10-11 18:52:24 +02:00
|
|
|
|
2014-12-29 20:28:17 +01:00
|
|
|
@if($bill->active)
|
2014-10-11 18:52:24 +02:00
|
|
|
<span class="glyphicon glyphicon-ok" title="Active"></span>
|
|
|
|
|
@else
|
|
|
|
|
<span class="glyphicon glyphicon-remove" title="Inactive"></span>
|
|
|
|
|
@endif
|
2014-08-21 15:16:12 +02:00
|
|
|
|
2014-12-29 20:28:17 +01:00
|
|
|
@if($bill->automatch)
|
2014-10-11 18:52:24 +02:00
|
|
|
<span class="glyphicon glyphicon-ok" title="Automatically matched by Firefly"></span>
|
|
|
|
|
@else
|
|
|
|
|
<span class="glyphicon glyphicon-remove" title="Not automatically matched by Firefly"></span>
|
|
|
|
|
@endif
|
2014-08-21 15:16:12 +02:00
|
|
|
|
2014-10-11 18:52:24 +02:00
|
|
|
<!-- ACTIONS MENU -->
|
|
|
|
|
<div class="pull-right">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
|
|
|
|
|
Actions
|
|
|
|
|
<span class="caret"></span>
|
|
|
|
|
</button>
|
|
|
|
|
<ul class="dropdown-menu pull-right" role="menu">
|
2014-12-29 20:28:17 +01:00
|
|
|
<li><a href="{{route('bills.edit',$bill->id)}}"><span class="glyphicon glyphicon-pencil"></span> edit</a></li>
|
|
|
|
|
<li><a href="{{route('bills.delete',$bill->id)}}"><span class="glyphicon glyphicon-trash"></span> delete</a></li>
|
2014-10-11 18:52:24 +02:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-08-21 15:16:12 +02:00
|
|
|
|
2014-10-11 18:52:24 +02:00
|
|
|
</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<table class="table">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
Matching on
|
2014-12-29 20:28:17 +01:00
|
|
|
@foreach(explode(',',$bill->match) as $word)
|
2014-10-11 18:52:24 +02:00
|
|
|
<span class="label label-info">{{{$word}}}</span>
|
|
|
|
|
@endforeach
|
2014-12-29 20:28:17 +01:00
|
|
|
between {{mf($bill->amount_min)}} and {{mf($bill->amount_max)}}.
|
|
|
|
|
Repeats {{$bill->repeat_freq}}.</td>
|
2014-08-21 15:16:12 +02:00
|
|
|
|
2014-10-11 18:52:24 +02:00
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2014-11-15 07:46:01 +01:00
|
|
|
<td>Next expected match</td>
|
|
|
|
|
<td>
|
2014-12-29 20:28:17 +01:00
|
|
|
<?php $nextExpectedMatch = $bill->nextExpectedMatch();?>
|
2014-11-15 07:46:01 +01:00
|
|
|
@if($nextExpectedMatch)
|
|
|
|
|
{{$nextExpectedMatch->format('j F Y')}}
|
|
|
|
|
@else
|
|
|
|
|
<em>Unknown</em>
|
|
|
|
|
@endif
|
|
|
|
|
</td>
|
2014-10-11 18:52:24 +02:00
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-08-21 15:16:12 +02:00
|
|
|
</div>
|
2014-10-12 08:19:18 +02:00
|
|
|
<div class="col-lg-6 col-sm-12 col-md-12">
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
More
|
|
|
|
|
</div>
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
<p>
|
2014-12-29 20:28:17 +01:00
|
|
|
<a href="{{route('bills.rescan',$bill->id)}}" class="btn btn-default">Rescan old transactions</a>
|
2014-10-12 08:19:18 +02:00
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-08-21 15:16:12 +02:00
|
|
|
</div>
|
2014-10-11 21:23:31 +02:00
|
|
|
|
2014-11-15 07:46:01 +01:00
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12 col-sm-12 col-md-12">
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
Chart
|
|
|
|
|
</div>
|
|
|
|
|
<div class="panel-body">
|
2014-12-29 20:28:17 +01:00
|
|
|
<div id="bill-overview"></div>
|
2014-11-15 07:46:01 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2014-10-11 21:23:31 +02:00
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-12 col-sm-12 col-md-12">
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
Connected transaction journals
|
|
|
|
|
</div>
|
|
|
|
|
<div class="panel-body">
|
2014-11-14 12:54:49 +01:00
|
|
|
@include('list.journals-full')
|
2014-10-11 21:23:31 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
@section('scripts')
|
2014-11-13 16:13:32 +01:00
|
|
|
<script type="text/javascript">
|
2014-12-29 20:28:17 +01:00
|
|
|
var billID = {{{$bill->id}}};
|
2014-12-24 06:10:39 +01:00
|
|
|
var currencyCode = '{{getCurrencyCode()}}';
|
2014-10-11 21:23:31 +02:00
|
|
|
</script>
|
2014-11-13 16:13:32 +01:00
|
|
|
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
|
|
|
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
|
|
|
{{HTML::script('assets/javascript/firefly/gcharts.options.js')}}
|
|
|
|
|
{{HTML::script('assets/javascript/firefly/gcharts.js')}}
|
|
|
|
|
|
2014-12-29 20:28:17 +01:00
|
|
|
{{HTML::script('assets/javascript/firefly/bills.js')}}
|
2014-08-21 15:16:12 +02:00
|
|
|
@stop
|