<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>
    <input type="hidden" id="id" class="form-control" value="<?= ((isset($data))?md5($data->id):'') ?>">
    <div class="form-group">
        <label><?= $this->lang->line('nama_karyawan'); ?></label><br>
        <label class="font-weight-bold"><?= $data->nik." - ".$data->nm_karyawan ?></label>
    </div>

    <div class="form-group">
        <label><?= $this->lang->line('adm_cabang'); ?></label><br>
        <?php
            if($data->id_cabang == 'all'){
                echo "<label class='font-weight-bold'>Semua Cabang</label> ";
            }else{
                $id_cabang_arr = explode(",",$data->id_cabang);

                foreach($id_cabang_arr as $row){
                    echo "<label class='font-size-base badge badge-primary'>".$cabang_arr[$row]['nm_cabang']."</label> ";
                }
            }
        ?>
    </div>
</div>
<div class="card-footer">
    <div class="row">
        <div class="col-md-7 text-left">
            <div id="message"></div>
        </div>
        <div class="col-md-5 text-right">
            <button id="btn_new_input" class="btn" style="display:none"><?= $this->lang->line('button_form_tambah_baru'); ?></button>
            <button class="btn_save ladda-button" data-style="expand-left"></button>
        </div>
    </div><!-- ./row -->
</div>

