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,
]);
}
}