<?php

namespace ThurData\Servers\KerioEmail\App\Http\Client;

use ThurData\Servers\AwsEc2\App\UI\Client\Home\Pages\ScheduledTasks;
use ThurData\Servers\AwsEc2\App\UI\Client\Home\Pages\StatusWidget;
use ThurData\Servers\KerioEmail\App\UI\Client\Home\Pages\Dashboard;
use ThurData\Servers\KerioEmail\Core\Http\AbstractClientController;
use ThurData\Servers\KerioEmail\Core\Helper;
use ThurData\Servers\KerioEmail\App\Traits\HostingService;
use ThurData\Servers\KerioEmail\Core\UI\Traits\WhmcsParams;

/**
 *
 * Created by PhpStorm.
 * User: ThurData
 * Date: 10.09.19
 * Time: 10:13
 * Class Home
 */
class Home extends AbstractClientController
{
    use WhmcsParams;

    public function index()
    {
        if ($this->getWhmcsParamByKey('status') === 'Active')
        {
            $response = Helper\view()->addElement(Dashboard::class);
            return $response;
        }
    }

}
