<?php $__env->startPush('css'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('backend/app-assets/css/plugins/forms/validation/form-validation.css')); ?>">
<style type="text/css">
	.col-6{
        margin-top: 10px;
    }
    .required{
        font-weight: 800;
        color: red;
    }
    label{
        font-weight: 600;
    }
</style>
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>

<div class="content-wrapper">
        <div class="content-header row">
          <div class="content-header-left col-md-9 col-12 mb-2">
            <div class="row breadcrumbs-top">
              <div class="col-12">
                <h2 class="content-header-title float-left mb-0">Account Settings</h2>
                <div class="breadcrumb-wrapper col-12">
                  <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="index.html">Home</a>
                    </li>
                    <li class="breadcrumb-item"><a href="#">Pages</a>
                    </li>
                    <li class="breadcrumb-item active"> Account Settings
                    </li>
                  </ol>
                </div>
              </div>
            </div>
          </div>
          <div class="content-header-right text-md-right col-md-3 col-12 d-md-block d-none">
            <div class="form-group breadcrum-right">
              <div class="dropdown">
                <button class="btn-icon btn btn-primary btn-round btn-sm dropdown-toggle waves-effect waves-light" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="feather icon-settings"></i></button>
                <div class="dropdown-menu dropdown-menu-right"><a class="dropdown-item" href="#">Chat</a><a class="dropdown-item" href="#">Email</a><a class="dropdown-item" href="#">Calendar</a></div>
              </div>
            </div>
          </div>
        </div>
        <div class="content-body"><!-- account setting page start -->
			<section id="page-account-settings">
			  <div class="row">
			    <!-- left menu section -->
			    <div class="col-md-3 mb-2 mb-md-0">
			      <ul class="nav nav-pills flex-column mt-md-0 mt-1">
			        <li class="nav-item">
			          <a class="nav-link d-flex py-75 active" id="account-pill-general" data-toggle="pill" href="#account-vertical-general" aria-expanded="true">
			            <i class="feather icon-globe mr-50 font-medium-3"></i>
			            General
			          </a>
			        </li>
			        <li class="nav-item">
			          <a class="nav-link d-flex py-75" id="account-pill-password" data-toggle="pill" href="#account-vertical-password" aria-expanded="false">
			            <i class="feather icon-lock mr-50 font-medium-3"></i>
			            Change Password
			          </a>
			        </li>
			        <?php if($employee): ?>
			        <li class="nav-item">
			          <a class="nav-link d-flex py-75" id="account-pill-info" data-toggle="pill" href="#account-vertical-info" aria-expanded="false">
			            <i class="feather icon-info mr-50 font-medium-3"></i>
			            Employee Info
			          </a>
			        </li>
			        <?php endif; ?>
			      </ul>
			    </div>
			    <!-- right content section -->
			    <div class="col-md-9">
			      <div class="card">
			        <div class="card-content">
			          <div class="card-body">
			            <div class="tab-content">
			              <div role="tabpanel" class="tab-pane active show" id="account-vertical-general" aria-labelledby="account-pill-general" aria-expanded="true">
			                <div class="media">
			                  <a href="javascript: void(0);">
			                    <img src="<?php echo e(asset('/uploads/user_profile/'.$user->photo)); ?>" class="rounded mr-75" alt="profile image" width="100">
			                  </a>
			                  <h5><?php echo e($user->name); ?></h5>
			                </div>
			                <hr>
			                <form novalidate="" method="POST" action="<?php echo e(url('general-info-update')); ?>" enctype="multipart/form-data">
			                	<?php echo csrf_field(); ?>
			                  <div class="row">
			                    <div class="col-12">
			                      <div class="form-group">
			                        <div class="controls">
			                          <label for="account-username">Username</label>
			                          <input type="text" class="form-control" name="username" id="account-username" placeholder="Username" value="<?php echo e($user->username); ?>" required="" data-validation-required-message="This username field is required">
			                        </div>
			                      </div>
			                    </div>
			                    <div class="col-12">
			                      <div class="form-group">
			                        <div class="controls">
			                          <label for="account-name">Name</label>
			                          <input type="text" class="form-control" name="name" id="account-name" placeholder="Name" value="<?php echo e($user->name); ?>" required="" data-validation-required-message="This name field is required">
			                        </div>
			                      </div>
			                    </div>
			                    <div class="col-12">
			                      <div class="form-group">
			                        <div class="controls">
			                          <label for="account-e-mail">E-mail</label>
			                          <input type="email" class="form-control" name="email" id="account-e-mail" placeholder="Email" value="<?php echo e($user->email); ?>" required="" data-validation-required-message="This email field is required">
			                        </div>
			                      </div>
			                    </div>
			                    <div class="col-12">
			                      <div class="form-group">
			                        <div class="controls">
			                          <label>Change Profile Photo</label>
			                          <input type="file" class="form-control" name="image">
			                        </div>
			                      </div>
			                    </div>
			                    <input type="hidden" name="tab" value="general">
			                    <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>">
			                    <div class="col-12 d-flex flex-sm-row flex-column justify-content-end">
			                      <button type="submit" class="btn btn-primary mr-sm-1 mb-1 mb-sm-0 waves-effect waves-light">Save
			                        changes</button>
			                      <button type="reset" class="btn btn-outline-warning waves-effect waves-light">Cancel</button>
			                    </div>
			                  </div>
			                </form>
			              </div>
			              <div class="tab-pane fade" id="account-vertical-password" role="tabpanel" aria-labelledby="account-pill-password" aria-expanded="false">
			                <form novalidate="" action="<?php echo e(url('change-password')); ?>" method="POST">
			                	<?php echo csrf_field(); ?>
			                  <div class="row">
			                    <div class="col-12">
			                      <div class="form-group">
			                        <div class="controls">
			                          <label for="account-old-password">Old Password</label>
			                          <input type="password" class="form-control" name="old_pass" id="account-old-password" required="" placeholder="Old Password" data-validation-required-message="This old password field is required">
			                        </div>
			                      </div>
			                    </div>
			                    <div class="col-12">
			                      <div class="form-group">
			                        <div class="controls">
			                          <label for="account-new-password">New Password</label>
			                          <input type="password" name="password" id="account-new-password" class="form-control" placeholder="New Password" required="" data-validation-required-message="The password field is required">
			                        </div>
			                      </div>
			                    </div>
			                    <div class="col-12">
			                      <div class="form-group">
			                        <div class="controls">
			                          <label for="account-retype-new-password">Retype New
			                            Password</label>
			                          <input type="password" name="con_password" class="form-control" required="" id="account-retype-new-password" data-validation-match-match="password" placeholder="New Password" data-validation-required-message="The Confirm password field is required">
			                        </div>
			                      </div>
			                    </div>
			                    <div class="col-12 d-flex flex-sm-row flex-column justify-content-end">
			                      <button type="submit" class="btn btn-primary mr-sm-1 mb-1 mb-sm-0 waves-effect waves-light">Save
			                        changes</button>
			                      <button type="reset" class="btn btn-outline-warning waves-effect waves-light">Cancel</button>
			                    </div>
			                  </div>
			                </form>
			              </div>
			              <?php if($employee): ?>
			              <div class="tab-pane fade" id="account-vertical-info" role="tabpanel" aria-labelledby="account-pill-info" aria-expanded="false">
			                <form method="POST" action="<?php echo e(url('employee-info-update')); ?>">
			                	<?php echo csrf_field(); ?>
			                    <h4 align="center">Particullar Infomration</h4>
                            <hr>
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Employee Type <span class="required">*</span></label>
                                    <select name="type" class="form-control" required="">
                                        <option value="">Select Employee Type</option>
                                        <option value="1" <?php echo e(($employee->type == 1)? 'selected' : ''); ?>>UK Employee</option>
                                        <option value="2" <?php echo e(($employee->type == 2)? 'selected' : ''); ?>>BD Employee</option>
                                    </select>
                                </div>
                                <div class="col-6 form group">
                                    <label>Employee Name <span class="required">*</span></label>
                                    <input type="text" name="name" value="<?php echo e($employee->name); ?>" class="form-control" placeholder="Enter Employee Name" required="">
                                </div>
                            </div>
                            <!-- col -->

                             <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Personal Contact Number <span class="required">*</span></label>
                                    <input type="text" name="contact_number" value="<?php echo e($employee->name); ?>" class="form-control" placeholder="Enter Personal Contact Number" required="">
                                </div>
                                <div class="col-6 form group">
                                    <label>Office Contact Number <span class="required">*</span></label>
                                    <input type="text" name="office_contact_number" value="<?php echo e($employee->phone); ?>" class="form-control" placeholder="Enter Office Contact Number" required="">
                                </div>
                            </div>
                            <!-- col -->

                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Personal Email <span class="required">*</span></label>
                                    <input type="email" name="email" class="form-control" value="<?php echo e($employee->per_email); ?>" placeholder="Enter Personal Email" required="">
                                </div>
                                <div class="col-6 form group">
                                    <label>Office Email <span class="required">*</span></label>
                                    <input type="email" name="office_email" class="form-control" value="<?php echo e($employee->office_email); ?>" placeholder="Enter Office Email" required="">
                                </div>
                            </div>
                            <!-- col -->

                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Present Address <span class="required">*</span></label>
                                    <textarea name="pre_address" class="form-control" placeholder="Enter Present Address" required=""><?php echo e($employee->pre_address); ?></textarea>
                                </div>
                                <div class="col-6 form group">
                                    <label>Permanet Addres <span class="required">*</span></label>
                                    <textarea name="per_address" class="form-control" placeholder="Enter Permanet Addres" required=""><?php echo e($employee->per_address); ?></textarea>
                                </div>
                            </div>
                            <!-- col -->

                            <!-- col -->
                            <div class="row">
                                <div class="col-4 form group">
                                    <label>Marital Status<span class="required">*</span></label>
                                    <select name="marital_status" class="form-control" required="">
                                        <option value="">Select Marital Status</option>
                                        <option value="1" <?php echo e(($employee->maritial_status == 1)? 'selected' : ''); ?>>Married</option>
                                        <option value="2" <?php echo e(($employee->maritial_status == 2)? 'selected' : ''); ?>>UnMarried</option>
                                    </select>
                                </div>
                                <div class="col-4 form group">
                                    <label>Gender<span class="required">*</span></label>
                                    <select name="gender" class="form-control" required="">
                                        <option value="">Select Gender</option>
                                        <option value="1" <?php echo e(($employee->gender == 1)? 'selected' : ''); ?>>Male</option>
                                        <option value="2" <?php echo e(($employee->gender == 2)? 'selected' : ''); ?>>FeMale</option>
                                        <option value="3" <?php echo e(($employee->gender == 3)? 'selected' : ''); ?>>Others</option>
                                    </select>
                                </div>
                                <div class="col-4 form group">
                                    <label>Religion<span class="required">*</span></label>
                                    <select name="religion" class="form-control" required="">
                                        <option value="">Select Religion</option>
                                        <option value="Islam" selected="selected">Islam</option>
                                        <option value="Hinduism" <?php echo e(($employee->religion_status == 'Hinduism')? 'selected' : ''); ?>>Hinduism</option>
                                        <option value="Christian" <?php echo e(($employee->religion_status == 'Christian')? 'selected' : ''); ?>>Christian</option>
                                        <option value="Buddhist" <?php echo e(($employee->religion_status == 'Buddhist')? 'selected' : ''); ?>>Buddhist</option>
                                        <option value="Others" <?php echo e(($employee->religion_status == 'Others')? 'selected' : ''); ?>>Others</option>
                                    </select>
                                </div>
                            </div>
                            <!-- col -->
                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Father Name</label>
                                    <input type="text" name="f_name" class="form-control" placeholder="Enter Father Name" value="<?php echo e($employee->f_name); ?>">
                                </div>
                                <div class="col-6 form group">
                                    <label>Father Nid </label>
                                    <input type="text" name="f_nid" class="form-control" placeholder="Enter Father NID" value="<?php echo e($employee->f_nid); ?>">
                                </div>
                            </div>
                            <!-- col -->
                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Mother Name</label>
                                    <input name="m_name" type="text" class="form-control" placeholder="Enter Mother Name" value="<?php echo e($employee->m_name); ?>">
                                </div>
                                <div class="col-6 form group">
                                    <label>Mother Nid </label>
                                    <input name="m_nid" type="text" class="form-control" placeholder="Enter Mother NID" value="<?php echo e($employee->m_nid); ?>">
                                </div>
                            </div>
                            <!-- col -->
                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Spouse Name</label>
                                    <input name="spouse_name" class="form-control" placeholder="Enter Spouse Name" type="text" value="<?php echo e($employee->spouse_name); ?>">
                                </div>
                                <div class="col-6 form group">
                                    <label>Spouse Nid </label>
                                    <input name="spouse_nid" class="form-control" placeholder="Enter Spouse NID" type="text" value="<?php echo e($employee->spouse_nid); ?>">
                                </div>
                            </div>
                            <!-- col -->
                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Date of joining</label>
                                    <input type="date" name="doj" class="form-control" value="<?php echo e($employee->date_of_joining); ?>">
                                </div>
                                <div class="col-6 form group">
                                    <label>Date of Birth<span class="required">*</span></label>
                                    <input type="date" name="dob" class="form-control" value="<?php echo e($employee->dob); ?>" required="">
                                </div>
                            </div>
                            <!-- col -->
                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Department<span class="required">*</span></label>
                                    <select name="department" class="form-control" required="">
                                        <option value="">Select Department</option>
                                        <?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($val->id); ?>" <?php echo e(($employee->department_id == $val->id)? 'selected' : ''); ?>><?php echo e($val->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                                <div class="col-6 form group">
                                    <label>Designation<span class="required">*</span></label>
                                    <select name="designation" class="form-control" required="">
                                        <option value="">Select Designation</option>
                                        <?php $__currentLoopData = $designastion; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $design): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($design->id); ?>" <?php echo e(($employee->designastion == $design->id)? 'selected' : ''); ?>><?php echo e($design->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <!-- col -->
             
                            <div class="form group">
                                <label>Education<span class="required">*</span></label>                           
                            	<textarea class="form-control" name="education" placeholder="Enter Educational Qualification"><?php echo e($employee->education); ?></textarea>
                            </div>
                        
                          
                            <hr>
                            <h4 align="center">Emergency Contact Person</h4>
                            <hr>
                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Contact Person Name</label>
                                    <input type="text" name="emg_con_name" value="<?php echo e($employee->emg_contact->name); ?>" class="form-control" placeholder="Enter Contact Person Name">
                                </div>
                                <div class="col-6 form group">
                                    <label>Contact Person NID</label>
                                    <input type="text" name="emg_con_nid" value="<?php echo e($employee->emg_contact->nid); ?>" class="form-control" placeholder="Enter Contact Person NID">
                                </div>
                            </div>
                            <!-- col -->
                           
                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Contact Person Phone</label>
                                    <input type="text" name="emg_con_phone" value="<?php echo e($employee->emg_contact->number); ?>" class="form-control" placeholder="Enter Contact Person Phone">
                                </div>
                                <div class="col-6 form group">
                                    <label>Contact Person Email</label>
                                    <input type="email" name="emg_con_email" value="<?php echo e($employee->emg_contact->email); ?>" class="form-control" placeholder="Enter Contact Person Email">
                                </div>
                            </div>
                            <!-- col -->
                            <!-- col -->
                            <div class="row">
                                <div class="col-6 form group">
                                    <label>Relation With you</label>
                                    <input type="text" name="emg_relation" value="<?php echo e($employee->emg_contact->relation); ?>" class="form-control" placeholder="Enter Relation With you" >
                                </div>
                                <div class="col-6 form group">
                                    <label>Contact Person Photo</label>
                                    <input type="file" class="form-control" name="emg_image">
                                </div>
                            </div>
                            <!-- col -->
			                  <div class="row">
			                    <div class="col-12 d-flex flex-sm-row flex-column justify-content-end" style="margin-top: 10px;">
			                      <button type="submit" class="btn btn-primary mr-sm-1 mb-1 mb-sm-0 waves-effect waves-light">Save
			                        changes</button>
			                      <button type="reset" class="btn btn-outline-warning waves-effect waves-light">Cancel</button>
			                    </div>
			                  </div>
			                </form>
			              </div>
			              <?php endif; ?>
			             
			              
			            </div>
			          </div>
			        </div>
			      </div>
			    </div>
			  </div>
			</section>
			<!-- account setting page end -->
        </div>
      </div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
<script src="<?php echo e(asset('backend/app-assets/vendors/js/forms/validation/jqBootstrapValidation.js')); ?>"></script>
<script src="<?php echo e(asset('backend/app-assets/js/scripts/forms/validation/form-validation.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/shagmtco/urportals.com/resources/views/profile.blade.php ENDPATH**/ ?>