<?php
/*------------------------------------------------------------------------
# com_zhosmmap - Zh OpenStreetMap
# ------------------------------------------------------------------------
# author:    Dmitry Zhuk
# copyright: Copyright (C) 2011 zhuk.cc. All Rights Reserved.
# license:   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
# website:   http://zhuk.cc
# Technical Support Forum: http://forum.zhuk.cc/
-------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');


use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;


    $wa  = $this->document->getWebAssetManager();

    $wa->registerAndUseStyle('zhosmmaps.dashboard.style', URI::root() .'administrator/components/com_zhosmmap/assets/css/utils.css');

    $imgpath = URI::root() .'components/com_zhosmmap/assets/icons/';
    $utilspath = URI::root() .'administrator/components/com_zhosmmap/assets/utils/';

?>

<div class="zhosm-panel-container">
    <div class="row">
    
        <div class="col-md-6 module-wrapper">       
            <div class="card mb-6">
                <div class="card-header">
                    <div class="zhosm-header-title">
                        <h2><?php echo Text::_('COM_ZHOSMMAP_VISUALIZATION_DATA'); ?></h2>
                    </div>
                </div>
                <div class="card-body">
                    <div class="row-striped">
                        <div>
                            
                        <div class="zhosm-panel-icon-wrapper">
                            <div class="zhosm-panel-icon">
                                <a href="<?php echo Route::_('index.php?option=com_zhosmmap&view=datasqls'); ?>"> 
                                    <img src="<?php echo $utilspath ?>data_sql.png" title="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_VISUALIZATION_DATA_SQL'); ?>" alt="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_VISUALIZATION_DATA_SQL'); ?>"> 
                                    <span><?php echo Text::_('COM_ZHOSMMAP_VISUALIZATION_DATA_SQL'); ?></span> 
                                </a>
                            </div>        
                        </div>  
                        </div>                     
                    </div>
                </div>        
            </div> 
        </div>

        <div class="col-md-6 module-wrapper">       
            <div class="card mb-6">
                <div class="card-header">
                    <div class="zhosm-header-title">
                        <h2><?php echo Text::_('COM_ZHOSMMAP_VISUALIZATION_DATASERVER'); ?></h2>
                    </div>
                </div>
                <div class="card-body">
                    <div class="row-striped">
                        <div>
                            
                        <div class="zhosm-panel-icon-wrapper">
                            <div class="zhosm-panel-icon">
                                <a href="<?php echo Route::_('index.php?option=com_zhosmmap&view=dataservers'); ?>"> 
                                    <img src="<?php echo $utilspath ?>visualize_server.png" title="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_VISUALIZATION_VISUAL_STRUCTS'); ?>" alt="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_VISUALIZATION_VISUAL_STRUCTS'); ?>"> 
                                    <span><?php echo Text::_('COM_ZHOSMMAP_VISUALIZATION_DATASERVER'); ?></span> 
                                </a>
                            </div>        
                        </div>  
                        </div>                     
                    </div>
                </div>        
            </div> 
        </div>
        
    </div>
    
    <div class="row">
        <div class="col-md-12 module-wrapper gy-2">       
            <div class="card mb-12">
                <div class="card-header">
                    <div class="zhosm-header-title">
                        <h2><?php echo Text::_('COM_ZHOSMMAP_VISUALIZATION'); ?></h2>
                    </div>
                </div>
                <div class="card-body">
                    <div class="row-striped">
                        <div>
                            
                        <div class="zhosm-panel-icon-wrapper">
                            <div class="zhosm-panel-icon">
                                <a href="<?php echo Route::_('index.php?option=com_zhosmmap&view=visualstructs'); ?>"> 
                                    <img src="<?php echo $utilspath ?>visualize_structure.png" title="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_VISUALIZATION_VISUAL_STRUCTS'); ?>" alt="<?php echo Text::_('COM_ZHOSMMAP_SUBMENU_VISUALIZATION_VISUAL_STRUCTS'); ?>"> 
                                    <span><?php echo Text::_('COM_ZHOSMMAP_VISUALIZATION_VISUAL_STRUCTS'); ?></span> 
                                </a>
                            </div>        
                        </div>  
                        </div>                     
                    </div>
                </div>        
            </div> 
        </div>
    </div>
     
</div>
