<?php

namespace ModulesGarden\Servers\OpenXchange\App\Http\Admin;

use ModulesGarden\Servers\OpenXchange\Core\Helper;
use ModulesGarden\Servers\OpenXchange\Core\UI\Traits\WhmcsParams;
use ModulesGarden\Servers\OpenXchange\Core\Http\AbstractClientController;
use ModulesGarden\Servers\OpenXchange\App\UI\Client\Home\Pages\ServiceInformation as ServiceInformationIntegration;
use ModulesGarden\Servers\OpenXchange\App\UI\Admin\ProductConfiguration\Pages\ConfigForm;
use ModulesGarden\Servers\OpenXchange\App\UI\Admin\ProductConfiguration\Pages\ConfigurablesOptions;


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

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

    }

}