<?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]->comp_logo==null): ?>
                                            <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/company_profile/<?php echo e($data[0]->comp_logo); ?>" 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 com_image">
                                                <span class="add_pic">Add photo</span>
                                                <input type="file" name="comp_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]->comp_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-phone" aria-hidden="true"></i> <?php echo e($data[0]->comp_phone); ?>

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

                                        </div>
                                    </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> Company Name<span class="star">*</span></label>
                                                <input type="text" name="company_name" class="form-control" value="<?php echo e($data[0]->comp_name); ?>" placeholder="Company Name">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Phone <span class="star">*</span></label>
                                                <input type="number" class="form-control" name="mobile" value="<?php echo e($data[0]->comp_phone); ?>" placeholder="Phone" onkeydown="if(this.value.length==10 && event.keyCode!=8 && event.keyCode!=9) return false;" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');">
                                            </div>
                                            <div class="form-group col-md-12">
                                                <label>Email <span class="star">*</span></label>
                                                <input type="email" name="comp_email" class="form-control" value="<?php echo e($data[0]->comp_email); ?>" placeholder="Email">
                                            </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="#Jobs">Company Info</a></li>
                        <li> <a class="nav-link" href="#company">Company Details</a></li>
                        <li> <a class="nav-link" href="#Company_Details">Industry</a></li>
                        <li> <a class="nav-link" href="#Interview">Location Details</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="Jobs">
                        <div>
                            <div class="col-lg-6 col-md-6">
                                <div class="profile_nav_head">Company Info</div>
                            </div>
                            <div class="col-lg-6 col-md-6">
                                <div class="add_edit">
                                    <a data-toggle="modal" data-target="#JobModal">ADD</a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12">
                                <div class="col-lg-6 col-md-6 P0">
                                    <div class="Desired_heading">CEO Name</div>
                                    <div class="office_name"><?php echo e($data[0]->comp_name); ?></div>    
                                    <div class="clearfix"></div>
                                    <div class="Desired_heading"> Ownership type</div>
                                    <div class="office_name"><?php if($data[0]->comp_ownership_type=='1'){echo 'Sole Proprietorship';}else if($data[0]->comp_ownership_type=='2'){echo 'Public';}else if($data[0]->comp_ownership_type=='3'){echo 'Private';}else if($data[0]->comp_ownership_type=='4'){echo 'Government';}else if($data[0]->comp_ownership_type=='5'){echo 'NGO';}?></div>
                                    <div class="Desired_heading">Website link</div>
                                    <div class="office_name"><?php echo e($data[0]->comp_website); ?></div> 
                                    <div class="Desired_heading"> No of employs</div>
                                    <div class="office_name"><?php echo e($data[0]->comp_no_of_emp); ?></div>  
                                </div>
                                <div class="col-lg-6 col-md-6 P0">                                 
                                    <div class="Desired_heading">Establishment</div>
                                    <div class="office_name"><?php echo e($data[0]->comp_establishment); ?></div>
                                    <div class="Desired_heading"> No of offices</div>
                                    <div class="office_name"><?php echo e($data[0]->comp_no_of_offices); ?></div>
                                    <div class="Desired_heading"> Gst no </div>
                                    <div class="office_name"><?php echo e($data[0]->comp_gstin); ?></div>
                                </div>
                            </div>
                        </div>
                        <div class="modal" id="JobModal">
                            <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">Company Info</h4> 
                                    </div>  
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id="companyForm">
                                            <div class="row">
                                                <div class="form-group col-md-12">
                                                    <label>CEO Name <span class="star"> *</span></label>
                                                    <input type="text" name="ceo" class="form-control" value="<?php echo e($data[0]->comp_ceo); ?>" placeholder="Enter CEO Name">
                                                </div>
                                                <div class="form-group col-md-12 mb-0 MB0">
                                                    <label>Ownership type </label>
                                                </div>
                                                <div class="form-group col-md-12 select-border">
                                                    <select class="form-control select2" name="ownership">
                                                      <option value="">Select</option>
                                                      <option value="1" <?php if($data[0]->comp_ownership_type=='1'){echo 'selected';}?>>Sole Proprietorship</option>
                                                      <option value="2" <?php if($data[0]->comp_ownership_type=='2'){echo 'selected';}?>>Public</option>
                                                      <option value="3" <?php if($data[0]->comp_ownership_type=='3'){echo 'selected';}?>>Private</option>
                                                      <option value="4" <?php if($data[0]->comp_ownership_type=='4'){echo 'selected';}?>>Government</option>
                                                      <option value="5" <?php if($data[0]->comp_ownership_type=='5'){echo 'selected';}?>>NGO</option>
                                                    </select>
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Website link <span class="star"> *</span></label>
                                                    <input type="text" class="form-control" name="link" value="<?php echo e($data[0]->comp_website); ?>" placeholder="Website link">
                                                </div>
                                                <div class="form-group col-md-6 mb-0">
                                                    <label> No. of Employees <br>
                                                        <div class="select-border">
                                                            <input type="number" name="no_of_emp" class="form-control" value="<?php echo e($data[0]->comp_no_of_emp); ?>" placeholder="No. Of Employees">
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="form-group col-md-6 mb-0">
                                                    <label> No. of Offices <br>
                                                        <div class="select-border">
                                                            <input type="number" name="no_of_office" class="form-control" value="<?php echo e($data[0]->comp_no_of_offices); ?>" placeholder="No. Of Offices">
                                                        </div>
                                                    </label>
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>  Establishment </label>
                                                    <input type="text" class="form-control year" name="establishment" value="<?php echo e($data[0]->comp_establishment); ?>" placeholder="Establishment Year">
                                                </div>
                                                <div class="form-group col-md-12">
                                                    <label>Gst Number</label>
                                                    <input type="text" class="form-control" name="gst" value="<?php echo e($data[0]->comp_gstin); ?>" placeholder="Gst Number">
                                                </div>
                                            </div>
                                            <button type="button" class="btn btn-primary btn_Save comp_info">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="company">
                        <div>
                            <div class="col-lg-6 col-md-6">
                                <div class="profile_nav_head">Company details</div>
                            </div>
                            <div class="col-lg-6 col-md-6">
                                <div class="add_edit">
                                    <a data-toggle="modal" data-target="#WorkingModal1">ADD</a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12">
                                <div class="Desired_heading">Company details</div>
                                <div class="office_name"><?php echo e($data[0]->comp_details); ?></div>
                            </div>
                        </div>
                        <div class="modal" id="WorkingModal1">
                            <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">Company details</h4>
                                    </div>  
                                    <!-- Modal body -->
                                    <div class="modal-body">
                                        <form method="post" id="detailForm">
                                            <div class="row">
                                                 <div class="form-group col-md-12">
                                                    <label> Company details</label>
                                                    <textarea name="details" class="form-control" rows="4" cols="30"><?php echo e($data[0]->comp_details); ?></textarea>
                                                </div>
                                            </div>
                                            <button type="button" class="btn btn-primary btn_Save detail">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="Company_Details">
                        <div>
                            <div class="col-lg-6 col-md-6">
                                <div class="profile_nav_head">Industry</div>
                            </div>
                            <div class="col-lg-6 col-md-6">
                                <div class="add_edit">
                                    <a data-toggle="modal" data-target="#CompanyModal">ADD</a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12">
                                <div class="Desired_heading">Industry</div>
                                <p id="collectPetfrndTypes">
                                    <?php $ind = explode(',',$data[0]->indu_title);foreach($ind as $value){?>
                                    <span class="col-md-3 collectPetfrndHtml" data="2"><?php echo e($value); ?></span>
                                    <?php }?>
                                </p>
                            </div>
                        </div>
                        <div class="modal" id="CompanyModal">
                            <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">Industries</h4> 
                                    </div>  
                                    <div class="modal-body">
                                        <form method="post" id="industryForm">
                                            <div class="row">
                                                 <div class="form-group col-md-12 MB0">
                                                    <label>Industries</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]->comp_industry))){echo 'selected';}?>><?php echo e($value->indu_title); ?></option>
                                                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                </div>
                                            </div>
                                            <button type="button" class="btn btn-primary btn_Save ind">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="Interview">
                        <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="#WorkingModal">ADD</a>
                                </div>
                            </div>
                            <div class="col-lg-12 col-md-12">
                                 <div class="col-lg-12 col-md-12 P0"> 
                                    <div class="Desired_heading">Company location</div>
                                    <div class="office_name"><?php echo e($data[0]->comp_location); ?></div> 
                                </div>
                               <div class="col-lg-6 col-md-6 P0">
                                    <div class="Desired_heading">City </div>
                                    <div class="office_name"><?php echo e($data[0]->city_name); ?></div>
                                    <div class="Desired_heading">State </div>
                                    <div class="office_name"><?php echo e($data[0]->state_name); ?></div>
                                </div>
                                <div class="col-lg-6 col-md-6 P0">
                                    <div class="Desired_heading">Country </div>
                                    <div class="office_name">India</div>
                                    <div class="Desired_heading"> Pin </div>
                                    <div class="office_name"><?php echo e($data[0]->comp_pincode); ?></div>
                                </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">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>Company location <span class="star">*</span></label>
                                                    <textarea name="address" class="form-control" rows="2" cols="30"><?php echo e($data[0]->comp_location); ?></textarea>
                                                </div>
                                                <div class="form-group col-md-12 mb-0 M0">
                                                    <label>Country <span class="star">*</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border ">
                                                    <select class="form-control select2" name="country">
                                                      <!-- <option value="">Select</option> -->
                                                      <option value="1"> India </option>
                                                    </select>
                                                </div>
                                                <div class="form-group col-md-12 M0">
                                                    <label>State <span class="star">*</span></label>
                                                </div>
                                                <div class="form-group col-md-12 select-border ">
                                                    <select class="form-control select2" name="state" onchange="showCity(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($data[0]->comp_state==$value->id){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 M0">
                                                    <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="comp_city" value="<?php echo e($data[0]->comp_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]->comp_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>
            </div>
        </div>
    </div>
</section>
<script type="text/javascript" src="<?php echo e(url('/')); ?>/accets/frontend/js/company_profile.js"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.frontmaster', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>