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

<section  class="inner-page-desh-pd candidate_dashbroad">
    <div class="container">
        <div class="row">  
            <div class="col-lg-12 col-md-12 col-sm-12 P0">
            	<div class="Profile_details">
            		<div class="row">
            			<div class="col-lg-2 col-md-2 col-sm-2">
            				<div class="profile_img">
                                <form class="md-form">
	                                <div class="file-field">
	                                    <div class="mb-4">
                                            <?php if($data[0]->con_avatar==''): ?>
		                                    <img src="https://mdbootstrap.com/img/Photos/Others/placeholder-avatar.jpg" class="rounded-circle z-depth-1-half avatar-pic" alt="example placeholder avatar">
                                            <?php else: ?>
                                            <img src="<?php echo e(url('/')); ?>/uploads/consultant_profile/<?php echo e($data[0]->con_avatar); ?>" class="rounded-circle z-depth-1-half avatar-pic" alt="example placeholder avatar">
                                            <?php endif; ?>
		                                </div>
	                                    <div class="d-flex justify-content-center">
		                                    <div class="btn btn-mdb-color btn-rounded float-left conImg">
		                                        <span class="add_pic">Add photo</span>
		                                        <input type="file" name="consultant_image">
		                                    </div>
	                                    </div>
	                                </div>
                                </form>
            				</div>
            			</div>
            			<div class="col-lg-10 col-md-10 col-sm-10">
                            <div class="row marg0">
                                <div class="col-lg-6 col-md-6 P0">
                                    <div class="profile_des_title"><?php echo e($data[0]->con_name); ?></div>
                                </div>
                                <div class="col-lg-6 col-md-6">
                                    <div class="add_edit">
                                        <span><i data-toggle="modal" data-target="#myModal" class="fa fa-edit"></i></span>
                                    </div>
                                </div>
                            </div>
            				<div class="profile_description">
            					<div class="row">
                                    <div class="col-lg-12 col-md-12">
                                        <div class="Profile_location"><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo e($data[0]->city_name); ?>, <?php echo e($data[0]->state_name); ?></div>
                                        <div class="Profile_location">
                                            <i class="fa fa-envelope" aria-hidden="true"></i> <?php echo e($data[0]->con_email); ?>

                                        </div>
                                        <?php if($data[0]->con_second_email!=''): ?>
                                        <div class="Profile_location">
                                           <i class="fa fa-envelope" aria-hidden="true"></i> <?php echo e($data[0]->con_second_email); ?>

                                        </div>
                                        <?php endif; ?>
                                        <div class="Profile_location">
                                            <i class="fa fa-phone" aria-hidden="true"></i><?php echo e($data[0]->con_phone); ?>

                                        </div>
                                        <?php if($data[0]->con_mobile2!=null): ?>
                                        <div class="Profile_location">
                                            <i class="fa fa-phone" aria-hidden="true"></i><?php echo e($data[0]->con_mobile2); ?>

                                        </div>
                                        <?php endif; ?>
                                    </div>                           
                                </div>
            				</div>
            			</div>           			
            		</div>
                    <div class="modal" id="myModal">
                        <div class="modal-dialog">
                            <div class="modal-content custm_modal">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                                    <h4 class="modal-title">Basic Details</h4>
                                </div>
                                <div class="modal-body">
                                    <form method="post" id="basicForm">
                                        <div class="row">
                                           <div class="form-group col-md-12">
                                                <label>Name <span class="star">*</span></label>
                                                <input type="text" name="con_name" class="form-control" value="<?php echo e($data[0]->con_name); ?>" placeholder="Name">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Email <span class="star">*</span></label>
                                                <input type="email" name="con_email" class="form-control" value="<?php echo e($data[0]->con_email); ?>" placeholder="Email">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Secondary email</label>
                                                <input type="email" class="form-control" name="con_second_email" value="<?php echo e($data[0]->con_second_email); ?>" placeholder="Secondary email">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label> Mobile <span class="star">*</span></label>
                                                <input type="number" name="con_mobile" class="form-control" value="<?php echo e($data[0]->con_phone); ?>" placeholder="Mobile">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label> Mobile 2</label>
                                                <input type="number" name="con_mobile2" class="form-control" value="<?php echo e($data[0]->con_mobile2); ?>" placeholder="Mobile 2">
                                            </div>
                                        </div>
                                        <button type="button" class="btn btn-primary btn_Save basic">Save</button>
                                        <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                    </form>
                                </div> 
                            </div>  
                        </div>
                    </div>
            	</div>
            </div>
        </div>
    </div> 
    <div class="container">
        <div class="row">
            <div class="col-lg-3 col-md-3 col-sm-3 P0"> 
                <div class="side_nav">
                   <div class="profile_nav_head">Quick Links</div>
                   <ul class="Profile_list">
                       <li> <a class="nav-link" href="#Location_Details">Location Details</a></li>
                       <li> <a class="nav-link" href="#Social_Link">Social Link</a></li>
                       <li> <a class="nav-link" href="#Working_In">Working In</a></li>
                       <li> <a class="nav-link" href="#Gst_Number">Gst Number</a></li>
                   </ul>
                </div>
            </div>
            <div class="col-lg-9 col-md-9 col-sm-9 PDR0">
                <div class="row marg0">
                    <div class="col-lg-12 col-md-12 col-sm-12 box_shadow" id="Location_Details">
                        <div>
                            <div class="col-lg-6 col-md-6">
                                <div class="profile_nav_head">Location Details</div>
                            </div>
                            <div class="col-lg-6 col-md-6">
                                <div class="add_edit">
                                    <a data-toggle="modal" data-target="#ProfileModal">ADD</a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12">
                                <div class="Profile_location"><i class="fa fa-map-marker" aria-hidden="true"></i> <?php echo e($data[0]->city_name); ?>, <?php echo e($data[0]->state_name); ?></div>
                            </div>
                        </div>
                        <div class="modal" id="ProfileModal">
                            <div class="modal-dialog">
                                <div class="modal-content custm_modal">
                                <!-- Modal Header -->
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                        <h4 class="modal-title">Location Details</h4>
                                    </div>  
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id="locationForm">
                                            <div class="row">
                                                <div class="form-group col-md-12">
                                                    <label>Address <span class="star">*</span></label>
                                                    <textarea name="con_address" class="form-control" rows="4" cols="67"><?php echo e($data[0]->con_location); ?> </textarea>
                                                </div>
                                                <div class="form-group col-md-12 mb-0 MB0">
                                                    <label>State <span class="star">*</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2 st" name="state" onchange="getCity(this.value)">
                                                      <option value="">Select</option>
                                                      <?php $__currentLoopData = $states; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                      <option value="<?php echo e($value->id); ?>" <?php if($value->id==$data[0]->con_state){echo 'selected';}?>><?php echo e($value->name); ?></option>
                                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                                <div class="form-group col-md-12 mb-0 MB0">
                                                    <label>City <span class="star">*</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2" name="city">
                                                      	<option value="">Select</option>
                                                    </select>
                                                    <input type="hidden" name="city_id" value="<?php echo e($data[0]->con_city); ?>">
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Pin <span class="star">*</span></label>
                                                    <input type="number" name="pincode" class="form-control" value="<?php echo e($data[0]->con_pincode); ?>" placeholder="Pin">
                                                </div>
                                            </div>
                                            <button type="button" class="btn btn-primary btn_Save loc">Save</button>
                                            <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>                      
                                        </form>
                                    </div>  
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 col-md-12 col-sm-12 box_shadow" id="Social_Link">
                        <div>
                            <div class="col-lg-6 col-md-6">
                                <div class="profile_nav_head">Social Details</div>
                            </div>
                            <div class="col-lg-6 col-md-6">
                                <div class="add_edit">
                                    <a data-toggle="modal" data-target="#SocialModal">ADD</a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12">
                                <div class="Desired_heading">Wesite link</div>
                                <a class="office_name"><?php echo e($data[0]->con_website); ?></a>
                            </div>
                        </div>
                        <div class="modal" id="SocialModal">
                            <div class="modal-dialog">
                                <div class="modal-content custm_modal">
                                <!-- Modal Header -->
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                        <h4 class="modal-title">Social Details</h4>                                       
                                    </div>  
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id="socialForm">
                                            <div class="row">
                                                <div class="form-group col-md-12">
                                                    <label>Wesite link <span class="star"> *</span></label>
                                                    <input type="text" name="link" class="form-control" value="<?php echo e($data[0]->con_website); ?>" placeholder="Wesite link">
                                                </div>
                                            </div>
                                            <button type="button" class="btn btn-primary btn_Save link">Save</button>
                                            <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                        </form>
                                    </div>  
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 col-md-12 col-sm-12 box_shadow" id="Working_In">
                        <div>
                            <div class="col-lg-6 col-md-6">
                                <div class="profile_nav_head">Working In</div>
                            </div>
                            <div class="col-lg-6 col-md-6">
                                <div class="add_edit">
                                    <a data-toggle="modal" data-target="#WorkingModal">ADD</a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12">
                               <div class="Desired_heading">Industry</div> 
                                <div class="col-md-12 col-sm-12 col-xs-12 P0">
                                    <p id="collectPetfrndTypes">
                                    	<?php $ind = explode(',',$data[0]->indu_title);foreach($ind as $value){?>
                                        <span class="col-md-3 collectPetfrndHtml"><?php echo e($value); ?></span>
                                    	<?php }?>
                                    </p>
                                </div>
                                <div class="Desired_heading"> Functional area</div> 
                               	<div class="col-md-12 col-sm-12 col-xs-12 P0">
                                    <p id="collectPetfrndTypes">
                                        <?php $fun = explode(',',$data[0]->functional_area);foreach($fun as $value){?>
                                        <span class="col-md-3 collectPetfrndHtml"><?php echo e($value); ?></span>
                                    	<?php }?>
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="modal" id="WorkingModal">
                            <div class="modal-dialog">
                                <div class="modal-content custm_modal">
                                <!-- Modal Header -->
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                        <h4 class="modal-title">Working In</h4>
                                    </div>  
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id="workForm">
                                            <div class="row">
                                                <div class="form-group col-md-12 MB0">
                                                    <label>Industries <span class="star">*</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2" name="industry[]" multiple>
                                                      <option value="">Select</option>
                                                      <?php $__currentLoopData = $industries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                      <option value="<?php echo e($value->indu_id); ?>" <?php if(in_array($value->indu_id,explode(',',$data[0]->con_industries))){echo 'selected';}?>><?php echo e($value->indu_title); ?></option>
                                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                                <!-- <div class="col-md-12 col-sm-12 col-xs-12 MB10">
                                                    <p id="collectPetfrndTypes">
                                                        <span class="col-md-3 collectPetfrndHtml" data="2">Telecommunication<a href="javascript:;" class="cross_btn" onclick="closeType()"> × </a><span></span></span>
                                                        <span class="col-md-3 collectPetfrndHtml" data="3">Agriculture<a href="javascript:;" class="cross_btn" onclick="closeType()"> × </a><span></span></span>
                                                        <span class="col-md-3 collectPetfrndHtml" data="6">Construction <a href="javascript:;" class="cross_btn" onclick="closeType()"> × </a><span></span></span>
                                                    </p>
                                                </div> -->
                                                <div class="form-group col-md-12 MB0 ">
                                                    <label>Function Areas <span class="star">*</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2" name="functional_area[]" multiple>
                                                      <option value="">Select</option>
                                                      <?php $__currentLoopData = $functional_areas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                      <option value="<?php echo e($value->fun_id); ?>" <?php if(in_array($value->fun_id, explode(',', $data[0]->con_functional_area))){echo 'selected';}?>><?php echo e($value->fun_functional_area); ?></option>
                                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                      <option value="value 03">Customer support</option>
                                                    </select>
                                                </div>
                                                <!-- <div class="col-md-12 col-sm-12 col-xs-12 MB30">
                                                    <p id="collectPetfrndTypes">
                                                        <span class="col-md-3 collectPetfrndHtml" data="2">Information Technology (IT) <a href="javascript:;" class="cross_btn" onclick="closeType()"> × </a><span></span></span>

                                                        <span class="col-md-3 collectPetfrndHtml" data="3">Facilities management<a href="javascript:;" class="cross_btn" onclick="closeType()"> × </a><span></span></span>

                                                        <span class="col-md-3 collectPetfrndHtml" data="6">Customer support<a href="javascript:;" class="cross_btn" onclick="closeType()"> × </a><span></span></span>
                                                    </p>
                                                </div> -->
                                            </div>
                                            <button type="button" class="btn btn-primary btn_Save workin">Save</button>
                                            <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                        </form>
                                    </div>  
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-12 col-md-12 col-sm-12 box_shadow" id="Gst_Number">
                        <div>
                            <div class="col-lg-6 col-md-6">
                                <div class="profile_nav_head">Gst Number</div>
                            </div>
                            <div class="col-lg-6 col-md-6">
                                <div class="add_edit">
                                    <a data-toggle="modal" data-target="#GstModal">ADD</a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12">
                                <div class="Desired_heading">Gst Number</div>
                                <div class="office_name"><?php echo e($data[0]->con_gstin); ?></div>
                            </div>
                        </div>
                        <div class="modal" id="GstModal">
                            <div class="modal-dialog">
                                <div class="modal-content custm_modal">
                                <!-- Modal Header -->
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal">&times;</button>
                                        <h4 class="modal-title">Gst Number</h4>
                                    </div>  
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id="gstForm">
                                            <div class="row">
                                                <div class="form-group col-md-12">
                                                    <label>Gst Number</label>
                                                    <input type="text" name="gst" class="form-control" value="<?php echo e($data[0]->con_gstin); ?>" placeholder="Gst Number">
                                                </div>
                                            </div>
                                            <button type="button" class="btn btn-primary btn_Save gst">Save</button>
                                            <button type="button" class="btn btn-danger btn_cancel" data-dismiss="modal">Cancel</button>
                                        </form>
                                    </div>  
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<script type="text/javascript" src="<?php echo e(url('/')); ?>/accets/frontend/js/consultant_profile.js"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.frontmaster', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>