HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/blije-gasten.komma.pro/app/Komma/Kms/Dashboard/DashboardController.php
<?php


namespace App\Komma\Kms\Dashboard;


use App\Komma\Kms\Core\SectionController;
use App\Komma\Sites\SiteServiceInterface;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\MessageBag;

final class DashboardController extends SectionController
{

    protected $slug = "dashboard";
    protected $pageSection;

    public function __construct()
    {
        $this->siteService = app(SiteServiceInterface::class);
        $this->section = new DashboardSection($this->slug);
    }

    public function index() {
//        $this->authorize('index', $this->classModelName);
        //Disable the right pane
        $this->showEntity = false;
        return $this->render(null);
    }

    /**
     * Makes the view and returns it
     *
     * @return View
     */
    protected function makeView(): View
    {
        $successes = (Session::has('successes')) ? Session::get('successes') : new MessageBag();

        return view('kms/dashboard.index', [
            'slug' => $this->slug,
        ]);
    }
}