<div class="modal-content">
    <div class="modal-header">
        <h5 class="modal-title"><?php echo @$title ?></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    </div>
    <div class="modal-body">
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Kode Pegawai</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="kode" name="kode" value="<?php echo @$kode ?>" required>
                <span style="color: red;"><i>digunakan sebagai username saat login</i></span>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Nama Pegawai</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="pegawai" name="pegawai" value="<?php echo @$pegawai ?>" required>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Jenis Kelamin</label>
            <div class="col-sm-9">
                <div class="form-check">
                    <input class="form-check-input" type="radio" name="jekel" id="jekel" value="L" <?php if (@$jekel=='L') echo 'checked' ?> required>
                    <label class="form-check-label">Laki-Laki</label>
                </div>
                <div class="form-check">
                    <input class="form-check-input" type="radio" name="jekel" id="jekel" value="P" <?php if (@$jekel=='P') echo 'checked' ?> required>
                    <label class="form-check-label">Perempuan</label>
                </div>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Telepon/HP</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="telepon" name="telepon" value="<?php echo @$telepon ?>" required>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Email</label>
            <div class="col-sm-9">
                <input type="email" class="form-control" id="email" name="email" value="<?php echo @$email ?>">
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Alamat</label>
            <div class="col-sm-9">
                <textarea class="form-control" id="alamat" name="alamat"><?php echo @$alamat ?></textarea>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Kata Sandi</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="password" name="password" value="<?php echo @$password ?>" required>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-3 col-form-label">Level Akses</label>
            <div class="col-sm-3">
                <select class="form-control" name="level" id="level">
                    <option value="Kasir" <?php if (@$level=='Kasir') echo 'selected' ?>>Kasir</option>
                    <option value="Administrator" <?php if (@$level=='Administrator') echo 'selected' ?>>Administrator</option>
                </select>
            </div>
        </div>
    </div>
    <input type="hidden" name="id" id="id" value="<?php echo @$kode ?>">
    <input type="hidden" name="aksi" id="aksi" value="<?php echo @$aksi ?>">
    <div class="modal-footer right-content-between">
        <button type="submit" class="btn bg-gradient-success"><i class="fa fa-save"></i> <?php echo @$aksi ?></button>
        <button type="button" class="btn bg-gradient-danger" data-dismiss="modal"><i class="fa fa-times"></i> Batal</button>
    </div>
</div>