<div class="card-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
    <h3 class="title modal-title"></h3>
</div>
<div id="form_input" class="card-body" disabled>
    <div class="form-group">
        <div class="row">
            <div class="col-md-12">
                <label><?= $this->lang->line('nama_sertifikat_pelatihan') ?></label><br><?= $data->nama_sertifikat ?>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="row">
            <div class="col-md-12">
                <label><?= $this->lang->line('penyelenggara') ?></label><br><?= $data->penyelenggara ?>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="row">
            <div class="col-md-6">
                <label><?= $this->lang->line('tgl_berlaku') ?></label>
                <?php
                if (isset($data)) {
                    if ($data->tgl_berlaku != "0000-00-00") {
                        $tgl_berlaku = date('d-m-Y', strtotime($data->tgl_berlaku));
                    } else {
                        $tgl_berlaku = "";
                    }
                } else {
                    $tgl_berlaku = "";
                }
                ?><br><?= $tgl_berlaku ?>
            </div>

            <div class="col-md-6">
                <label><?= $this->lang->line('tgl_berakhir') ?></label>
                <?php
                if (isset($data)) {
                    if ($data->tgl_berakhir != "0000-00-00") {
                        $tgl_berakhir = date('d-m-Y', strtotime($data->tgl_berakhir));
                    } else {
                        $tgl_berakhir = "";
                    }
                } else {
                    $tgl_berakhir = "";
                }
                ?><br><?= $tgl_berakhir ?>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="row">
            <div class="col-md-12">
                <label><?= $this->lang->line('deskripsi') ?></label><br><?= $data->deskripsi ?>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="row">
            <div class="col-md-6">
                <label>Upload File</label>
                <?php
                if (empty($data->file)) {
                    $file = "";
                } else {
                    $file = $this->config->item('base_image') . 'imagebiodata?_t=file&_d=' . $data->file;
                }
                ?><a href="<?= $file ?>" target="_blank"><img src="<?= $file ?>" height="300"></a>
            </div>
        </div>
    </div>
</div>
<div class="card-footer">
    <div class="row">
        <div class="col-md-6 text-left">
            <div id="message_modal"></div>
        </div>
        <div class="col-md-6 text-right">
            <button type="button" class="btn btn-secondary" data-dismiss="modal"><i class="fa fa-close"></i> <?= $this->lang->line('button_form_tutup') ?></button>
        </div><!-- ./row -->
    </div>
