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

  <?= $this->section('title') ?>
  <title>DASHBOARD &mdash; KUA WAY BUNGUR</title>
  <?= $this->endSection() ?>

  <?= $this->section('content') ?>
  <section class="section">
      <div class="section-header">
          <h1>Dashboard</h1>
      </div>

      <div class="section-body">
          <div class="row">
              <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                  <a href="<?= base_url('user') ?>">
                      <div class="card card-statistic-1">
                          <div class="card-icon bg-success">
                              <i class="fas fa-user"></i>
                          </div>
                          <div class="card-wrap">
                              <div class="card-header">
                                  <h4>Admin</h4>
                              </div>
                              <div class="card-body">
                                  <?= countData('admin') ?>
                              </div>
                          </div>
                      </div>
                  </a>
              </div>
              <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                  <a href="<?= base_url('berita') ?>">
                      <div class="card card-statistic-1">
                          <div class="card-icon bg-primary">
                              <i class="fas fa-newspaper"></i>
                          </div>
                          <div class="card-wrap">
                              <div class="card-header">
                                  <h4>Berita</h4>
                              </div>
                              <div class="card-body">
                                  <?= countData('berita') ?>
                              </div>
                          </div>
                      </div>
                  </a>
              </div>
              <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                  <a href="<?= base_url('agenda') ?>">
                      <div class="card card-statistic-1">
                          <div class="card-icon bg-danger">
                              <i class="fab fa-leanpub"></i>
                          </div>
                          <div class="card-wrap">
                              <div class="card-header">
                                  <h4>Agenda</h4>
                              </div>
                              <div class="card-body">
                                  <?= countData('agenda') ?>
                              </div>
                          </div>
                      </div>
                  </a>
              </div>
              <div class="col-lg-3 col-md-6 col-sm-6 col-12">
                  <a href="<?= base_url('gallery') ?>">
                      <div class="card card-statistic-1">
                          <div class="card-icon bg-warning">
                              <i class="fab fa-envira"></i>
                          </div>
                          <div class="card-wrap">
                              <div class="card-header">
                                  <h4>Gallery</h4>
                              </div>
                              <div class="card-body">
                                  <?= countData('galeri') ?>
                              </div>
                          </div>
                      </div>
                  </a>
              </div>

              <div class="col-lg-12 col-md-12 col-sm-12 col-12 ">
                  <div class="card bg-primary shadow-lg">
                      <div class="card-body text-center">
                          <h1 class="text-white text-uppercase">Hi, <?= userLogin()->nama_admin ?></h1>
                          <h2 class="text-white bg-primary text-uppercase ">
                              <marquee behavior="scroll" direction="left" scrollamount="5">Selamat Datang di Control
                                  Panel
                                  -
                                  KUA WAY BUNGUR</marquee>
                          </h2>
                      </div>
                  </div>
              </div>

          </div>
      </div>
  </section>
  <?= $this->endSection() ?>