<?= $this->extend('admin/layouts/main') ?>

<?= $this->section('content') ?>
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1><?= $heading?></h1>
                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <?= $breadcrumb ?>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <!-- Small boxes (Stat box) -->
            <div class="row">
                <div class="col-lg-3 col-md-6">
                    <div class="info-box bg-primary bg-gr">
                        <span class="info-box-icon"><i class="fas fa-sitemap"></i></span>

                        <div class="info-box-content">
                            <h5 class="info-box-text">Seccions Calculador</h5>
                            <span class="info-box-number text-light info-box-number-home"><?php foreach($countSeccions as $row); echo $row->id;  ?></span>
                            <span class="progress-description">
                                <a href="<?= base_url() ?>/seccions" class="text-light">Més informació <i class="fa fa-arrow-right"></i></a>
                            </span>
                        </div>
                        <!-- /.info-box-content -->
                    </div>
                </div>
                <!-- ./col -->
                <div class="col-lg-3 col-md-6">
                    <div class="info-box bg-primary bg-gr">
                        <span class="info-box-icon"><i class="fas fa-list"></i></span>

                        <div class="info-box-content">
                            <h5 class="info-box-text">Pressupostos</h5>
                            <span class="info-box-number text-light info-box-number-home"><?php foreach($countPressu as $row); echo $row->id;  ?></span>
                            <span class="progress-description">
                                <a href="<?= base_url() ?>/pressupostos" class="text-light">Més informació <i class="fa fa-arrow-right"></i></a>
                            </span>
                        </div>
                        <!-- /.info-box-content -->
                    </div>
                </div>
                <!-- ./col -->
                <div class="col-lg-3 col-md-6">
                    <div class="info-box bg-primary bg-gr">
                        <span class="info-box-icon"><i class="fas fa-user-shield"></i></span>

                        <div class="info-box-content">
                            <h5 class="info-box-text">Clients</h5>
                            <span class="info-box-number text-light info-box-number-home"><?php foreach($countClients as $row); echo $row->id;  ?></span>
                            <span class="progress-description">
                                <a href="<?= base_url() ?>/clients" class="text-light">Més informació <i class="fa fa-arrow-right"></i></a>
                            </span>
                        </div>
                        <!-- /.info-box-content -->
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="info-box bg-primary bg-gr">
                        <span class="info-box-icon"><i class="ion-person-add"></i></span>

                        <div class="info-box-content">
                            <h5 class="info-box-text">Usuaris</h5>
                            <span class="info-box-number text-light info-box-number-home"><?php foreach($count as $row); echo $row->id;  ?></span>
                            <span class="progress-description">
                                <a href="<?= base_url() ?>/users" class="text-light">Més informació <i class="fa fa-arrow-right"></i></a>
                            </span>
                        </div>
                        <!-- /.info-box-content -->
                    </div>
                </div>
                <!-- ./col -->
                <!-- ./col -->
                <!--<div class="col-lg-3 col-6">
                    <div class="small-box bg-danger">
                        <div class="inner">
                            <h3>65</h3>

                            <p>Unique Visitors</p>
                        </div>
                        <div class="icon">
                            <i class="ion ion-pie-graph"></i>
                        </div>
                        <a href="#" class="small-box-footer">More info <i class="fas fa-arrow-circle-right"></i></a>
                    </div>
                </div>-->
                <!-- ./col -->
            </div>
        </div>
    </section>
<?= $this->endSection() ?>