<?php $__env->startSection('content'); ?>

     <!-- =====================================
        ==== Start settings  -->
<br>
        <section class="settings">
            <div class="container-fluid">
                   <div class="row">
                    <div class="col-md-11">
                        <div class="wel-text">
                            <div class="path">
                                <a href="<?php echo e(url('admin/home')); ?>"><?php echo app('translator')->getFromJson('home.home'); ?></a>
                                <span>/</span>
                                <a href="<?php echo e(url('admin/users')); ?>"><?php echo app('translator')->getFromJson('home.users'); ?></a>
                                <span>/</span><?php echo app('translator')->getFromJson('home.update'); ?>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-1">
                        <div class="dropdown">
                          <button class="btn btn-defualt dropdown-toggle" type="button" data-toggle="dropdown"><?php echo app('translator')->getFromJson('home.links'); ?>
                              <span class="caret"></span></button>
                              <ul class="dropdown-menu" style="padding: 10px">
                                <li  style="padding: 10px"><a href="<?php echo e(URL::to('ar/admin/setting')); ?>"><i class="icon-gear"></i><?php echo app('translator')->getFromJson('home.general_settings'); ?></a></li>
                                <li  style="padding: 5px"><a href="<?php echo e(URL::to('ar/admin/reports_browsing')); ?>"><i class="icon-copy"></i> <?php echo app('translator')->getFromJson('home.full_report'); ?></a></li>
                            </ul>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-lg-10 col-md-6">
                        <div class="item">
                            <div class="head">
                                <h5> <?php echo app('translator')->getFromJson('home.update'); ?></h5>
                            </div>
                            <form class="form-horizontal form-validate-jquery" method="post" action="<?php echo e(route('users.update',$user_info)); ?>" enctype='multipart/form-data'  >
                            <input name="_method" type="hidden" value="PUT">
                            <input name="use" type="hidden" value="<?php echo e(@$user_info->id); ?>">
                            <?php echo csrf_field(); ?>
                                <?php if($errors->any()): ?>
                                <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="alert alert-danger alert-dismissible" >
                                    <a href="#" class="close" data-dismiss="alert" aria-label="close" style="right: 5px;">&times;</a><?php echo e($error); ?>

                                </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                                <?php if(Session::has('success')): ?>
                                <div class="alert alert-success alert-dismissible">
                                    <a href="#" class="close" data-dismiss="alert" aria-label="close" style="right: 5px;">&times;</a><?php echo e(Session::get('success')); ?>

                                </div>
                                <?php endif; ?>

                                <!-- title ar input -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.fname'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                    <div class="col-lg-12">
                                        <input type="text" name="fname" class="form-control" placeholder="<?php echo app('translator')->getFromJson('home.fname'); ?>" value="<?php echo e(@$user_info->fname); ?>">
                                    </div>
                                </div>
                                <!-- /title ar input -->

                                <!-- title ar input -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.lname'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                    <div class="col-lg-12">
                                        <input type="text" name="lname" class="form-control"  placeholder="<?php echo app('translator')->getFromJson('home.lname'); ?>" value="<?php echo e(@$user_info->lname); ?>">
                                    </div>
                                </div>
                                <!-- /title ar input -->

                                <!-- Family Name input -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.family_name'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                    <div class="col-lg-12">
                                        <input type="text" name="family_name" class="form-control"  placeholder="<?php echo app('translator')->getFromJson('home.family_name'); ?>" value="<?php echo e(@$user_info->family_name); ?>">
                                    </div>
                                </div>
                                <!-- /Family Name input -->
                             <!-- content ar input -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.email'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                    <div class="col-lg-12">
                                      <input type="email" name="email" class="form-control"  placeholder="<?php echo app('translator')->getFromJson('home.email'); ?>" value="<?php echo e(@$user_info->email); ?>">
                                    </div>
                                </div>
                                <!-- /content ar input -->
                                <!-- content en input -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.country'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                    <div class="col-lg-12">
                                    <select name="country_id" class="form-control">
                                        <option value="null"><?php echo app('translator')->getFromJson('home.address'); ?></option>
                                             <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e(@$country->id); ?>" <?php if($country->id == $user_info->country_id): ?> selected <?php endif; ?>><?php echo e(@$country->translations->first()->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                    </div>
                                </div>
                                <!-- /content en input -->
                                   <!-- content en input -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.city'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                    <div class="col-lg-12">
                                    <select name="city_id" class="form-control">
                                        <option value="null"><?php echo app('translator')->getFromJson('home.address'); ?></option>
                                             <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $city): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e(@$city->id); ?>" <?php if($city->id == $user_info->city_id): ?> selected <?php endif; ?>><?php echo e(@$city->translation->first()->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                    </div>
                                </div>
                                <!-- /content en input -->
                                <!-- Meta Tags input -->
                                <div class="form-group">
                                    <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.phone'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                    <div class="col-lg-12">
                                        <input type="text" name="phone" class="form-control" placeholder="<?php echo app('translator')->getFromJson('home.phone'); ?>" value="<?php echo e(@$user_info->phone); ?>">
                                    </div>
                                </div>
                                <!-- /Meta Tags input -->
                                <!-- password input -->
                                <div class="form-group">
                                     <div class="col-lg-3">
                                    <label class="control-label"><?php echo app('translator')->getFromJson('home.password'); ?><span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span> </label> <br>
                                      <small> - الأحرف الكبيرة الإنجليزية (A - Z) <br>- الأحرف الصغيرة الإنجليزية (a - z) <br>- الأساس 10 أرقام (0 - 9) </small>
                                    </div>
                                    <div class="col-lg-12">
                                        <div class="input-group">
                                        <?php if(LaravelLocalization::getCurrentLocale() == 'en'): ?>
                                        <input type="text" class="form-control" name="password" placeholder="<?php echo app('translator')->getFromJson('home.password'); ?>" id="input_password"  autocomplete="off">
                                          <span class="input-group-btn">
                                                <button class="btn btn-default legitRipple" type="button" id="generate_password">
                                                  <?php echo app('translator')->getFromJson('home.generate'); ?>
                                                  <li class="glyphicon glyphicon-eye-open"></li>
                                                </button>
                                            </span>
                                        <?php else: ?>
                                        <span class="input-group-btn">
                                              <button class="btn btn-default legitRipple" type="button" id="generate_password">
                                                <?php echo app('translator')->getFromJson('home.generate'); ?>
                                                <li class="glyphicon glyphicon-eye-open"></li>
                                                </button>
                                          </span>
                                            <input type="text" class="form-control" name="password" placeholder="<?php echo app('translator')->getFromJson('home.password'); ?>" id="input_password"  autocomplete="off">
                                        <?php endif; ?>
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.password_confirmation'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                    <div class="col-lg-12">
                                        <input type="password" name="password_confirmation" class="form-control"  id="input_password_confirm">
                                    </div>
                                </div>
                                <!--/password input -->

                            <!-- Family Name input -->
                            <div class="form-group">
                                <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.birthdate'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                <div class="col-lg-12">
                                    <input type="date" name="birthdate" class="form-control"  placeholder="<?php echo app('translator')->getFromJson('home.birthdate'); ?>" value="<?php echo e(@$user_info->birthdate); ?>">

                                  
                                </div>
                            </div>
                            <!-- /Family Name input -->
                            <!-- Family Name input -->
                            <div class="form-group">
                                <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.gander'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                                <div class="col-lg-12">
                                 <select name="gander" class="form-control">
                                     <option value="male" <?php if($user_info->gander == 'male'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.male'); ?></option>
                                     <option value="female" <?php if($user_info->gander == 'female'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.female'); ?></option>
                                 </select>
                             </div>
                         </div>
                         <!-- /Family Name input -->
                         <!-- Logo uploader -->
                         <div class="form-group">
                            <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.avatar'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>"> *</span></label>
                            <div class="col-lg-12">
                                <input type="file" name="image" class="file-styled" >
                            </div>
                        </div>
                        <!-- /Logo uploader -->
                        <!-- title ar input -->
                        <div class="form-group">
                            <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.organization_experience'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                            <div class="col-lg-12">
                               
                                <select class="form-control" name="organization_experience">
                                    <option><?php echo app('translator')->getFromJson('home.select_one'); ?></option>
                                    <option value="6month" <?php if(@$user_info->user_info->organization_experience =='6month'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.6month'); ?></option>
                                    <option value="6_to_12_month" <?php if(@$user_info->user_info->organization_experience =='6_to_12_month'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.6_to_12_month'); ?></option>
                                    <option value="1_to_2_years" <?php if(@$user_info->user_info->organization_experience =='1_to_2_years'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.1_to_2_years'); ?></option>
                                    <option value="2_to_more" <?php if(@$user_info->user_info->organization_experience =='2_to_more'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.2_to_more'); ?></option>
                                </select>
                            </div>
                        </div>
                        <!-- /title ar input -->
                        <!-- title ar input -->
                        <div class="form-group">
                            <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.sabbatical_rate'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                            <div class="col-lg-12">
                              
                                <select class="form-control" name="sabbatical_rate">
                                    <option><?php echo app('translator')->getFromJson('home.select_one'); ?></option>
                                    <option value="30%_50%" <?php if(@$user_info->user_info->sabbatical_rate =='30%_50%'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.30%_50%'); ?></option>
                                    <option value="51%_71%" <?php if(@$user_info->user_info->sabbatical_rate =='51%_71%'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.51%_71%'); ?></option>
                                    <option value="72%_more" <?php if(@$user_info->user_info->sabbatical_rate =='72%_more'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.72%_more'); ?></option>
                                </select>
                            </div>
                        </div>
                        <!-- /title ar input -->
                        <!-- title ar input -->
                        <div class="form-group">
                            <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.working_status'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                            <div class="col-lg-12">
                               <select class="form-control" name="working_status">
                                    <option><?php echo app('translator')->getFromJson('home.select_one'); ?></option>
                                    <option value="non-working" <?php if(@$user_info->user_info->working_status =='non-working'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.non-working'); ?></option>
                                    <option value="student" <?php if(@$user_info->user_info->working_status =='student'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.student'); ?></option>
                                    <option value="employee" <?php if(@$user_info->user_info->working_status =='employee'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.employee'); ?></option>
                                </select>
                            </div>
                        </div>
                        <!-- /title ar input -->
                        <!-- title ar input -->
                        <div class="form-group">
                            <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.special_needs'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                            <div class="col-lg-12">
                                <select class="form-control" name="special_needs">
                                    <option><?php echo app('translator')->getFromJson('home.select_one'); ?></option>
                                    <option value="no"  <?php if(@$user_info->user_info->special_needs =='no'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.no'); ?></option>
                                    <option value="yes"  <?php if(@$user_info->user_info->special_needs =='yes'): ?> selected <?php endif; ?>><?php echo app('translator')->getFromJson('home.yes'); ?></option>
                                </select>
                            </div>
                        </div>
                        <!-- /title ar input -->
                        <!-- title ar input -->
                        <div class="form-group">
                            <label class="control-label col-lg-3"><?php echo app('translator')->getFromJson('home.protoflio_url'); ?> <span class="text-danger" title="<?php echo app('translator')->getFromJson('home.required'); ?>">*</span></label>
                            <div class="col-lg-12">
                                <input type="text" name="protoflio_url" class="form-control"  placeholder="<?php echo app('translator')->getFromJson('home.protoflio_url'); ?>" value="<?php echo e(@$user_info->user_info->url); ?>">
                            </div>
                        </div>
                        <!-- /title ar input -->
                                <button type="submit" class="btn btn-primary"><?php echo app('translator')->getFromJson('home.save'); ?> <i class="icon-arrow-left13 position-right"></i></button>

                            </form>
                        </div>
                    </div>
                    <div class="col-md-2">
                    <img src="<?php echo e(asset($user_info->image)); ?>" class="img-responsive" style="max-width:100%" >
                    </div>


                </div>
            </div>
        </section>

        <!-- End settings  ====
        ======================================= -->


<?php $__env->stopSection(); ?>

<?php $__env->startSection('jsCode'); ?>
    <script>
    $('#generate_password').click(function(){
        var randomstring = Math.random().toString(36).slice(-8);
        $('#input_password').val(randomstring);input_password_confirm
        $('#input_password_confirm').val(randomstring);


    });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('panel.layouts.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\orgnize_it\resources\views/panel/users/edit.blade.php ENDPATH**/ ?>