diff --git a/app/controllers/RecurringController.php b/app/controllers/RecurringController.php index 809bf7e7ad..36dd8c4d24 100644 --- a/app/controllers/RecurringController.php +++ b/app/controllers/RecurringController.php @@ -80,7 +80,11 @@ class RecurringController extends BaseController */ public function index() { - return View::make('recurring.index'); + /** @var \FireflyIII\Database\Recurring $repos */ + $repos = App::make('FireflyIII\Database\Recurring'); + + $recurring = $repos->get(); + return View::make('recurring.index',compact('recurring')); } /** @@ -110,7 +114,9 @@ class RecurringController extends BaseController */ public function show(RecurringTransaction $recurringTransaction) { - return View::make('recurring.show')->with('recurring', $recurringTransaction)->with('subTitle', $recurringTransaction->name); + $journals = $recurringTransaction->transactionjournals()->withRelevantData()->orderBy('date','DESC')->get(); + $hideRecurring = true; + return View::make('recurring.show',compact('journals','hideRecurring'))->with('recurring', $recurringTransaction)->with('subTitle', $recurringTransaction->name); } public function store() diff --git a/app/views/list/journals-full.blade.php b/app/views/list/journals-full.blade.php index d118ec5fa1..6405564a5b 100644 --- a/app/views/list/journals-full.blade.php +++ b/app/views/list/journals-full.blade.php @@ -1,4 +1,4 @@ -@if(is_object($journals)) +@if(is_object($journals) && method_exists($journals, 'links')) {{$journals->links()}} @endif
@endif - | + @if(!isset($hideRecurring) || (isset($hideRecurring) && $hideRecurring=== false)) + | + @endif @foreach($journals as $journal) @if(!isset($journal->transactions[1]) || !isset($journal->transactions[0])) @@ -99,11 +101,13 @@ @endif @endif + @if(!isset($hideRecurring) || (isset($hideRecurring) && $hideRecurring=== false)) | - @if($journal->recurringTransaction) - {{{$journal->recurringTransaction->name}}} - @endif + @if($journal->recurringTransaction) + {{{$journal->recurringTransaction->name}}} + @endif | + @endif @@ -112,6 +116,6 @@ @endforeach
---|
+ | Name | +Matches on | +Matching amount | +Last seen match | +Next expected match | +Is active | +Will be automatched | +Repeats every | +
---|---|---|---|---|---|---|---|---|
+ + | ++ {{{$entry->name}}} + | ++ @foreach(explode(' ',$entry->match) as $match) + {{{$match}}} + @endforeach + | ++ {{mf($entry->amount_min)}} + — + {{mf($entry->amount_max)}} + | ++ + | ++ + | ++ @if($entry->active) + + @else + + @endif + | ++ @if($entry->automatch) + + @else + + @endif + | ++ {{{$entry->repeat_freq}}} + @if($entry->skip > 0) + skips over {{$entry->skip}} + @endif + | +