<div class="content-wrapper">
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="text-warning">
                        <go-back/>
                        <i class="fas fa-users "></i> {{btn.text}}
                    </h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a ng-href="{{baseurl}}/dashboard">Home</a></li>
                        <li class="breadcrumb-item active">{{btn.text}}</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>


    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="card card-warning card-outline">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-sm-12 col-lg-2">
                                <div class="widget-user-image ">
                                    <img ng-if="gUser.profile_image" class="img-circle elevation-2 smallimg imgW-100" src="{{baseurl}}/app/uploads/{{gUser.profile_image}}" alt="User Avatar">
                                    <img ng-if="!gUser.profile_image" class="img-circle elevation-2 imgW-100" src="{{baseurl}}/app/static/img/default-150x150.png" alt="User Avatar">
                                    <img ng-if="gUser.profile_image" class="elevation-2-big elevation-5 bigimg hide" src="{{baseurl}}/app/uploads/{{gUser.profile_image}}" alt="User Avatar">
                                </div>
                            </div>
                            <div class="col-sm-12 col-lg-8">
                                <div class="card card-outline card-success">
                                    <div class="card-body">
                                        <div class="row">
                                            <div class="col-12 col-md-12 col-lg-12">
                                                <h5>Edit My Profile Image (Kindly Upload square image for best view)</h5>
                                                <div class="input-group">
                                                    <input  type="file"  file-model="hero.profile_img" required="required" class="form-control fileinput">
                                                    <button type="submit" ng-click="save()" class="btn btn-success float-right">
                                                        <i class="fas fa-save"></i>
                                                        Edit My Profile Picture
                                                    </button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row margin-top" >
            <div class="col-md-12">
                <div class="card card-warning card-outline">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-sm-12 col-lg-6">
                                <label for="emp_code">Code</label>
                                <div class="input-group mb-3">
                                    <div class="input-group-prepend">
                                        <span class="input-group-text">E-</span>
                                    </div>
                                    <input disabled disabled ng-model="hero.emp_code" type="text" min="1" max="999" id="emp_code" class="form-control" placeholder="Code">
                                </div>
                                <!--<div class="form-group">
                                    <label for="emp_nick_name">Nick Name</label>
                                  <input disabled disabled ng-model="hero.emp_nick_name" type="text" id="emp_nick_name" class="form-control" placeholder="Nick Name">
                                </div>-->
                                <div class="form-group">
                                    <label for="emp_first_name">First Name</label>
                                    <input disabled disabled ng-model="hero.emp_first_name" type="text" id="emp_first_name" class="form-control" placeholder="First Name">
                                </div>
                                <div class="form-group">
                                    <label for="emp_middle_name">Middle Name</label>
                                    <input disabled disabled ng-model="hero.emp_middle_name" type="text" id="emp_middle_name" class="form-control" placeholder="Middle Name">
                                </div>
                                <div class="form-group">
                                    <label for="emp_last_name">Last Name</label>
                                    <input disabled disabled ng-model="hero.emp_last_name" type="text" id="emp_last_name" class="form-control" placeholder="Last Name">
                                </div>
                                <div class="form-group">
                                    <label>Date of Joining</label>
                                    <input disabled type=text
                                           placeholder='Date of Joining(DD-MM-YYYY)'
                                           class='form-control'
                                           ng-model='hero.emp_doj'>
                                </div>
                                <div class="form-group">
                                    <label for="emp_location">Location</label>
                                    <select disabled id="emp_location" class="form-control custom-select"
                                            ng-model="hero.emp_location" ng-options="l.value as l.label for l in locationOptions">
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="emp_email">Email</label>
                                    <input disabled disabled ng-model="hero.emp_email" type="email" id="emp_email" class="form-control" placeholder="Email">
                                </div>
                                <div class="form-group">
                                    <label for="emp_mobile">Mobile</label>
                                    <input disabled disabled ng-model="hero.emp_mobile" type="tel" maxlength="17" pattern="^[0-9()+ -]*$" id="emp_mobile" class="form-control" placeholder="Mobile">
                                </div>
                                <div class="form-group">
                                    <label>Marital Status</label>
                                    <div class="form-group">
                                        <div class="form-check">
                                            <input disabled disabled id="Single" ng-model="hero.emp_marital_status" class="form-check-input" type="radio" value="Single">
                                            <label for="Single" class="form-check-label">Single</label>
                                        </div>
                                        <div class="form-check">
                                            <input disabled disabled id="Married" ng-model="hero.emp_marital_status" class="form-check-input" type="radio" value="Married">
                                            <label for="Married" class="form-check-label">Married</label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label>Gender</label>
                                    <div class="form-group">
                                        <div class="form-check">
                                            <input disabled disabled id="Male" ng-model="hero.emp_gender" class="form-check-input" type="radio" value="Male">
                                            <label for="Male" class="form-check-label">Male</label>
                                        </div>
                                        <div class="form-check">
                                            <input disabled id="Female" ng-model="hero.emp_gender" class="form-check-input" type="radio" value="Female">
                                            <label for="Female" class="form-check-label">Female</label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-12 col-lg-6">
                                <div class="form-group">
                                    <label for="emp_skype">Skype id</label>
                                    <input disabled disabled ng-model="hero.emp_skype" type="text" id="emp_skype" class="form-control" placeholder="Skype">
                                </div>
                                <div class="form-group">
                                    <label for="emp_yoe">Total Years of Experience</label>
                                    <input disabled disabled ng-model="hero.emp_yoe" type="number" min="0" max="60" id="emp_yoe" class="form-control" placeholder="Years of Experience">
                                </div>
                                <div class="form-group">
                                    <label for="emp_relevant_yoe">Relevant Years of Experience</label>
                                    <input disabled disabled ng-model="hero.emp_relevant_yoe" type="number" min="0" max="60" id="emp_relevant_yoe" class="form-control" placeholder="Years of Experience">
                                </div>
                                <div class="form-group">
                                    <label for="emp_lm">Manager</label>
                                    <select disabled id="emp_lm" class="form-control custom-select"
                                            ng-model="hero.emp_lm" ng-options="l.employeeid as (l.emp_first_name+' '+l.emp_last_name) for l in managerOptions">
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="emp_pm">Project Manager</label>
                                    <select disabled id="emp_pm" class="form-control custom-select"
                                            ng-model="hero.emp_pm" ng-options="l.employeeid as (l.emp_first_name+' '+l.emp_last_name) for l in managerOptions">
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="emp_designation">Designation</label>
                                    <select disabled id="emp_designation" class="form-control custom-select"
                                            ng-model="hero.emp_designation" ng-options="ps.id as ps.desg_name for ps in designationOptions">
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="emp_department">Department</label>
                                    <select disabled id="emp_department" class="form-control custom-select"
                                            ng-model="hero.emp_department" ng-options="ps.value as ps.label for ps in departmentOptions">
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="proj_status">Status</label>
                                    <select disabled id="proj_status" class="form-control custom-select"
                                            ng-model="hero.emp_status" ng-options="ps.value as ps.label for ps in gstatus">
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="proj_status">Skills</label>
                                    <input disabled disabled ng-model="hero.emp_skills" type="text" class="form-control" placeholder="Skills">
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <div class="modal fade" id="modal-default">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <p>Are you sure to leave this page!</p>
                </div>
                <div class="modal-footer justify-content-between">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="goTo($event,'heroList')">Proceed</button>
                </div>
            </div>
        </div>
    </div>
</div>
