mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
<?php namespace FireflyIII\Http\Controllers;
|
|
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Home Controller
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This controller renders your application's "dashboard" for users that
|
|
| are authenticated. Of course, you are free to change or remove the
|
|
| controller as you wish. It is just here to get your app started!
|
|
|
|
|
*/
|
|
|
|
/**
|
|
* Create a new controller instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->middleware('auth');
|
|
$this->middleware('range');
|
|
//$this->middleware('guest');
|
|
}
|
|
|
|
/**
|
|
* Show the application dashboard to the user.
|
|
*
|
|
* @return Response
|
|
*/
|
|
public function index()
|
|
{
|
|
// count is fake
|
|
$count = \Auth::user()->accounts()->accountTypeIn(['Asset account', 'Default account'])->count();
|
|
$title = 'Firefly';
|
|
$subTitle = 'What\'s playing?';
|
|
$mainTitleIcon = 'fa-fire';
|
|
$transactions = [];
|
|
|
|
return view('index', compact('count', 'title', 'subTitle', 'mainTitleIcon','transactions'));
|
|
}
|
|
|
|
}
|