<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="#"><?= $this->lang->line('menu_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> <?= $this->lang->line('button_form_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</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 class="text-uppercase"><?= $this->lang->line('gambar') ?></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 class="text-uppercase"><?= $this->lang->line('judul') ?></label></b><br>
                            <label><?= ((isset($data)) ? $data->judul : '') ?></label>
                        </div>
                    </div>
                    <div class="row mt-2">
                        <div class="col-md-12">
                            <b><label class="text-uppercase"><?= $this->lang->line('isi') ?></label></b>
                            <label><?= ((isset($data)) ? $data->content : '') ?></label>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
