<?php
/**
 * @package DJ-Events
 * @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 * @developer Szymon Woronowski - szymon.woronowski@design-joomla.eu
 *
 */

defined('_JEXEC') or die('Restricted access');

$juri = JUri::getInstance();
$return_url = base64_encode($juri->toString());
?>

<form action="index.php" method="post" name="adminForm">
    <?php if (isset($this->sidebar)) : ?>
        <div id="j-sidebar-container">
            <?php echo $this->sidebar; ?>
        </div>
    <?php endif; ?>
    <div class="row">
        <div class="col-12 col-lg-8">
            <div class="row grid gap-2">
                <div class="bg-white  col-12 col-lg-2 border p-3 text-center"><a
                            href="index.php?option=com_djevents&amp;view=categories">
                        <img alt="<?php echo JText::_('COM_DJEVENTS_CATEGORIES'); ?>"
                             src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/categories.svg"/>
                        <div class="text-muted mt-2"><?php echo JText::_('COM_DJEVENTS_CATEGORIES'); ?></div>
                    </a>
                    <div style="clear: both"></div>
                </div>
                <div class="bg-white  col-12 col-lg-2 border p-3 text-center"><a
                            href="index.php?option=com_djevents&amp;view=events">
                        <img alt="<?php echo JText::_('COM_DJEVENTS_EVENTS'); ?>"
                             src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/durations.svg"/>
                        <div class="text-muted mt-2"><?php echo JText::_('COM_DJEVENTS_EVENTS'); ?></div>
                    </a>
                    <div style="clear: both"></div>
                </div>
                <div class="bg-white  col-12 col-lg-2 border p-3 text-center"><a
                            href="index.php?option=com_config&amp;view=component&amp;component=com_djevents&amp;path=&amp;return=<?php echo urlencode($return_url); ?>">
                        <img alt="<?php echo JText::_('JOPTIONS'); ?>"
                             src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/options.svg"/>
                        <div class="text-muted mt-2"><?php echo JText::_('JOPTIONS'); ?></div>
                    </a>
                    <div style="clear: both"></div>
                </div>
                <div class="bg-white  col-12 col-lg-2 border p-3 text-center"><a
                            href="https://support.dj-extensions.com/portal/en/kb/extensions/dj-events">
                        <img alt="<?php echo JText::_('COM_DJEVENTS_DOCUMENTATION'); ?>"
                             src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/documentation.svg"/>
                        <div class="text-muted mt-2"><?php echo JText::_('COM_DJEVENTS_DOCUMENTATION'); ?></div>
                    </a>
                    <div style="clear: both"></div>
                </div>
                <div class="bg-white  col-12 col-lg-2 border p-3 text-center"><a
                            href="#" onclick="if(confirm('<?php echo JText::_('COM_DJEVENTS_IMPORT_JEVENTS_CONFIRM_MSG') ?>')) { document.adminForm.source.value='jevents'; Joomla.submitform('import', document.adminForm);} return false;"
                    >
                        <img alt="<?php echo JText::_('COM_DJEVENTS_IMPORT_JEVENTS'); ?>"
                             src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/plugins.svg"/>
                        <div class="text-muted mt-2"><?php echo JText::_('COM_DJEVENTS_IMPORT_JEVENTS'); ?></div>
                    </a>
                    <div style="clear: both"></div>
                </div>
                <div class="bg-white  col-12 col-lg-2 border p-3 text-center"><a
                            href="index.php?option=com_djevents&view=category&layout=edit">
                        <img alt="<?php echo JText::_('COM_DJEVENTS_ADD_CATEGORY'); ?>"
                             src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/add-category.svg"/>
                        <div class="text-muted mt-2"><?php echo JText::_('COM_DJEVENTS_ADD_CATEGORY'); ?></div>
                    </a>
                    <div style="clear: both"></div>
                </div>
                <div class="bg-white  col-12 col-lg-2 border p-3 text-center"><a
                            href="index.php?option=com_djevents&view=event&layout=edit">
                        <img alt="<?php echo JText::_('COM_DJEVENTS_ADD_EVENT'); ?>"
                             src="<?php echo JURI::base(); ?>components/com_djevents/assets/images/add-duration.svg"/>
                        <div class="text-muted mt-2"><?php echo JText::_('COM_DJEVENTS_ADD_EVENT'); ?></div>
                    </a>
                    <div style="clear: both"></div>
                </div>

            </div>

        </div>
        <div class="col-12 col-lg-4  px-lg-4">
            <div class="bg-white border">
                <?php if (DJLicense::isPro()) : ?>
                    <?php echo DJLicense::getSubscription('Events'); ?>
                <?php endif; ?>
            </div>
        </div>
    </div>

    <input type="hidden" name="option" value="com_djevents"/>
    <input type="hidden" name="c" value="cpanel"/>
    <input type="hidden" name="task" value=""/>
    <input type="hidden" name="view" value="cpanel"/>
    <input type="hidden" name="boxchecked" value="0"/>
    <?php echo JHTML::_('form.token'); ?>
</form>
<?php echo DJEVENTSFOOTER; ?>
