

<?php $__env->startSection('content'); ?>
<div class="card card-outline-info">
  <div class="card-header">
      <h4 class="m-b-0 text-white">KYC</h4>
  </div>
  <div class="card-body">
    <div class="x_content">
            <?php echo Form::open(['method' => 'POST','id'=> 'register_frm', 'data-parsley-validate'=>'', 'enctype'=>'multipart/form-data', 'url' => [url('/users/updateKyc')]]); ?>

            <input type="hidden" name="updateKyc" value="updateKyc">
            <h3 class="card-title">Account Detail</h3>
            <div class="row">
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('name_bank_accnt', 'Account Name*', ['class' => 'control-label']); ?>

                        <?php if($user->name_bank_accnt!=''): ?>
                        <?php echo Form::text('name_bank_accnt', $user->name_bank_accnt, ['class' => 'form-control form-control-normal', 'placeholder' => 'Account Name', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::text('name_bank_accnt', $user->name_bank_accnt, ['class' => 'form-control form-control-normal', 'placeholder' => 'Account Name']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('name_bank_accnt')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('name_bank_accnt')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('bank_accnt_no', 'Bank Account No*', ['class' => 'control-label']); ?>

                        <?php if($user->bank_accnt_no!=''): ?>
                        <?php echo Form::text('bank_accnt_no', $user->bank_accnt_no, ['class' => 'form-control form-control-normal', 'placeholder' => 'Account No', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::text('bank_accnt_no', $user->bank_accnt_no, ['class' => 'form-control form-control-normal', 'placeholder' => 'Account No']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('bank_accnt_no')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('bank_accnt_no')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('bank_name', 'Bank Name*', ['class' => 'control-label']); ?>

                        <?php if($user->bank_name!=''): ?>
                        <?php echo Form::text('bank_name', $user->bank_name, ['class' => 'form-control form-control-normal', 'placeholder' => 'Bank Name', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::text('bank_name', $user->bank_name, ['class' => 'form-control form-control-normal', 'placeholder' => 'Bank Name']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('bank_name')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('bank_name')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('branch_name', 'Branch Name*', ['class' => 'control-label']); ?>

                        <?php if($user->branch_name!=''): ?>
                        <?php echo Form::text('branch_name', $user->branch_name, ['class' => 'form-control form-control-normal', 'placeholder' => 'Branch Name', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::text('branch_name', $user->branch_name, ['class' => 'form-control form-control-normal', 'placeholder' => 'Branch Name']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('branch_name')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('branch_name')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('accnt_type', 'Account Type*', ['class' => 'control-label']); ?>

                        <?php if($user->accnt_type!=''): ?>
                        <?php echo Form::select('accnt_type', ['Saving', 'Current', 'NRE', 'NRO', 'Other'], $user->accnt_type, ['class' => 'form-control form-control-normal', 'placeholder' => 'Select', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::select('accnt_type', ['Saving', 'Current', 'NRE', 'NRO', 'Other'], $user->accnt_type, ['class' => 'form-control form-control-normal', 'placeholder' => 'Select']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('accnt_type')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('accnt_type')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('ifsc', 'IFSC*', ['class' => 'control-label']); ?>

                        <?php if($user->ifsc!=''): ?>
                        <?php echo Form::text('ifsc', $user->ifsc, ['class' => 'form-control form-control-normal', 'placeholder' => 'IFSC', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::text('ifsc', $user->ifsc, ['class' => 'form-control form-control-normal', 'placeholder' => 'IFSC']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('ifsc')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('ifsc')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('panno', 'Pan no.*', ['class' => 'control-label']); ?>

                        <?php if($user->panno!=''): ?>
                        <?php echo Form::text('panno', $user->panno, ['class' => 'form-control form-control-normal', 'placeholder' => 'Pan No.', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::text('panno', $user->panno, ['class' => 'form-control form-control-normal', 'placeholder' => 'Pan No.']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('panno')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('panno')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <h3 class="card-title">Documents Uploads</h3>
            <div class="row">
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('pan_file', 'Pan Card.*', ['class' => 'control-label']); ?>

                        <?php if($user->pan_file!=''): ?>
                        <img src="<?php echo e(url('/storage/userimages/'.$user->pan_file)); ?>" width="200" height="200px" /> 
                        <?php else: ?>
                        <input type="file" name="pan_file" class="form-control">
                        <span>Less than 2 MB. Pan no. must be clearly visible</span>
                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('pan_file')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('pan_file')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('pass_file', 'Passbook or Cancelled Cheque.*', ['class' => 'control-label']); ?>

                        <?php if($user->pass_file!=''): ?>
                        <img src="<?php echo e(url('/storage/userimages/'.$user->pass_file)); ?>" width="200" height="200px" /> 
                        <?php else: ?>
                        <input type="file" name="pass_file" class="form-control">
                        <span>Less than 2 MB. Bank Name and Account no. must match with your given account no. and must be clearly visible as this will be used for credit transfer.</span>
                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('pass_file')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('pass_file')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>

            </div>
            <h3 class="card-title">Nominee Detail</h3>
            <div class="row">
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('nom_name', 'Nominee Name*', ['class' => 'control-label']); ?>

                        <?php if($user->nom_name!=''): ?>
                        <?php echo Form::text('nom_name', $user->nom_name, ['class' => 'form-control form-control-normal', 'placeholder' => 'Nominee Full Name here', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::text('nom_name', $user->nom_name, ['class' => 'form-control form-control-normal', 'placeholder' => 'Nominee Full Name here']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('nom_name')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('nom_name')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('nom_relation', 'Nominee Relation*', ['class' => 'control-label']); ?>

                        <?php if($user->nom_relation!=''): ?>
                        <?php echo Form::text('nom_relation', $user->nom_relation, ['class' => 'form-control form-control-normal', 'placeholder' => 'Nominee Relation here', 'readonly'=>'true']); ?>

                        <?php else: ?>
                        <?php echo Form::text('nom_relation', $user->nom_relation, ['class' => 'form-control form-control-normal', 'placeholder' => 'Nominee Relation here']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('nom_relation')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('nom_relation')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php echo Form::label('nom_dob', 'Nominee Date of Birth*', ['class' => 'control-label']); ?>

                        <?php if($user->nom_dob!=''): ?>
                            <?php echo Form::text('nom_dob', $user->nom_dob, ['class' => 'form-control form-control-normal mydatepicker', 'placeholder' => 'Nominee Date of Birth', 'readonly'=>'true']); ?>

                        <?php else: ?>
                            <?php echo Form::text('nom_dob', $user->nom_dob, ['class' => 'form-control form-control-normal mydatepicker', 'placeholder' => 'Nominee Date of Birth']); ?>

                        <?php endif; ?>
                        <p class="help-block"></p>
                        <?php if($errors->has('nom_dob')): ?>
                            <p class="help-block error">
                                <?php echo e($errors->first('nom_dob')); ?>

                            </p>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="ln_solid"></div>
        <div class="form-group">
          <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
            <button type="submit" class="btn btn-success">Update</button>
          </div>
        </div>
    <?php echo Form::close(); ?>

    </div>
  </div>
</div>
<!-- /page content -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('javascript'); ?>
    <!-- Date picker plugins css -->
    <link href="<?php echo e(url('assets')); ?>/plugins/bootstrap-datepicker/bootstrap-datepicker.min.css" rel="stylesheet" type="text/css" />
    <!-- Daterange picker plugins css -->
    <link href="<?php echo e(url('assets')); ?>/plugins/timepicker/bootstrap-timepicker.min.css" rel="stylesheet">
    <link href="<?php echo e(url('assets')); ?>/plugins/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
    <!-- Date Picker Plugin JavaScript -->
    <script src="<?php echo e(url('assets')); ?>/plugins/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
    <!-- Date range Plugin JavaScript -->
    <script src="<?php echo e(url('assets')); ?>/plugins/timepicker/bootstrap-timepicker.min.js"></script>
    <script src="<?php echo e(url('assets')); ?>/plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
    <script src="<?php echo e(url('assets')); ?>/js/jqBootstrapValidation.js"></script>
    <link href="<?php echo e(url('assets')); ?>/plugins/EasyAutocomplete/easy-autocomplete.min.css" rel="stylesheet">
    <script src="<?php echo e(url('assets')); ?>/plugins/EasyAutocomplete/jquery.easy-autocomplete.min.js"></script>
    <script src="<?php echo e(url('assets')); ?>/js/typeahead.bundle.js"></script>
    <!-- Parsley -->
    <script>
    $(document).ready(function() {
      jQuery('.mydatepicker, #datepicker').datepicker({format: 'dd-mm-yyyy'});
      $('#state-dropdown').on('change', function() {
            var state_id = this.value;
            $("#city-dropdown").html('');
            $.ajax({
                url:"<?php echo e(url('get-cities-by-state')); ?>",
                type: "POST",
                data: {
                state_id: state_id,
                _token: '<?php echo e(csrf_token()); ?>' 
                },
                dataType : 'json',
                success: function(result){
                $('#city-dropdown').html('<option value="">Select City</option>'); 
                $.each(result.cities,function(key,value){
                $("#city-dropdown").append('<option value="'+value.id+'">'+value.name+'</option>');
                });
                }
            });
        });
    });</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH G:\xampp\htdocs\yeselectricv.loc\resources\views/users/kyc.blade.php ENDPATH**/ ?>