

<div class="content-header">
    <div class="row align-items-center">
        <div class="content-header-left col-md-6 col-12 mb-md-0 mb-1">
            <h3 class="content-header-title"><?= $judul ?></h3>
            <div class="row breadcrumbs-top">
                <div class="breadcrumb-wrapper col-12">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">Informasi</a>
                        </li>
                        <li class="breadcrumb-item active"><?= $judul ?>
                        </li>
                    </ol>
                </div>
            </div>
        </div>
        <div class="content-header-right col-md-6 col-12">
            <div class="float-md-right">
                <a href="<?= route('informasi.berita.home') ?>" class="btn btn-secondary"><i class="fa fa-arrow-left"></i> KEMBALI</a>
                <?php
                    if ($this->session->userdata('level_user') == '1') {
                ?>
                    <a href="<?= route("informasi.berita.form.edit")."/".md5($data->id_berita)  ?>">
                        <button type="button" class="btn_tambah btn btn-warning"><i class="fa fa-edit"></i> EDIT BERITA</button>
                    </a>
                <?php
                    }
                ?>
            </div>
        </div>
    </div>
</div>

<div class="card card-rounded">
    <div class="card-content">
        <div id="detail" class="card-body">
            <div class="row">
                <div class="col-md-3">
                    <b><label>GAMBAR BERITA</label></b><br>
                    <?php 
                        $foto = $this->config->item('base_image').'imagebiodata?_t=logo&_d='.$data->gambar;
                    ?>
                    <img src="<?= $foto ?>" class="img-thumbnail" alt="Gambar Berita">
                </div>
                <div class="col-md-9">
                    <div class="row">
                        <div class="col-md-12">
                            <b><label>JUDUL BERITA</label></b><br>
                            <label><?= ((isset($data))? $data->judul :'') ?></label>
                        </div>
                    </div>
                    <div class="row mt-2">
                        <div class="col-md-12">
                            <b><label>ISI BERITA</label></b>
                            <label><?= ((isset($data))? $data->content : '') ?></label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>






