<?php
/* Smarty version 3.1.33, created on 2022-10-26 14:10:13
  from '/home/schowbvz/dashboard.scholarly-essays.com/content/themes/dashboard/my-sites/sites.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_63593fc5c27647_14345989',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ae315aed04ecd16c4faea8935a065093fe666b5f' => 
    array (
      0 => '/home/schowbvz/dashboard.scholarly-essays.com/content/themes/dashboard/my-sites/sites.tpl',
      1 => 1656689818,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_63593fc5c27647_14345989 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="card-header with-icon">
    <i class="fa fa-globe mr10"></i>
    <strong>Sites</strong>
    <?php if ($_smarty_tpl->tpl_vars['sub_view']->value == "add") {?> 
        &rsaquo; <strong>Add New</strong>
    <?php }?>

    <div class="pull-right flip">
        <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/my-sites/add" class="btn btn-info">
            <i class="fa fa-plus"></i> Add New Site
        </a>
    </div>
</div>

<div class="card-body">
    <?php if ($_smarty_tpl->tpl_vars['total_sites']->value) {?>
        <div class="table-responsive">
            <table class="table <?php if ($_smarty_tpl->tpl_vars['theme_mode_night']->value) {?>table-dark<?php }?> table-striped table-bordered table-hover js_dataTable">
                <thead>
                    <tr>
                        <td>Site ID</td>
                        <td>Site Name</td>
                        <td>URL</td>
                        <td>Orders</td>
                        <td>Customers</td>
                        <td>Payments</td>
                        <td>Actions</td>
                    </tr>
                </thead>
                <tbody>
                    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['sites']->value, 'site');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['site']->value) {
?>
                        <tr>
                            <td><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/my-sites/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
/edit">#<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
</a></td>
                            <td><span class="order-subject"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['name'], ENT_QUOTES, 'UTF-8');?>
</span></td>
                            <td><span class="order-subject"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['domain'], ENT_QUOTES, 'UTF-8');?>
</span></td>
                            <td><span class="green_currency"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['orders'], ENT_QUOTES, 'UTF-8');?>
</span></td>
                            <td><span class="green_currency"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['customers'], ENT_QUOTES, 'UTF-8');?>
</span></td>
                            <td><span class="green_currency">$<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['payments'], ENT_QUOTES, 'UTF-8');?>
</span></td>
                            <td>
                                <button data-toggle="tooltip" data-placement="top" title="Delete" class="btn btn-xs btn-danger js_admin-deleter" data-handle="site" data-id="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
">
                                    <i class="fa fa-trash-alt"></i>
                                </button>
                                <a data-toggle="tooltip" data-placement="top" title="Edit" href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['base_uri']->value, ENT_QUOTES, 'UTF-8');?>
/my-sites/<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['site']->value['id'], ENT_QUOTES, 'UTF-8');?>
/edit" class="btn btn-xs btn-info">
                                    <i class="fa fa-pencil-alt"></i>
                                </a>
                            </td>
                        </tr>
                    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
                </tbody>
            </table>

            <?php echo $_smarty_tpl->tpl_vars['pager']->value;?>

        </div>
    <?php } else { ?>
        <div class="text-center x-muted"> 
            <i class="fa fa-globe fa-4x"></i>
            <p class="mb10"><strong>No sites to show</strong></p>
        </div>
    <?php }?>
</div><?php }
}
