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

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

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

          <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="<?= base_url('dashboard') ?>">Dashboard</a></div>
              <div class="breadcrumb-item">Profile</div>
          </div>
      </div>

      <div class="section-body">
          <h2 class="section-title">Kelola Profile</h2>
          <p class="section-lead">
              Halaman ini berisi data profile.
          </p>
          <!--notifikasi berhasil-->
          <div class="swal" data-swal="<?= session('success') ?>"></div>
          <!--notifikasi berhasil-->
          <div class="row">
              <div class="col-12 col-md-12 col-lg-12">
                  <div class="card">
                      <div class="card-header">
                          <div class="section-header-button">
                              <a href="<?= base_url('profile/edit') ?>" type="button" class="btn btn-info sm">
                                  <i class="fas fa-add"></i> Edit Profile
                              </a>
                          </div>
                      </div>
                      <div class="card-body">
                          <div class="section-title mt-0">Sejarah</div>
                          <div class="card border border-1 shadow-none">
                              <div class="card-body">
                                  <div> <?= $profileData->sejarah ?>
                                  </div>
                              </div>
                          </div>
                          <div class="section-title">VISI - MISI</div>
                          <div class="card border border-1 shadow-none">
                              <div class="card-body">
                                  <div> <?= $profileData->visi_misi ?>
                                  </div>
                              </div>
                          </div>
                          <div class="section-title">Struktur Organisasi</div>
                          <div class="card border border-1 shadow-none">
                              <div class="card-body">
                                  <div>
                                      <img alt="image"
                                          src="<?= base_url() ?>/foto_profile/<?= $profileData->gambar_organisasi ?>"
                                          class="img-fluid rounded" loading="lazy">
                                  </div>
                              </div>
                          </div>
                      </div>
                  </div>
              </div>
  </section>
  <?= $this->endSection() ?>