<?php $__env->startSection('title','Edit Keterangan'); ?>

<?php $__env->startSection('vendor-styles'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('css/plugins/forms/validation/form-validation.css')); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('vendors/css/forms/select/select2.min.css')); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('vendors/css/pickers/pickadate/pickadate.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-styles'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('css/pages/page-users.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<!-- users edit start -->
<section class="users-edit">
    <div class="row">
        <div class="col-12 col-sm-8">
            <div class="card">
                <div class="card-content">
                    <div class="card-body">
                        <form method="post" action="<?php echo e(route('skjd.update', [$skjd->id])); ?>" autocomplete="off" class="form" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <?php echo method_field('PUT'); ?>
                            <div class="row">
                                <div class="col-12">
                                    <div class="form-group">
                                        <div class="controls">
                                            <label>Keterangan</label>
                                            <input type="text" name="keterangan" minlength="3" id="keterangan" class="form-control" placeholder="Keterangan"
                                                value="<?php echo e(old('keterangan')); ?>" required
                                                data-validation-required-message="Keterangan wajib diisi."
                                                data-validation-minlength-message="Harus terdiri dari minimal 3 karakter.">
                                                <?php $__errorArgs = ['keterangan'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-12 d-flex flex-sm-row flex-column justify-content-start border-bottom pb-1 mb-1">
                                    <button type="submit" class="btn btn-danger glow mb-1 mb-sm-0 mr-0 mr-sm-1">Simpan</button>
                                    <button type="reset" class="btn btn-light">Cancel</button>
                                </div>
                                <div class="col-12">
                                    <h5>Biodata Pemohon</h5>
                                </div>
                                <div class="col-12 col-sm-6">
                                    <div class="form-group">
                                        <div class="controls">
                                            <label>NIK</label>
                                            <input type="text" name="nik" id="nik" class="form-control" placeholder="NIK"
                                                value="<?php echo e($skjd->user->nik); ?>" disabled>
                                                <small class="text-warning">Hubungi admin untuk mengubah NIK.</small>
                                                <?php $__errorArgs = ['nik'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="controls">
                                            <label>Nama</label>
                                            <input type="text" name="name" minlength="3" id="name" class="form-control" placeholder="Nama"
                                                value="<?php echo e($skjd->user->name, old('name')); ?>" disabled
                                                data-validation-required-message="Nama wajib diisi."
                                                data-validation-minlength-message="Harus terdiri dari minimal 3 karakter.">
                                                <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="controls">
                                            <label class="d-block">Jenis Kelamin</label>
                                            <div class="custom-control-inline">
                                                <div class="radio mr-1">
                                                    <input type="radio" name="jenis_kelamin" id="radio1" value="Laki-Laki" disabled
                                                        <?php echo e(($skjd->user->profil->jenis_kelamin) == 'Laki-Laki' ? 'checked' : ''); ?> >
                                                    <label for="radio1">Laki-Laki</label>
                                                </div>
                                                <div class="radio">
                                                    <input type="radio" name="jenis_kelamin" id="radio2" value="Perempuan" disabled
                                                        <?php echo e(($skjd->user->profil->jenis_kelamin) == 'Perempuan' ? 'checked' : ''); ?>>
                                                    <label for="radio2">Perempuan</label>
                                                </div>
                                                <?php $__errorArgs = ['jenis_kelamin'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <span class="invalid-feedback" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="controls">
                                            <label>Tempat Lahir</label>
                                            <input type="text" name="tempat_lahir" minlength="3" id="tempat_lahir" class="form-control" placeholder="Tempat Lahir"
                                                value="<?php echo e($skjd->user->profil->tempat_lahir); ?>" disabled
                                                data-validation-required-message="Tempat Lahir wajib diisi."
                                                data-validation-minlength-message="Harus terdiri dari minimal 3 karakter.">
                                                <?php $__errorArgs = ['tempat_lahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </div>
                                    <div class="form-group position-relative has-icon-left">
                                        <div class="controls">
                                            <label>Tanggal Lahir</label>
                                            <input type="text" name="tanggal_lahir" class="form-control pickadate-profil" value="<?php echo e($skjd->user->profil->tanggal_lahir); ?>" placeholder="Pilih Tanggal" disabled>
                                            <div class="form-control-position">
                                                <i class='bx bx-calendar' style="top: 24px"></i>
                                            </div>
                                            <?php $__errorArgs = ['tanggal_lahir'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-12 col-sm-6">
                                    <div class="form-group">
                                        <div class="controls">
                                            <label>Agama</label>
                                            <select class="select2 form-control" id="agama" name="agama" class="form-control" disabled>
                                                <option value="" selected disabled>Pilih Agama</option>
                                                <option <?php echo e(($skjd->user->profil->agama) == 'Islam' ? 'selected' : ''); ?> value="Islam">Islam</option>
                                                <option <?php echo e(($skjd->user->profil->agama) == 'Katolik' ? 'selected' : ''); ?> value="Katolik">Katolik</option>
                                                <option <?php echo e(($skjd->user->profil->agama) == 'Kristen' ? 'selected' : ''); ?> value="Kristen">Kristen</option>
                                                <option <?php echo e(($skjd->user->profil->agama) == 'Hindu' ? 'selected' : ''); ?> value="Hindu">Hindu</option>
                                                <option <?php echo e(($skjd->user->profil->agama) == 'Budha' ? 'selected' : ''); ?> value="Budha">Budha</option>
                                                <option <?php echo e(($skjd->user->profil->agama) == 'Konghucu' ? 'selected' : ''); ?> value="Konghucu">Konghucu</option>
                                                <option <?php echo e(($skjd->user->profil->agama) == 'ILainnyaslam' ? 'selected' : ''); ?> value="Lainnya">Lainnya</option>
                                            </select>
                                            <?php $__errorArgs = ['agama'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </div>
                                    <fieldset class="form-group">
                                        <div class="controls">
                                            <label>Alamat</label>
                                            <textarea class="form-control" name="alamat" id="alamat" rows="4" disabled><?php echo e($skjd->user->profil->alamat); ?></textarea>                            
                                            <?php $__errorArgs = ['alamat'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </fieldset>
                                    <div class="form-group">
                                        <div class="controls">
                                            <label>No. Telepon</label>
                                            <input type="text" id="telepon" minlength="10" maxlength="15" class="form-control" name="telepon" placeholder="No. Telepon" 
                                                value="<?php echo e($skjd->user->profil->telepon, old('telepon')); ?>" disabled
                                                data-validation-required-message="Nomor Telepon wajib diisi."
                                                data-validation-containsnumber-regex="(\d)+"
                                                data-validation-containsnumber-message="Masukkan Nomor yang valid."
                                                data-validation-minlength-message="Harus terdiri dari minimal 10 karakter."
                                                data-validation-maxlength-message="Harus terdiri dari maksimal 15 karakter.">
                                                <?php $__errorArgs = ['telepon'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="controls">
                                            <label>Pekerjaan Anda</label>
                                            <input type="text" name="pekerjaan" minlength="3" id="pekerjaan" class="form-control" placeholder="Pekerjaan"
                                                value="<?php echo e($skjd->user->profil->pekerjaan); ?>" disabled
                                                data-validation-required-message="Pekerjaan wajib diisi."
                                                data-validation-minlength-message="Harus terdiri dari minimal 3 karakter.">
                                                <?php $__errorArgs = ['pekerjaan'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="card">
                <div class="card-content">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-12">
                                <h5>Data Keterangan Janda / Duda</h5>
                            </div>
                            <div class="col-12">
                                <div class="form-group">
                                    <div class="controls">
                                        <label>Jumlah Anak</label>
                                        <input type="text" class="form-control"
                                            value="<?php echo e($skjd->jumlah_anak); ?>" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="controls">
                                        <label>Nama Suami / Istri</label>
                                        <input type="text" class="form-control"
                                            value="<?php echo e($skjd->nama_suami_istri); ?>" disabled>
                                    </div>
                                </div>
                                <div class="form-group position-relative has-icon-left">
                                    <div class="controls">
                                        <label>Tanggal Meninggal Suami / Istri</label>
                                        <input type="text" class="form-control pickadate-profil" 
                                            value="<?php echo e($skjd->tanggal_meninggal); ?>" disabled>
                                        <div class="form-control-position">
                                            <i class='bx bx-calendar' style="top: 24px"></i>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="controls">
                                        <label>Tempat Meninggal</label>
                                        <input type="text" class="form-control"
                                            value="<?php echo e($skjd->tempat_meninggal); ?>" disabled>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="controls">
                                        <label>Instansi</label>
                                        <input type="text" class="form-control"
                                            value="<?php echo e($skjd->instansi); ?>" disabled>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-12 col-sm-4">
            <div class="card">
                <div class="card-header border-bottom pb-1 mb-2">
                    <h4>KTP</h4>
                </div>
                <div class="card-content">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-12">
                                <img src="<?php echo e(asset('storage/'.$skjd->scan_ktp)); ?>" alt="users avatar"
                                class="users-avatar-shadow" height="100%" width="100%">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="card">
                <div class="card-header border-bottom mb-2">
                    <h4>KK</h4>
                </div>
                <div class="card-content">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-12">
                                <img src="<?php echo e(asset('storage/'.$skjd->scan_kk)); ?>" alt="users avatar"
                                class="users-avatar-shadow" height="100%" width="100%">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- users edit ends -->
<?php $__env->stopSection(); ?>


<?php $__env->startSection('vendor-scripts'); ?>
<script src="<?php echo e(asset('vendors/js/forms/select/select2.full.min.js')); ?>"></script>
<script src="<?php echo e(asset('vendors/js/forms/validation/jqBootstrapValidation.js')); ?>"></script>
<script src="<?php echo e(asset('vendors/js/pickers/pickadate/picker.js')); ?>"></script>
<script src="<?php echo e(asset('vendors/js/pickers/pickadate/picker.date.js')); ?>"></script>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('page-scripts'); ?>
<script src="<?php echo e(asset('js/scripts/pages/page-users.js')); ?>"></script>
<script src="<?php echo e(asset('js/scripts/navs/navs.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.contentLayoutMaster', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u1728740/public_html/e-surat/resources/views/skjd/edit.blade.php ENDPATH**/ ?>