<?php
/* Smarty version 3.1.33, created on 2020-07-06 19:12:18
  from '/Users/codeworldweb.com/websites/uvocorp/content/themes/dashboard/modules/index.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5f037792dd5e48_35012435',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '8a45c948a87b250d4170738b314f85d735c4a546' => 
    array (
      0 => '/Users/codeworldweb.com/websites/uvocorp/content/themes/dashboard/modules/index.tpl',
      1 => 1594060129,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f037792dd5e48_35012435 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>
 

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_12800714215f037792dd0ec1_09206478', 'content_wrapper');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, 'dashboard/layout.tpl');
}
/* {block 'content_wrapper'} */
class Block_12800714215f037792dd0ec1_09206478 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'content_wrapper' => 
  array (
    0 => 'Block_12800714215f037792dd0ec1_09206478',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<div class="card">
    <div class="card-header with-icon">
        <i class="fa fa-plug mr10"></i>
        <strong>Modules</strong>
    </div>

    <div class="card-body">

       <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['modules_list']->value, 'module');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['module']->value) {
?>
            <div class="card mb-2">
                <div class="card-body row align-items-center">
                    <div class="col-md-2">
                        <img class="card-img-top" src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->logo, ENT_QUOTES, 'UTF-8');?>
" alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->displayName, ENT_QUOTES, 'UTF-8');?>
">
                    </div>
                    <div class="col-md-7">
                        <h4 class="card-title mt0 pt0 mb5"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->displayName, ENT_QUOTES, 'UTF-8');?>
</h4>
                        <p class="card-text"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->description, ENT_QUOTES, 'UTF-8');?>
</p>
                    </div>
                    <div class="col-md-3 text-center">
                        <?php if (!$_smarty_tpl->tpl_vars['module']->value->active) {?>
                            <button data-module="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8');?>
" class="btn btn-success js_install-module">Install</button>
                        <?php } else { ?>
                            <button data-module="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['module']->value->name, ENT_QUOTES, 'UTF-8');?>
" class="btn btn-danger js_uninstall-module">Uninstall</button>
                        <?php }?>
                    </div>
                </div>
            </div>
       <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    </div>
</div>
<?php
}
}
/* {/block 'content_wrapper'} */
}
