<div class="row">
    <div class="col-md-3">
    </div>
    <div class="col-md-6">
        <div class="box box-primary box-solid">
            <div class="box-header with-border">
                <h3 class="box-title">Edit Document</h3>
                <!-- /.box-tools -->
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                <?php
                $errors = session()->getFlashdata('errors');
                if (!empty($errors)) { ?>
                    <div class="alert alert-danger alert-dismissible">
                        <h5>Ada Kesalahan !!!</h5>
                        <ul>
                            <?php foreach ($errors as $key => $value) { ?>
                                <li><?= esc($value) ?></li>
                            <?php } ?>
                        </ul>
                    </div>
                <?php } ?>
                <?php
                echo form_open_multipart('pelatihan_karyawan/insert');
                helper('text');
                $no_pelatihan_karyawan = date('ymds') . '-' . random_string('alnum', 4);
                ?>


                <div class="form-group">
                    <label>Category</label>
                    <select name="id_kategori_pelatihan_karyawan" class="form-control">
                        <option value="">--Choose Category--</option>
                        <?php foreach ($kategori_pelatihan_karyawan as $key => $value) { ?>
                            <option value="<?= $value['id_kategori_pelatihan_karyawan'] ?>"><?= $value['nama_kategori_pelatihan_karyawan'] ?></option>
                        <?php } ?>

                    </select>
                </div>

                <div class="form-group">
                    <label>Nama</label>
                    <input name="nama_pelatihan_karyawan" class="form-control" placeholder="Nama Document">
                </div>


                <div class="form-group">
                    <label>File</label>
                    <input type="file" name="file_pelatihan_karyawan" class="form-control">
                    <label class="text-danger">File Harus Format .PDF</label>
                </div>

                <div class="form-group">
                    <button type="submit" class="btn btn-primary">Simpan</button>
                    <a href="<?= base_url('pelatihan_karyawan') ?>" class="btn btn-success">Kembali</a>
                </div>

                <?php echo form_close() ?>


            </div>
        </div>
        <!-- /.box -->
    </div>

    <div class="col-md-3">
    </div>
</div>