<div class="card">
  <div class="card-header with-icon">
    <i class="fa fa-tachometer-alt mr10"></i>{__("Dashboard")}
  </div>
  <div class="card-body">
    {if $user->_is_admin}
      <div id="admin-chart-dashboard" class="admin-chart mb20"></div>
      <div class="row">
        <div class="col-sm-6">
          <div class="stat-panel bg-gradient-primary">
            <div class="stat-cell narrow">
              <i class="fa fa-users bg-icon"></i>
              <span class="text-xxlg">{$insights['users']}</span><br>
              <span class="text-lg">{__("Users")}</span><br>
              <a href="{$system['system_url']}/{$control_panel['url']}/users">{__("Manage Users")}</a>
            </div>
          </div>
        </div>
        <div class="col-sm-6">
          <div class="stat-panel bg-gradient-teal">
            <div class="stat-cell narrow">
              <i class="fa fa-clock bg-icon"></i>
              <span class="text-xxlg">{$insights['online']}</span><br>
              <span class="text-lg">{__("Online")}</span><br>
              <a href="{$system['system_url']}/{$control_panel['url']}/users/online">{__("Manage Online")}</a>
            </div>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-lg-4">
          <div class="stat-panel bg-gradient-warning">
            <div class="stat-cell narrow">
              <i class="fa fa-clock bg-icon"></i>
              <span class="text-xxlg">{$insights['pending']}</span><br>
              <span class="text-lg">{__("Pending")}</span><br>
              <a href="{$system['system_url']}/{$control_panel['url']}/users/pending">{__("Manage Pending")}</a>
            </div>
          </div>
        </div>
        <div class="col-lg-4">
          <div class="stat-panel bg-gradient-danger">
            <div class="stat-cell narrow">
              <i class="fa fa-envelope bg-icon"></i>
              <span class="text-xxlg">{$insights['not_activated']}</span><br>
              <span class="text-lg">{__("Not Activated")}</span><br>
              <a href="{$system['system_url']}/{$control_panel['url']}/users/not_activated">{__("Manage Not Activated")}</a>
            </div>
          </div>
        </div>
        <div class="col-lg-4">
          <div class="stat-panel bg-gradient-red">
            <div class="stat-cell narrow">
              <i class="fa fa-minus-circle bg-icon"></i>
              <span class="text-xxlg">{$insights['banned']}</span><br>
              <span class="text-lg">{__("Banned")}</span><br>
              <a href="{$system['system_url']}/{$control_panel['url']}/users/banned">{__("Manage Banned")}</a>
            </div>
          </div>
        </div>
      </div>
    {/if}
    <div class="row">
      <div class="col-lg-4">
        <div class="stat-panel bg-gradient-gray">
          <div class="stat-cell narrow">
            <i class="fa fa-clipboard-user bg-icon"></i>
            <span class="text-xxlg">{$insights['vistors']}</span><br>
            <span class="text-lg">{__("Total Visits")}</span><br>
          </div>
        </div>
      </div>
      <div class="col-lg-4">
        <div class="stat-panel bg-gradient-gray">
          <div class="stat-cell narrow">
            <i class="fa fa-clipboard-user bg-icon"></i>
            <span class="text-xxlg">{$insights['vistors_today']}</span><br>
            <span class="text-lg">{__("Today Visits")}</span><br>
          </div>
        </div>
      </div>
      <div class="col-lg-4">
        <div class="stat-panel bg-gradient-gray">
          <div class="stat-cell narrow">
            <i class="fa fa-clipboard-user bg-icon"></i>
            <span class="text-xxlg">{$insights['vistors_month']}</span><br>
            <span class="text-lg">{__("This Month Visits")}</span><br>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-sm-6">
        <div class="stat-panel bg-gradient-success">
          <div class="stat-cell narrow">
            <i class="fa fa-newspaper bg-icon"></i>
            <span class="text-xxlg">{$insights['posts']}</span><br>
            <span class="text-lg">{__("Posts")}</span><br>
            <a href="{$system['system_url']}/{$control_panel['url']}/posts">{__("Manage Posts")}</a>
          </div>
        </div>
      </div>
      <div class="col-sm-6">
        <div class="stat-panel bg-gradient-success">
          <div class="stat-cell narrow">
            <i class="fa fa-comments bg-icon"></i>
            <span class="text-xxlg">{$insights['comments']}</span><br>
            <span class="text-lg">{__("Comments")}</span><br>
            <a href="{$system['system_url']}/{$control_panel['url']}/reports">{__("Manage Reports")}</a>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-lg-4">
        <div class="stat-panel bg-gradient-primary">
          <div class="stat-cell narrow">
            <i class="fa fa-flag bg-icon"></i>
            <span class="text-xxlg">{$insights['pages']}</span><br>
            <span class="text-lg">{__("Pages")}</span><br>
            <a href="{$system['system_url']}/{$control_panel['url']}/pages">{__("Manage Pages")}</a>
          </div>
        </div>
      </div>
      <div class="col-lg-4">
        <div class="stat-panel bg-gradient-primary">
          <div class="stat-cell narrow">
            <i class="fa fa-users bg-icon"></i>
            <span class="text-xxlg">{$insights['groups']}</span><br>
            <span class="text-lg">{__("Groups")}</span><br>
            <a href="{$system['system_url']}/{$control_panel['url']}/groups">{__("Manage Groups")}</a>
          </div>
        </div>
      </div>
      <div class="col-lg-4">
        <div class="stat-panel bg-gradient-primary">
          <div class="stat-cell narrow">
            <i class="fa fa-calendar bg-icon"></i>
            <span class="text-xxlg">{$insights['events']}</span><br>
            <span class="text-lg">{__("Events")}</span><br>
            <a href="{$system['system_url']}/{$control_panel['url']}/events">{__("Manage Events")}</a>
          </div>
        </div>
      </div>
    </div>
    {if $user->_is_admin}
      <div class="row">
        <div class="col-sm-6">
          <div class="stat-panel bg-gradient-info">
            <div class="stat-cell narrow">
              <i class="fa fa-comments bg-icon"></i>
              <span class="text-xxlg">{$insights['messages']}</span><br>
              <span class="text-lg">{__("Messages")}</span><br>
            </div>
          </div>
        </div>
        <div class="col-sm-6">
          <div class="stat-panel bg-gradient-cyan">
            <div class="stat-cell narrow">
              <i class="fa fa-globe bg-icon"></i>
              <span class="text-xxlg">{$insights['notifications']}</span><br>
              <span class="text-lg">{__("Notifications")}</span><br>
            </div>
          </div>
        </div>
      </div>
    {/if}
  </div>
</div>