<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_shift_karyawan" class="form-control" value="<?= md5($data->id_shift_karyawan) ?>">

    <div class="form-group">
        <label><?= $this->lang->line('nama_karyawan'); ?></label>
        <p class="font-weight-bold"><?= $data->nik." - ".$data->nama_karyawan ?></p>
    </div>
    <div class="form-group">
        <label><?= $this->lang->line('tgl'); ?></label>
        <p class="font-weight-bold"><?= date_format(date_create($data->tanggal),"d-m-Y") ?></p>
    </div>
    <div class="form-group">
        <label>Shift</label>
        <?php
            $jam_masuk  = date_format(date_create($data->jam_masuk),"H:i");
            $jam_pulang = date_format(date_create($data->jam_pulang),"H:i");
        ?>
        <p class="font-weight-bold"><?= $data->kode_shift." - ".$data->nama_shift."(".$jam_masuk." - ".$jam_pulang.")" ?></p>
    </div>
</div>
<div class="card-footer">
    <div class="row">
        <?php
            if ($cek_absen > 0) { ?>
                <div class="col-md-12">
                    <div class="alert alert-info" role="alert">
                        <i class="fa fa-info-circle" aria-hidden="true"></i> 
                        <?= $this->lang->line('karyawan_sudah_absen'); ?>
                    </div>
                </div>
        <?php }else{ ?>
            <div class="col-md-7 text-left">
                <div id="message_jadwal_shift"></div>
            </div>
            <div class="col-md-5 text-right">
                <button class="btn btn-danger ladda-button" id="tombol_hapus" data-style="expand-left" onclick="hapus()">
                    <i class="fa fa-trash"></i> <?= $this->lang->line('button_form_hapus'); ?>
                </button>
            </div>
        <?php } ?>
    </div>
</div>