<?php
/**
* @package   Gridbox
* @author    Balbooa http://www.balbooa.com/
* @copyright Copyright @ Balbooa
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

use Balbooa\Component\Gridbox\Administrator\Helper\GridboxHelper;
use Joomla\CMS\Language\Text;

defined('_JEXEC') or die;
$isEnabled = GridboxHelper::getSystemPlugin();

echo GridboxHelper::$storeHelper->getBackgroundRequests();
?>
<div id="ba-notification">
    <i class="zmdi zmdi-close"></i>
    <h4><?php echo Text::_('ERROR'); ?></h4>
    <p></p>
</div>
<?php
if (!$isEnabled) {
?>
<div id="not-default-dialog" class="ba-modal-sm modal hide in">
    <div class="modal-body">
        <p><?php echo Text::_('ENABLE_GRIDBOX_SYSTEM_PLUGIN'); ?></p>
    </div>
    <div class="modal-footer">
        <form action="index.php?option=com_plugins&view=plugins" method="post" name="setSystemPlugin" style="display: none;">
            <input type="hidden" name="filter[search]" value="Gridbox - System">
        </form>
        <a href="#" onclick="document.forms.setSystemPlugin.submit();" class="ba-btn"><?php echo Text::_('CLOSE') ?></a>
    </div>
</div>
<div class="ba-modal-backdrop"></div>
<?php
}
?>
<div id="export-dialog" class="ba-modal-sm modal hide" style="display:none">
    <div class="modal-header">
        <h3 class="ba-modal-header"><?php echo Text::_('EXPORT'); ?></h3>
    </div>
    <div class="modal-body">
        <div>
            <ul>
                <li>
                    <label>
                        <?php echo Text::_('PAGES'); ?>
                    </label>
                    <label class="ba-checkbox ba-hide-checkbox">
                        <input type="checkbox" checked disabled>
                        <i class="zmdi zmdi-check"></i>
                        <span></span>
                    </label>
                </li>
                <li>
                    <label>
                        <?php echo Text::_('THEME'); ?>
                    </label>
                    <label class="ba-checkbox ba-hide-checkbox">
                        <input type="checkbox" checked disabled>
                        <i class="zmdi zmdi-check"></i>
                        <span></span>
                    </label>
                </li>
                <li class="export-apps">
                    <label>
                        <?php echo Text::_('APP'); ?>
                    </label>
                    <label class="ba-checkbox ba-hide-checkbox">
                        <input type="checkbox" checked disabled>
                        <i class="zmdi zmdi-check"></i>
                        <span></span>
                    </label>
                </li>
                <li>
                    <label>
                        <?php echo Text::_('COM_MENUS'); ?>
                    </label>
                    <label class="ba-checkbox ba-hide-checkbox">
                        <input type="checkbox" class="menu-export">
                        <i class="zmdi zmdi-check"></i>
                        <span></span>
                    </label>
                </li>
            </ul>
        </div>
    </div>
    <div class="modal-footer">
        <a href="#" class="ba-btn" data-dismiss="modal"><?php echo Text::_('CANCEL') ?></a>
        <a href="#" class="ba-btn-primary apply-export"><?php echo Text::_('JTOOLBAR_APPLY') ?></a>
    </div>
</div>