
<?php $__env->startSection('title'); ?>
<?php echo e(__("message.Save Manager Profile")); ?>

<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!--Page header-->
<div class="page-header">
   <h3 class="page-title"><?php echo e(__("message.Save Manager Profile")); ?> </h3>
   <div class="col-sm-6">
    
      <ol class="breadcrumb float-sm-right">
    
         <li class="breadcrumb-item"><a href="<?php echo e(route('admin-dashboard')); ?>"><?php echo e(__("message.Home")); ?></a></li>
         <li class="breadcrumb-item active"><?php echo e(__("message.Save Manager Profile")); ?></li>
      </ol>
   </div>
</div>

	<div class="col-xl-4 col-lg-12">
		<div class="card">
			<div class="card-header ">
					<div class="card-title"><?php echo e(__("message.Save Manager Profile")); ?></div>
				</div>
			<div class="card-body">
				
				<?php if(Session::has('message')): ?>
          		<div class="col-sm-12">
                     <div class="alert  <?php echo e(Session::get('alert-class', 'alert-info')); ?> alert-dismissible fade show" role="alert"><?php echo e(Session::get('message')); ?>

                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                        </button>
                     </div>
                </div>
             	<?php endif; ?>
			 	<form  action="<?php echo e(route('update-manager-profiles')); ?>" method="post" enctype="multipart/form-data">
			 		<?php echo e(csrf_field()); ?>

				 
						<input type="hidden" name="id" value="<?php echo e($id); ?>">
						<div class="col-sm-12 col-md-12">
							<div class="form-group">
								<input type="text" required class="form-control" id="name" name="name" placeholder="<?php echo e(__('message.Enter Name')); ?>" value="<?php echo e(isset($data->name)?$data->name:''); ?>" >
							</div>
						</div>
						<div class="col-sm-12 col-md-12">
							<div class="form-group">
								<label class="form-label"><?php echo e(__("message.Email Id")); ?></label>
								<input type="text" required class="form-control" id="email" name="email" placeholder="<?php echo e(__('message.Enter Emial')); ?>" value="<?php echo e(isset($data->email)?$data->email:''); ?>">
							</div>
						</div>
						<div class="col-sm-12 col-md-12">
							<div class="form-group">
								<label class="form-label"><?php echo e(__('message.City')); ?></label>
								<select class="form-control" name="city" id="city" required="">
									<option value=""><?php echo e(__('message.Select City')); ?></option>
									<?php $__currentLoopData = $city; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									<option value="<?php echo e($c->id); ?>" <?= isset($data->city)&&$data->city==$c->id?'selected="selected"':''?> ><?php echo e($c->name); ?></option>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
								</select>
							</div>
						</div>
						<div class="col-sm-12 col-md-12">
							<div class="form-group">
	              				<!-- <div class="form-group"> -->
	                   			<label for="name"><?php echo e(__("message.Profile Image")); ?> <span class="reqfield">*</span></label>
				                  	<div id="uploaded_image">
				                     	<div class="upload-btn-wrapper">
					                        <button class="btn imgcatlog">
						                        <?php 
						                            if(isset($data->profile_pic)){
						                                $path= env('APP_URL')."storage/app/public/profile"."/".$data->profile_pic;
						                            }
						                            else{
						                                $path=asset('public/upload/default.jpg');
						                            }
						                        ?>
					                        	<img src="<?php echo e($path); ?>" alt="..." class="img-thumbnail imgsize"  id="basic_img" >
					                        </button>
					                        <input type="hidden" id="basic_img1"/>
					                        <?php if(isset($data->profile_pic)): ?>
					                        	<input type="file" name="upload_image" class="form-control" id="upload_image" />
					                        <?php else: ?>
					                        	<input type="file" required="" class="form-control" name="upload_image" id="upload_image" />
					                        <?php endif; ?>
					                    </div>
				                   	</div>                
	              			</div> 
						</div>
						<div class="col-sm-12 col-md-12">
							<div class="form-group">
								<label class="form-label"><?php echo e(__('message.password')); ?></label>
								<input type="password" class="form-control" id="password" required name="password" placeholder="<?php echo e(__('message.Enter Password')); ?>"  >
							</div>
						</div>
						<div class="col-sm-12 col-md-12">
							<div class="form-group">
								<label class="form-label"><?php echo e(__('message.Confirm Password')); ?></label>
								<input type="password" class="form-control" id="cpassword" required name="cpassword" placeholder="<?php echo e(__('message.Enter Confirm Password')); ?>" onchange="checkconfirmpassword(this.value)" >
							</div>
						</div>
						<div class="card-footer text-end">
							 <?php if(Session::get("is_demo")==1): ?>
                      <button type="button" class="btn btn-success" onclick="disablebtn()"><?php echo e(__('message.Save')); ?></button>
                      <?php else: ?>
                     <button type="submit" class="btn btn-success"><?php echo e(__('message.Save')); ?></button>
                       <?php endif; ?>
							<a href="javascript:void0;" class="btn btn-danger"><?php echo e(__("message.Cancel")); ?></a>
						</div>
					<!-- </div> -->
            	</form>
        	</div>
		</div>
	</div>
<!-- </div> -->
<!-- End Row-->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/freakd1c/public_html/demo/laboratory/resources/views/admin/manager/save.blade.php ENDPATH**/ ?>