<?php

namespace ModulesGarden\Servers\ZimbraEmail\App\Http\Client;

use ModulesGarden\Servers\AwsEc2\App\UI\Client\Home\Pages\ScheduledTasks;
use ModulesGarden\Servers\AwsEc2\App\UI\Client\Home\Pages\StatusWidget;
use ModulesGarden\Servers\ZimbraEmail\App\UI\Client\Home\Pages\Dashboard;
use ModulesGarden\Servers\ZimbraEmail\Core\Http\AbstractClientController;
use ModulesGarden\Servers\ZimbraEmail\Core\Helper;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Traits\WhmcsParams;

/**
 *
 * Created by PhpStorm.
 * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
 * Date: 10.09.19
 * Time: 10:13
 * Class Home
 */
class Home extends AbstractClientController
{
    use WhmcsParams;

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

}
