<?php $__env->startSection('title','Tambah SKBPM'); ?>

<?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">
<form method="post" action="<?php echo e(route('skbpm.store')); ?>" autocomplete="off" class="form" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <?php echo method_field('post'); ?>
    <div class="card">
        <div class="card-content">
        <div class="card-body">
            <div class="row">
                <div class="col-12 col-sm-6">
                    <div class="form-group">
                        <div class="controls">
                            <label>NIK</label>
                            <input id="nik" type="number" class="form-control <?php $__errorArgs = ['nik'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" class="form-control" name="nik" 
                                value="<?php echo e(auth()->user()->nik, old('nik')); ?>" readonly 
                                autocomplete="nik" autofocus placeholder="Nomor KTP">
                                <?php if($errors->has('nik')): ?>
                                <span class="invalid-feedback" role="alert">
                                    <strong><?php echo e($errors->first('nik')); ?></strong>
                                </span>
                                <?php endif; ?>
                        </div>
                    </div>
                </div>
                <div class="col-12 col-sm-6">
                    <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(auth()->user()->name, old('name')); ?>" readonly>
                                <?php if($errors->has('name')): ?>
                                <div class="help-block text-danger">
                                    <ul role="alert">
                                        <li><?php echo e($errors->first('name')); ?></li>
                                    </ul>
                                </div>
                                <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </div>
    </div>
    <div class="card">
        <div class="card-content">
        <div class="card-body">
            <div class="row">
                <div class="col-12">
                    <div class="form-group">
                        <label>Scan KTP</label>
                        <div class="form-group">
                            <div class="controls">
                                <div class="custom-file">
                                    <input type="file" class="form-controll <?php $__errorArgs = ['scan_ktp'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> custom-file-input" id="scan_ktp" name="scan_ktp">
                                    <label class="custom-file-label" for="scan_ktp">Pilih foto</label>
                                    <small class="text-warning">Foto KTP diusakan jelas dan tidak terpotong.</small>
                                </div>
                                <?php if($errors->has('scan_ktp')): ?>
                                <div class="help-block text-danger">
                                    <ul role="alert">
                                        <li><?php echo e($errors->first('scan_ktp')); ?></li>
                                    </ul>
                                </div>
                                <?php endif; ?>
                            </div>
                        </div>    
                    </div>
                    <div class="form-group">
                        <label>Scan KK</label>
                        <div class="form-group">
                            <div class="controls">
                                <div class="custom-file">
                                    <input type="file" class="form control <?php $__errorArgs = ['scan_kk'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> custom-file-input" id="scan_kk" name="scan_kk">
                                    <label class="custom-file-label" for="scan_kk">Pilih foto</label>
                                    <small class="text-warning">Foto KK diusakan jelas dan tidak terpotong.</small>
                                </div>
                                <?php if($errors->has('scan_kk')): ?>
                                <div class="help-block text-danger">
                                    <ul role="alert">
                                        <li><?php echo e($errors->first('scan_kk')); ?></li>
                                    </ul>
                                </div>
                                <?php endif; ?>
                            </div>
                        </div>    
                    </div>
                </div>
                <div class="col-12 d-flex flex-sm-row flex-column justify-content-start mt-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>
        </div>
        </div>
    </div>  
</form>
</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>
<script src="<?php echo e(asset('js/scripts/forms/validation/form-validation.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/skbpm/create.blade.php ENDPATH**/ ?>