        <!-- Content Wrapper -->
        <div class="content-wrapper">
            <section class="content-header">
                <h1>RFC 2350 <small>Manajemen Dokumen</small></h1>
            </section>

            <section class="content">
                <a href="<?= site_url('dashboard/tambah_rfc2350'); ?>" class="btn btn-sm btn-primary">
                    <i class="fa fa-plus"></i> Tambah Dokumen RFC 2350
                </a>
                <br/><br/>

                <!-- Flash Messages -->
                <?php if ($this->session->flashdata('success')): ?>
                    <div class="alert alert-success alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert">&times;</button>
                        <?= $this->session->flashdata('success'); ?>
                    </div>
                <?php endif; ?>

                <?php if ($this->session->flashdata('error')): ?>
                    <div class="alert alert-danger alert-dismissible">
                        <button type="button" class="close" data-dismiss="alert">&times;</button>
                        <?= $this->session->flashdata('error'); ?>
                    </div>
                <?php endif; ?>

                <div class="box box-primary">
                    <div class="box-header">
                        <h3 class="box-title">Daftar Dokumen RFC 2350</h3>
                    </div>
                    <div class="box-body">                        
                        <table id="table45" class="table table-striped table-bordered nowrap" style="width:100%">
                            <thead>
                                <tr>
                                    <th>No</th>
                                    <th>Tanggal</th>
                                    <th>Judul Dokumen</th>
                                    <th>Penulis</th>
                                    <th>Kategori</th>
                                    <th>File</th>
                                    <th>Status</th>
                                    <th>Opsi</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $no = 1; foreach ($rfc2350 as $r): ?>
                                    <tr>
                                        <td><?php echo $no++; ?></td>
                                        <td><?php echo date('d/m/Y H:i', strtotime($r->rfc2350_tanggal)); ?></td>
                                        <td>
                                            <a href="<?php echo base_url('dokumen/rfc2350/' . $r->rfc2350_doc); ?>" target="_blank">
                                                <?= $r->rfc2350_nama; ?>
                                            </a>
                                        </td>
                                        <td><?php echo $r->pengguna_nama; ?></td>
                                        <td><?php echo $r->kategori_rfc2350_nama; ?></td>
                                        <td>
                                            <a href="<?php echo base_url('dokumen/rfc2350/' . $r->rfc2350_doc); ?>" target="_blank" class="btn btn-info btn-sm">
                                                <i class="fa fa-download"></i> Unduh
                                            </a>
                                        </td>
                                        <td>
                                            <span class='label <?php echo ($r->rfc2350_status == "publish") ? "label-success" : "label-danger"; ?>'>
                                                <?php echo ($r->rfc2350_status == "publish") ? "Dipublikasikan" : "Tidak Dipublikasikan"; ?>
                                            </span>
                                        </td>
                                        <td>
                                            <a href="<?php echo site_url('dashboard/edit_rfc2350/' . $r->rfc2350_id); ?>" class="btn btn-warning btn-sm"><i class="fa fa-pencil"></i> Edit</a> &nbsp;
                                            <a href="<?php echo site_url('dashboard/rfc2350_hapus/' . $r->rfc2350_id); ?>" class="btn btn-danger btn-sm" onclick="return confirm('Hapus dokumen ini?');"><i class="fa fa-trash"></i> Hapus</a>
                                        </td>
                                    </tr>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </section>
        </div>
