<?php
require_once __DIR__.'/../include/autoload.php';
require_once __DIR__.'/../include/Page.Class.php';

$title="Dashboard";

$Page               = new Page();
$Page->Title        = $title;

$Page->SetIcon('pie_chart');

$cards_tot = GetTotals("cards")->tot;
$cards_tot = GetTotals("cards", "status = 1")->tot;

$Body=<<<EOD

<div class="row stats-row">
    <div class="col-lg-4 col-md-12">
        <div class="card card-transparent stats-card">
            <div class="card-body">
                <div class="stats-info">
                    <h5 class="card-title">{$cards_tot}</h5>                                            
                    <p class="stats-text">Cards totali</p>
                </div>
                
            </div>
        </div>
    </div>
    <div class="col-lg-4 col-md-12">
        <div class="card card-transparent stats-card">
            <div class="card-body">
                <div class="stats-info">
                    <h5 class="card-title">{$cards_active_tot}</h5>
                    <p class="stats-text">Cards attive</p>
                </div>
                
            </div>
        </div>
    </div>
    
</div>






EOD;


echo $Page->Output($Body);

