firefly-iii/app/Http/Controllers/RuleController.php
2016-01-13 16:05:39 +01:00

53 lines
974 B
PHP

<?php
/**
* RuleController.php
* Copyright (C) 2016 Sander Dorigo
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Http\Controllers;
use Auth;
use FireflyIII\Http\Requests;
use FireflyIII\Models\Rule;
use View;
/**
* Class RuleController
*
* @package FireflyIII\Http\Controllers
*/
class RuleController extends Controller
{
/**
* RuleController constructor.
*/
public function __construct()
{
parent::__construct();
View::share('title', trans('firefly.rules'));
View::share('mainTitleIcon', 'fa-random');
}
/**
* @return View
*/
public function index()
{
$ruleGroups = Auth::user()->ruleGroups()->with('rules')->get();
return view('rules.index', compact('ruleGroups'));
}
/**
* @param Rule $rule
*/
public function upRule(Rule $rule)
{
}
}