<?php

namespace Sartoric\ModularCms\Controllers\Layouts;

use Sartoric\ModularCms\Controllers\Controller;
use Sartoric\ModularCms\Models\Dashboard;

class HomeController extends Controller
{
    public function __construct()
    {
        // Ridefinisco i middleware in modo da non avere il check sulle view.rights per la home
        // ed evitare il redirect
        $this->middleware(['auth', 'lock']);
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $Dashboard = new Dashboard();
        $dashSummary['last10'] = array();
        return view('sartoric/modularcms::home', compact('dashSummary'));
    }
}
