Sindbad~EG File Manager

Current Path : /home/numerotech/www/livemt2023.aios-scientificcommittee.org/app/views/auth/
Upload File :
Current File : //home/numerotech/www/livemt2023.aios-scientificcommittee.org/app/views/auth/userupdate.blade.php

@extends('layout2')

@section('title')
  <title>Profile</title>
@stop

@section('script')

    <script type="text/javascript">
            var baseUrl = "{{ url('/') }}";

            var hdnUserId         = "#hdnUserId";
            var dobDateTimePicker = "#dobDateTimePicker";            
            var txtEmail = "#txtEmail";
            var ddlPrefix = "#ddlPrefix";
            var txtName = "#txtName";
            var ddlGender = "#ddlGender";
            var txtAdd1 ="#txtAdd1";
            var txtAdd2 = "#txtAdd2";
            var txtAdd3 = "#txtAdd3";
            var txtCity = "#txtCity";
            var ddlState ="#ddlState";
            var ddlCountry = "#ddlCountry";
            var txtPincode = "#txtPincode";            
            var txtPhoffice = "#txtPhoffice";
            var txtPhHome = "#txtPhHome";
            var txtISDcode = "#txtISDcode";
            var txtMobile ="#txtMobile";

            //Profile 2
            var ddlDegree   = "#ddlDegree";
            var ddlDiploma  = "#ddlDiploma";
            var ddlDNB      = "#ddlDNB";
            var txtPGOther  = "#txtPGOther";
            var ddlPGOtherYear = "#ddlPGOtherYear";
            var rbtnFellowship  = "#rbtnFellowship";
            var ddlFellowshipCat = "#ddlFellowshipCat";
            var txtTrainingPlace = "#txtTrainingPlace";
            var txtTrainingDuration = "#txtTrainingDuration";
            var txtPGTeachingYear  ="#txtPGTeachingYear";
            var rbtnCurrentlyInto = "#rbtnCurrentlyInto"
            var ddlPrivatePractice = "#ddlPrivatePractice"
            var ddlPPWorkingSince = "#ddlPPWorkingSince"
            var txttMCNameofCollage = "#txttMCNameofCollage"
            var ddlMCWorkingSince = "#ddlMCWorkingSince";
            var txtMCWorkingas = "#txtMCWorkingas";
            var txtGJNameofPlace = "#txtGJNameofPlace";
            var ddlGJWorkingSince = "#ddlGJWorkingSince";
            var txtNGJNameofPlace = "#txtNGJNameofPlace";
            var ddlNGJWorkingSince = "#ddlNGJWorkingSince";
            var ddlSpecilization  = "#ddlSpecilization";

            var rowFellowship = "#rowFellowship";
            var rowPP = "#rowPP";
            var rowMC = "#rowMC";
            var rowGJ = "#rowGJ";
            var rowNGJ = "#rowNGJ";
            var rowPassword = "#rowPassword";
            var rowAnyTecExperience = "#rowAnyTecExperience";
            var rowParticipate = "#rowParticipate";            
            

        $(function(){
                loadPassWord();

                LoadProfile2();

                LoadChangeCountry();

                $(dobDateTimePicker).datetimepicker( {
                        format:'D/MM/YYYY'
                      });

                $(ddlCountry).on('change', function() {
                  LoadChangeCountry();
                });

                $(ddlFellowshipCat).selectize({
                  maxItems: 30
                });

                $(ddlPrivatePractice).selectize({
                  maxItems: 10
                });

                $(ddlSpecilization).selectize({
                  maxItems: 3
                });

                //radio button change events
                $("input[name='rbtnCurrentlyInto']").on('change', function() {
                //$(".rbtnCurrentlyInto").change(function(e){
                  LoadCurrentlyInto();
                  //alert($("input[name='rbtnCurrentlyInto']:checked").val());
                });
                $("input[name='rbtnFellowship']").on('change', function() {                
                  LoadFellowship();                
                });
                $("input[name='rbtnPassword']").on('change', function() {                
                  loadPassWord();  
                });
                $("input[name='rbtnAnyTecExperience']").on('change', function() {                
                  loadTecExperience();  
                });

                $("input[name='rbtnParticipateJudge']").on('change', function() {                
                  loadParticipate();  
                });
                $("input[name='rbtnParticipateEvaluation']").on('change', function() {
                  loadParticipate();  
                });
        });  




            var is_member = true;
            var old_AIOSNo ="";   

            var memdata = "";            

            //Check User Name
            var checkUserName_msg = "";
            var checkUserName_msg_func = function () { return checkUserName_msg; };
            

            $(document).ready(function () {
              $.validator.setDefaults({ onkeyup: false });              
              // $.validator.addMethod("GetMember", function(value, element) {
              //     //delay(function(){
              //       if(value.length < 1)
              //       {
              //         return true;
              //       }
              //       if(value.length == 6)
              //       {
              //         var data = getMemberDetails(value);
              //         if(data['code'] == 0)
              //         {
              //             getMember_msg = data['msg'];
              //             return false;    
              //         }
              //         else if(data['code'] == 1)
              //         {
              //            if(old_AIOSNo != value)
              //             {
              //               is_member =false;
              //             }
              //             if(!is_member)
              //             {
              //               old_AIOSNo= value;
              //               is_member =true;
              //               getMember_msg ="";
              //               memdata = data['data'];
              //               SetMemberData(memdata);
              //               clearError();
              //               return true;
              //             }
              //             else
              //             {
              //              return true; 
              //             }
              //         }                
              //       }
              //    // },1000);
              //   }, getMember_msg_func ); 


//http://stackoverflow.com/questions/15136943/jquery-validate-out-of-two-blank-fields-at-least-one-field-must-be-filled-or-b
 jQuery.validator.addMethod("require_from_group", function (value, element, options) {
        var numberRequired = options[0];
        var selector = options[1];
        var fields = $(selector, element.form);
        var filled_fields = fields.filter(function () {
            // it's more clear to compare with empty string
            return $(this).val() != "";
        });
        var empty_fields = fields.not(filled_fields);
        // we will mark only first empty field as invalid
        if (filled_fields.length < numberRequired && empty_fields[0] == element) {
            return false;
        }
        return true;
        // {0} below is the 0th item in the options field
    }, "");

              $.validator.addMethod("CheckUserName", function(value, element) {
                 // delay(function(){
                    var data = checkUsername(value);
                    if(data['code'] == 0)
                    {
                        checkUserName_msg = data['msg'];
                        return false;    
                    }
                    else if(data['code'] == 1)
                    {
                        checkUserName_msg ="";                       
                        return true;
                    }         
                 // },1000);                         
                }, checkUserName_msg_func ); 

                $.validator.addMethod("isValidDate", function(value, element) {                 
                    return isValidDate(value);                    
                }, "Please enter a valid Date" ); 


              $("#form_reg").validate({
                ignore: ':hidden:not([class~=selectized]),:hidden > .selectized, .selectize-control .selectize-input input',
                  rules: {                        
                   txtEmail: {
                      required: true,
                      email: true,
                      CheckUserName:true
                    },          
                    rbtnPassword  :{
                      required: true
                    },    
                    password: {
                      required: {
                            depends: function(element){
                                if ($("input[name='rbtnPassword']:checked").val() == 1) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        },
                      minlength:6
                    },
                    password_confirmation: {
                      required: {
                            depends: function(element){
                                if ($("input[name='rbtnPassword']:checked").val() == 1) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        },                    
                      minlength:6,
                      equalTo: "#password"
                    },   
                    ddlPrefix: {
                      required: true                    
                    },  
                    ddlGender: {
                      required: true                    
                    },  
                    txtDOB:
                    {
                      required: true,
                      isValidDate:true
                    },
                    txtName: {
                      required: true,   
                      maxlength:250                 
                    },                                 
                    txtAdd1: {
                      required: true                    
                    },  
                    txtCity: {
                      required: true                    
                    },               
                    txtState: {
                      required: true                    
                    },               
                    txtPincode: {
                      required: true,
                      number: true,                    
                    },  
                    txtISDcode: {
                      required: true,
                      number: true,
                      maxlength:5
                    },              
                    txtMobile: {
                      required: true,
                      number: true,
                      maxlength:15                    
                    },
                    ddlDegree: {
                      require_from_group: [1,".PostGraduation"]                      
                    },
                    ddlDiploma: {
                      require_from_group: [1,".PostGraduation"]                      
                    },
                    ddlDNB: {
                      require_from_group: [1,".PostGraduation"]                      
                    },
                    txtOther: {
                      require_from_group: [1,".PostGraduation"]                      
                    },
                    ddlPGOtherYear: {
                      require_from_group: [1,".PostGraduation"]                      
                    },
                    txtPGOther: {
                        required: {
                            depends: function(element){
                                if ($(ddlPGOtherYear).val()) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    ddlPGOtherYear: {
                        required: {
                            depends: function(element){
                                if ($(txtPGOther).val()) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    rbtnFellowship:
                    {
                        required: true,
                    },
                    'ddlFellowshipCat[]':
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnFellowship']:checked").val() == 1) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    txtTrainingPlace:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnFellowship']:checked").val() == 1) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    txtTrainingDuration:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnFellowship']:checked").val() == 1) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    rbtnAnyTecExperience:
                    {
                        required: true,
                    },
                    txtPGTeachingYear :
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnAnyTecExperience']:checked").val() == 1) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        },
                    },
                    rbtnCurrentlyInto:
                    {
                      required: true,
                    },
                    'ddlPrivatePractice[]':
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_PP }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    ddlPPWorkingSince:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_PP }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    txttMCNameofCollage:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_MC }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    ddlMCWorkingSince:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_MC }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    txtMCWorkingas:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_MC }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    txtGJNameofPlace:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_GJ }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    ddlGJWorkingSince:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_GJ }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    txtNGJNameofPlace:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_NGJ }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    ddlNGJWorkingSince:
                    {
                        required: {
                            depends: function(element){
                                if ($("input[name='rbtnCurrentlyInto']:checked").val() == "{{ CustomClass::$Profile_NGJ }}") {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        }
                    },
                    'ddlSpecilization[]':
                    {
                        required: true,
                    },
                    rbtnParticipateJudge:
                    {
                        required: true,
                    },
                    rbtnParticipateEvaluation:
                    {
                        required: true,
                    },     
                    'chkParticipate[]' :
                    {
                      required: {
                            depends: function(element){
                                if ($("input[name='rbtnParticipateJudge']:checked").val() == 1 || $("input[name='rbtnParticipateEvaluation']:checked").val() == 1) {
                                    return true;
                                } else {
                                    return false;
                                }
                            }
                        },
                        maxlength: 3,
                    },
                  },
                  messages: {
                        password: {
                          required: "Please provide a password",
                          minlength: "Your password must be at least 5 characters long"
                        },
                        password_confirmation: {
                          required: "Please provide a password",
                          minlength: "Your password must be at least 5 characters long",
                          equalTo: "Please enter the same password"
                        },
                        txtEmail : {
                          required: "Please enter a valid email address", 
                          email: "Please enter a valid email address", 

                        },
                        txtAIOSNo: {
                         // GetMember: getMember_msg
                        },
                        ddlDegree: {
                          require_from_group: 'Please select atleast one "Year of Completion of Post Graduation"',                     
                        },
                        'chkParticipate[]' :
                        {
                          maxlength :'Please choose maximum 3 specialities' 
                        }

                        
                        
                  },                  
                  invalidHandler: function(form, validator) {

                      if (!validator.numberOfInvalids())
                          return;
//console.log(validator.errorList[0].element);
                      try {
                        $('html, body').animate({
                            scrollTop: $(validator.errorList[0].element).offset().top-200
                        }, 1000);
                      }
                      catch(err) {
                        //$('html, body').animate({ scrollTop: $("#form_reg").offset().top }, 300);
                      }

                  }
                });

            });

function onclientclick() {
  $(".alert").hide();
}

function loadPassWord() {
    $(rowPassword).hide();
    if($("input[name='rbtnPassword']:checked").val() == 1)
    {
        $(rowPassword).show();                    
    }
}




            function LoadProfile2() {
                LoadFellowship();
                LoadCurrentlyInto();                
                loadTecExperience();
                loadParticipate();
            }

            function loadParticipate() {
                $(rowParticipate).hide();                
                if($("input[name='rbtnParticipateJudge']:checked").val() == 1)
                {
                    $(rowParticipate).show();                    
                }
                if($("input[name='rbtnParticipateEvaluation']:checked").val() == 1)
                {
                    $(rowParticipate).show();                    
                }
            }

            function loadTecExperience() {
                $(rowAnyTecExperience).hide();
                if($("input[name='rbtnAnyTecExperience']:checked").val() == 1)
                {
                    $(rowAnyTecExperience).show();                    
                }
            }

            function LoadFellowship() {
                $(rowFellowship).hide();
                if($("input[name='rbtnFellowship']:checked").val() == 1)
                {
                    $(rowFellowship).show();                    
                }
            }

            function LoadCurrentlyInto() {
                $(rowPP).hide();
                $(rowMC).hide();
                $(rowGJ).hide();
                $(rowNGJ).hide();
                switch ($("input[name='rbtnCurrentlyInto']:checked").val()) {
                    case "{{ CustomClass::$Profile_PP }}":
                        $(rowPP).show();
                        break;
                    case "{{ CustomClass::$Profile_MC }}":
                        $(rowMC).show();
                        break;
                    case "{{ CustomClass::$Profile_GJ }}":
                        $(rowGJ).show();
                        break;
                    case "{{ CustomClass::$Profile_NGJ }}":
                        $(rowNGJ).show();
                        break;                
                }
            }

            function SetMemberData(data)
            {
                  $(txtEmail).val(data.email);
                  $(ddlPrefix).val(data.prefix);
                  $(txtName).val(data.name);
                  $(txtAdd1).val(data.address1);
                  $(txtAdd2).val(data.address2);
                  $(txtAdd3).val(data.address3);
                  $(txtCity).val(data.city);
                  $(txtState).val(data.state);
                  $(txtCountry).val(data.country);
                  $(txtPincode).val(data.pincode);
                  $(txtPhoffice).val(data.phone_office);
                  $(txtPhHome).val(data.phone_home);
                  $(txtISDcode).val(data.mobile_isd_code);
                  $(txtMobile).val(data.mobile);
            }
             
            function getMemberDetails(memNo) {
                    var result = null;
                    $.ajax({
                        url: baseUrl + '/getmemberdetails/' + memNo,
                        type: 'GET',
                        dataType: 'json',
                        async: false,
                        //data: {'pT': pT},            
                        })
                    .done(function(data) {                                          
                       result = data;
                    })
                    .fail(function() {
                        //alert("Internal Server Error");
                        //return false;
                    });     
                    return result;
            }

              function checkUsername(email) {
                    var result = null;
                    $.ajax({
                        url: baseUrl + '/checkusername/' + email,
                        type: 'GET',
                        dataType: 'json',
                        async: false,
                        data: {'user_id': $(hdnUserId).val()},            
                        })
                    .done(function(data) {                                          
                       result = data;
                    })
                    .fail(function() {
                        //alert("Internal Server Error");
                        //return false;
                    });     
                    return result;
            }
function clearError()
{
  $("label.error").hide();
  $(".error").removeClass("error");
}

function LoadChangeCountry() {
    var result = null;
        $.ajax({
            url: baseUrl + '/getstatesbycountry',
            type: 'POST',
            dataType: 'json',
            async: false,
            data: {'country_id':  $(ddlCountry).val()},            
            })
        .done(function(d) {                                          
           result = d;           
           setStates(result.data);
           $(ddlState).val("{{$user->state_id}}");
        })
        .fail(function() {
            //alert("Internal Server Error");
            //return false;
        });     
        return result;
}

function setStates(arr) {
  $(ddlState).html("");
  for (var i = 0; i < arr.length; i++) {
    $(ddlState).append($("<option>")
      .val(arr[i].state_id)
      .html(arr[i].state_name)
    );  
  };
}


//Function to delay searching for a specified time
var delay = (function(){
    var timer = 0;
    return function(callback, ms){
    clearTimeout (timer);
    timer = setTimeout(callback, ms);
    };
})();           


    </script>      
@stop

@section('content')     

{{ Form::open(array('url' => 'userupdate/'.$user->uuid,'role'=>'form','id'=>'form_reg','files'=>true)) }}
{{ Form::hidden("hdnUserId",$user->user_id , array('id' =>'hdnUserId')) }}

<hr />
<div class="row">
<div class="col-sm-12">
 
            
          </div>
</div>

{{-- Profile 2 --}}
<div class="panel panel-danger">
  <div class="panel-body">
  <p> {{ $user->prefix .'.'. $user->first_name }} </p>

   <p> Scientific Committee would like to involve the Members in various scientific activities of AIOS like: </p>    
    <ul id="list">
      <li>Evaluation of Instruction course / Free Papers/ E-Poster / Videos / Physical Poster </li>
      <li>Judge / Chairing / Moderating a Session during the annual conference.</li>          
      <li>Participation as a Faculty in Invited Sessions etc. </li>
      </ul>
    <p>
    Request You to Provide more details about yourself. 
    <br /><br />
    This will help us use your expertise in an appropriate way.
    </p>
  </div>
</div>

 <div class="row">    
      <div class="col-sm-12">                              
             <h5> Year of Completion of Post Graduation <sup>*</sup></h5> 
             <label id="ddlDegree-error" class="error" for="ddlDegree"></label>
      </div>

      <div class="col-sm-4">            
            <label>Degree : </label>
            <div class="form-group">                           
               {{ Form::select('ddlDegree',$years,isset($profile2->pg_degree_on)?$profile2->pg_degree_on:'',array("id"=>"ddlDegree","class"=>"form-control ddlDegree PostGraduation"))}} 
            </div>
      </div>

      <div class="col-sm-4">            
           <label>Diploma : </label>
            <div class="form-group">                           
               {{ Form::select('ddlDiploma',$years,isset($profile2->pg_diploma_on)?$profile2->pg_diploma_on:'' ,array("id"=>"ddlDiploma","class"=>"form-control ddlDiploma PostGraduation"))}} 
            </div>
      </div>

      <div class="col-sm-4">            
           <label>DNB : </label>
            <div class="form-group">                           
               {{ Form::select('ddlDNB',$years,isset($profile2->pg_dnb_on)?$profile2->pg_dnb_on:'',array("id"=>"ddlDNB","class"=>"form-control ddlDNB PostGraduation"))}} 
            </div>
      </div>

      <div class="col-sm-12">            
           <label>Others ( Please specify ) : </label>
      </div>
            
      <div class="col-sm-4">            
          <div class="form-group">     
          {{ Form::text('txtPGOther',isset($profile2->pg_other)?$profile2->pg_other:'',array('maxLength'=>'500','class' => 'form-control PostGraduation' , 'id' => 'txtPGOther')) }} 
          </div>                     
       </div>
      <div class="col-sm-4">       
          <div class="form-group">          
          {{ Form::select('ddlPGOtherYear',$years,isset($profile2->pg_other_on)?$profile2->pg_other_on:'' ,array("id"=>"ddlPGOtherYear","class"=>"form-control ddlPGOtherYear PostGraduation"))}}
          </div> 
      </div>            
 </div>

<div class="row">    
      <div class="col-sm-12">                              
             <h5> Any Fellowship Training / Registrar / Senior Residency : <sup>*</sup></h5> 
           
      </div>
      <div class="col-sm-4">                                                                         
            <label>  {{ Form::radio('rbtnFellowship',1, isset($profile2->any_fellowship)?($profile2->any_fellowship==1?true:false):false, ['class' => '']) }} Yes </label>
             <label> {{ Form::radio('rbtnFellowship',0, isset($profile2->any_fellowship)?($profile2->any_fellowship==0?true:false):false, ['class' => '']) }} No </label> 
               <label id="rbtnFellowship-error" class="error" for="rbtnFellowship"></label>            
          
      </div>
      <div class="col-sm-12" id="rowFellowship">          
            <div class="col-sm-4">                              
              <label>In which Speciality <sup>*</sup></label>                 
                  {{ Form::select('ddlFellowshipCat[]',$FPCategories,isset($profile2->fellowship_speciality)?explode(',', $profile2->fellowship_speciality) :'',array("id"=>"ddlFellowshipCat","class"=>"form-control ddlFellowshipCat","multiple"=>true))}}
                  <label id="ddlFellowshipCat-error" class="error" for="ddlFellowshipCat"></label>
                  
            </div>
            <div class="col-sm-4"> 
              <label>Place of Training <sup>*</sup></label>                             
               {{ Form::text('txtTrainingPlace',isset($profile2->fellowship_training_place)?$profile2->fellowship_training_place:'',array('maxLength'=>'500','class' => 'form-control' , 'id' => 'txtTrainingPlace')) }} 
            </div>
            <div class="col-sm-4">                            
              <label>Duration of Training <sup>*</sup></label>  
               {{ Form::text('txtTrainingDuration',isset($profile2->fellowship_training_duration)?$profile2->fellowship_training_duration:'',array('maxLength'=>'500','class' => 'form-control' , 'id' => 'txtTrainingDuration')) }} 
            </div>          
      </div>
</div>

<hr />

<div class="row">    
      <div class="col-sm-12">                              
            <h5>Any teaching experience? <sup>*</sup> </h5>
      </div>
      <div class="col-sm-9">                                                                       
            <label>  {{ Form::radio('rbtnAnyTecExperience',1,  isset($profile2->any_tec_experience)?($profile2->any_tec_experience==1?true:false):false, ['class' => '']) }} Yes </label>
             <label> {{ Form::radio('rbtnAnyTecExperience',0, isset($profile2->any_tec_experience)?($profile2->any_tec_experience==0?true:false):false, ['class' => '']) }} No </label>
             <label id="rbtnAnyTecExperience-error" class="error" for="rbtnAnyTecExperience"></label>
      </div>
      <div class="col-sm-6" id="rowAnyTecExperience">                              
           <label>How many years of teaching experience do you have? <sup>*</sup></label>
            <div class="form-group">          
           {{ Form::text('txtPGTeachingYear',isset($profile2->teaching_years)?$profile2->teaching_years:'',array('maxLength'=>'500','class' => 'form-control' , 'id' => 'txtPGTeachingYear')) }} 
          </div> 
      </div>
      <div class="col-sm-4">                              
        
      </div>
</div>
<hr />
<div class="row">    
      <div class="col-sm-12">                              
             <h5>Currently Into  : <sup>*</sup></h5> 
             <label id="rbtnCurrentlyInto-error" class="error" for="rbtnCurrentlyInto"></label>
      </div>      
</div>
<div class="row">          
      <div class="col-sm-6">     
            <label>{{ Form::radio('rbtnCurrentlyInto',CustomClass::$Profile_PP, isset($profile2->currentlyinto_type)?($profile2->currentlyinto_type==CustomClass::$Profile_PP?true:false):false, ['class' => 'rbtnCurrentlyInto']) }} {{ CustomClass::$Profile_PP }} </label>            
      </div>        
      <div class="col-sm-12" id="rowPP">     
            {{-- <div class="row" >          --}} 
              <div class="col-sm-6">     
                <div class="form-group">          
                <label> <br /></label>
                  {{ Form::select('ddlPrivatePractice[]',['Solo'=>'Solo','Group'=>'Group','Corporate set up'=>'Corporate set up','Others' =>'Others'],isset($profile2->private_practice)?explode(',', $profile2->private_practice):'',array("id"=>"ddlPrivatePractice","class"=>"form-control ddlPrivatePractice","multiple"=>true))}}
                  <label id="ddlPrivatePractice-error" class="error" for="ddlPrivatePractice"></label>
                </div> 
              </div>
              <div class="col-sm-6">     
                 <label>Working since <sup>*</sup></label> 
                 {{ Form::select('ddlPPWorkingSince',$years,isset($profile2->pp_working_since)?$profile2->pp_working_since:'',array("id"=>"ddlPPWorkingSince","class"=>"form-control ddlPPWorkingSince"))}} 
              </div>

              <div class="col-sm-6">     
                
              </div>
              <div class="col-sm-6">     
                  
              </div>

            {{-- </div> --}}
      </div>        

</div>

<div class="row">          
      <div class="col-sm-6">     
            <label>{{ Form::radio('rbtnCurrentlyInto',CustomClass::$Profile_MC, isset($profile2->currentlyinto_type)?($profile2->currentlyinto_type==CustomClass::$Profile_MC?true:false):false, ['class' => 'rbtnCurrentlyInto']) }} Medical College </label>            
      </div>        
      <div class="col-sm-12" id="rowMC">     
            {{-- <div class="row" >          --}} 
              <div class="col-sm-4">     
                <div class="form-group">          
                <label> Name of College <sup>*</sup></label>
                 {{ Form::text('txttMCNameofCollage',isset($profile2->medical_college)?$profile2->medical_college:'',array('maxLength'=>'500','class' => 'form-control' , 'id' => 'txttMCNameofCollage')) }}
                </div> 
              </div>
              <div class="col-sm-4">     
                 <label>Working since <sup>*</sup></label> 
                 {{ Form::select('ddlMCWorkingSince',$years,isset($profile2->mc_working_since)?$profile2->mc_working_since:'',array("id"=>"ddlMCWorkingSince","class"=>"form-control ddlMCWorkingSince"))}} 
              </div>
              <div class="col-sm-4">     
                <div class="form-group">          
                <label>Working as <sup>*</sup></label>
                 {{ Form::text('txtMCWorkingas',isset($profile2->mc_working_as)?$profile2->mc_working_as:'',array('maxLength'=>'500','class' => 'form-control' , 'id' => 'txtMCWorkingas')) }}
                </div> 
              </div>

              <div class="col-sm-6">     
                
              </div>
              <div class="col-sm-6">     
                  
              </div>

            {{-- </div> --}}
      </div>        

</div>

<div class="row">          
      <div class="col-sm-6">     
            <label>{{ Form::radio('rbtnCurrentlyInto',CustomClass::$Profile_GJ, isset($profile2->currentlyinto_type)?($profile2->currentlyinto_type==CustomClass::$Profile_GJ?true:false):false, ['class' => 'rbtnCurrentlyInto']) }} {{ CustomClass::$Profile_GJ }} </label>            
      </div>        
      <div class="col-sm-12" id="rowGJ">     
            {{-- <div class="row" >          --}} 
              <div class="col-sm-6">     
                <div class="form-group">          
                <label>Name of Place where employed <sup>*</sup></label>
                  {{ Form::text('txtGJNameofPlace',isset($profile2->government_job)?$profile2->government_job:'',array('maxLength'=>'500','class' => 'form-control' , 'id' => 'txtGJNameofPlace')) }}
                </div> 
              </div>
              <div class="col-sm-6">     
                 <label>Working since <sup>*</sup></label> 
                 {{ Form::select('ddlGJWorkingSince',$years,isset($profile2->gov_job_working_since)?$profile2->gov_job_working_since:'',array("id"=>"ddlGJWorkingSince","class"=>"form-control ddlGJWorkingSince"))}} 
              </div>

              <div class="col-sm-6">     
                
              </div>
              <div class="col-sm-6">     
                  
              </div>

{{--             </div> --}}
      </div>        

</div>

<div class="row">          
      <div class="col-sm-6">     
            <label>{{ Form::radio('rbtnCurrentlyInto',CustomClass::$Profile_NGJ, isset($profile2->currentlyinto_type)?($profile2->currentlyinto_type==CustomClass::$Profile_NGJ?true:false):false, ['class' => 'rbtnCurrentlyInto']) }} {{ CustomClass::$Profile_NGJ }} </label>            
      </div>        
      <div class="col-sm-12"  id="rowNGJ">     
            {{-- <div class="row" >           --}}
              <div class="col-sm-6">     
                <div class="form-group">          
                <label>   Name of Place where employed <sup>*</sup></label>
                  {{ Form::text('txtNGJNameofPlace',isset($profile2->non_gov_job)?$profile2->non_gov_job:'',array('maxLength'=>'500','class' => 'form-control' , 'id' => 'txttNGJNameofPlace')) }}
                </div> 
              </div>
              <div class="col-sm-6">     
                 <label>Working since <sup>*</sup></label> 
                 {{ Form::select('ddlNGJWorkingSince',$years,isset($profile2->Non_gov_job_working_since)?$profile2->Non_gov_job_working_since:'',array("id"=>"ddlNGJWorkingSince","class"=>"form-control ddlNGJWorkingSince"))}} 
              </div>

              <div class="col-sm-6">     
                
              </div>
              <div class="col-sm-6">     
                  
              </div>

            {{-- </div> --}}
      </div>        

</div>

<hr />

<div class="row">
            <div class="col-sm-12">  
            <h5>                            
              What is your Specialization <sup>*</sup>
              </h5>                       
                  {{ Form::select('ddlSpecilization[]',$VTCategories,isset($profile2->specilization)?
                  explode(',', $profile2->specilization):'',array("id"=>"ddlSpecilization","class"=>"form-control ddlSpecilization","multiple"=>true))}}
                  <label id="ddlSpecilization-error" class="error" for="ddlSpecilization"></label>
            </div>           
          </div>

<hr />

<div class="row">    
      <div class="col-sm-10">                              
             Would you like to participate as Chairperson/ Convenor/ Co-Convenor/ Moderator / Judge, etc... in the annual conference <sup>*</sup>
      </div>
      <div class="col-sm-2">                                         
            <label>  {{ Form::radio('rbtnParticipateJudge',1, isset($profile2->participate_Judge)?($profile2->participate_Judge==1?true:false):false, ['class' => '']) }} Yes </label>
             <label> {{ Form::radio('rbtnParticipateJudge',0, isset($profile2->participate_Judge)?($profile2->participate_Judge==0?true:false):false, ['class' => '']) }} No </label>              
             <label id="rbtnParticipateJudge-error" class="error" for="rbtnParticipateJudge"></label>          
      </div>
</div>

<div class="row">    
      <div class="col-sm-10">                              
            Would you like to participate in evaluation of Instruction courses, Free Papers, E-Posters, Physical Posters or Videos ? <sup>*</sup>
      </div>
      <div class="col-sm-2">                                                         
            <label>  {{ Form::radio('rbtnParticipateEvaluation',1, isset($profile2->participate_evaluation)?($profile2->participate_evaluation==1?true:false):false, ['class' => '']) }} Yes </label>
             <label> {{ Form::radio('rbtnParticipateEvaluation',0, isset($profile2->participate_evaluation)?($profile2->participate_evaluation==0?true:false):false, ['class' => '']) }} No </label>              
             <label id="rbtnParticipateEvaluation-error" class="error" for="rbtnParticipateEvaluation"></label>          
      </div>
</div>
<div class="row" id="rowParticipate">    
      <div class="col-sm-12">
        <label>Choose your preferred specialities. (Maximum 3) <sup>*</sup></label>
        <label id="chkParticipate[]-error" class="error" for="chkParticipate[]"></label>
      </div>
      <div class="col-sm-12">
      <ul class="checkbox-grid">
        @foreach ($FPCategories as $key => $value)
        <li>
          <label> <input tabindex="1" type="checkbox" name="chkParticipate[]" value="{{ $key }}"  <?php 
          if(isset($profile2->participate_sections))
          {
            if(in_array($key,explode(',', $profile2->participate_sections) ))
            {
              echo "checked";
            }
          }
          else
          {
           // echo "checked";
          }

           ?>           
          > {{ $value }} </label> </li>
        @endforeach
        </ul>
      </div>      
</div>
<hr />
<div class="row">            
          <div class="col-sm-12">           
              <div class="form-group">    
                <label>Any Other Remarks : </label>                  
                   {{ Form::text('txtAnyRemarks',isset($profile2->any_remarks)? $profile2->any_remarks :'' ,array('maxLength'=>'250','class' => 'form-control', 'id' => 'txtAnyRemarks' , 'placeholder' => 'Remarks')) }}                              
              </div>
          </div>
</div>

<h3>Profile</h3>
<hr>
      <div class="row">            
        <div class="col-sm-6">           
            <div class="form-group">    
              <h4> Membership No :</h4>                  
              @if(!empty($user->membership_no))
              <label>{{  $user->membership_no }}</label>
              @else
              <label>NOT A MEMBER</label>
              @endif
            </div>
        </div>
        
      </div>


          <div class="row">            
            <div class="col-sm-6">           
                <div class="form-group">    
                  <label>EMail Id (Will be your User name) : <sup>*</sup></label>                  
                     {{ Form::text('txtEmail',$user->email,array('maxLength'=>'250','class' => 'form-control req', 'id' => 'txtEmail' , 'placeholder' => 'Email')) }}                              
                </div>
            </div>
          </div>


<div class="row">    
      <div class="col-sm-3">                              
             Want to change password? <sup>*</sup>
      </div>
      <div class="col-sm-9">                                                                       
            <label>  {{ Form::radio('rbtnPassword',1, false, ['class' => '']) }} Yes </label>
             <label> {{ Form::radio('rbtnPassword',0, false, ['class' => '']) }} No </label>
             <label id="rbtnPassword-error" class="error" for="rbtnPassword"></label>          
      </div>
      <div class="col-sm-12" id="rowPassword">                              
          <div class="col-sm-6">               
            <div class="form-group">
                <label> New Password : <sup>*</sup></label>                       
                   <input type="password" name="password" class="form-control" placeholder="Password" required id="password" maxlength="20" >                        
            </div>
          </div>

          <div class="col-sm-6">               
              <div class="form-group">
                  <label>Confirm Password : <sup>*</sup></label>                  
                   <input type="password" name="password_confirmation" class="form-control req" placeholder="Confirm Password" required id="password_confirmation" maxlength="20">
              </div>  
          </div>
      </div>
</div>


          
<!--End Login details  -->

            <h3>Personal details</h3>
<!-- Personal details  -->
            <hr>
            <div class="row">                 
            <div class="col-sm-2">    
                <div class="form-group">                       
                  <label>Prefix : <sup>*</sup></label>                  
                  {{ Form::select('ddlPrefix',array(''=>'--select--', 'Dr' => 'Dr', 'Mr' => 'Mr', 'Mrs' => 'Mrs', 'Ms' => 'Ms','Prof'=>'Prof'),$user->prefix,array("id"=>"ddlPrefix","class"=>"form-control ddlPrefix"))}}               
                </div>
            </div>            
            <div class="col-sm-4">    
                <div class="form-group">                           
                  <label> Name : <sup>*</sup></label>     
                  {{ Form::text('txtName',$user->first_name,array('maxLength'=>'250','class' => 'form-control' , 'id' => 'txtName')) }}
                </div>                
            </div>
            <div class="col-sm-3">    
                <div class="form-group">                           
                  <label>Gender : </label>     
                  {{ Form::select('ddlGender',[''=>'--select--','Male'=>'Male','Female'=>'Female'],$user->gender,array("id"=>"ddlGender","class"=>"form-control ddlGender"))}} 
                </div>                
            </div>
            <div class="col-sm-3">    
                <div class="form-group">                       
                   <label>DOB : <sup>*</sup></label>         
                   <div class='input-group date' id='dobDateTimePicker'>              
                   {{ Form::text('txtDOB',Helper::fromDBDate($user->dob), array('id'=>'txtDOB','class' => 'form-control', 'maxlength' => '10','placeholder' => 'dd/mm/yyyy'))}}    
                        <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                        </span>
                  </div>
                  <label id="txtDOB-error" class="error" for="txtDOB"></label>
                  
                </div>                
            </div>
            </div>
            <div class="row">       

            <div class="col-sm-6">    
                <div class="form-group">                           
                  <label> Address Line 1 : <sup>*</sup></label>     
                  {{ Form::text('txtAdd1',$user->address1,array('maxLength'=>'250','class' => 'form-control' , 'id' => 'txtAdd1')) }}
                </div>                
            </div>
              <div class="col-sm-6">    
                <div class="form-group">                           
                  <label> Address Line 2 : </label>     
                  {{ Form::text('txtAdd2',$user->address2,array('maxLength'=>'250','class' => 'form-control' , 'id' => 'txtAdd2')) }}
                </div>                
            </div>

            </div>
            <div class="row">         
          
            <div class="col-sm-6">    
                <div class="form-group">                           
                  <label> Address Line 3 : </label>     
                  {{ Form::text('txtAdd3',$user->address3,array('maxLength'=>'250','class' => 'form-control' , 'id' => 'txtAdd3')) }}
                </div>                
            </div>
             <div class="col-sm-6">    
                <div class="form-group">                           
                  <label> City : <sup>*</sup></label>     
                  {{ Form::text('txtCity',$user->city,array('maxLength'=>'250','class' => 'form-control' , 'id' => 'txtCity')) }}
                </div>                
            </div>
            </div>
            <div class="row">         
              <div class="col-sm-6">    
                <div class="form-group">                           
                  <label> Country : </label>     
                  {{ Form::select('ddlCountry',$countries,empty($user->country_id)?'100':$user->country_id,array("id"=>"ddlCountry","class"=>"form-control ddlCountry"))}}                     
              </div>                
            </div>
              <div class="col-sm-6">    
                  <div class="form-group">                           
                    <label> State : <sup>*</sup></label>     
                    {{ Form::select('ddlState',[],$user->state_id,array("id"=>"ddlState","class"=>"form-control ddlState"))}} 
                  </div>                
              </div>
            
            </div>
            <div class="row">                    
            
              <div class="col-sm-6">                               
                    <div class="form-group">                           
                    <label> Pincode : <sup>*</sup></label>
                       {{ Form::text('txtPincode',$user->pincode,array('maxLength'=>'10','class' => 'form-control zipcode' , 'id' => 'txtPincode')) }}
                    </div>
              </div>
                {{-- <div class="col-sm-6">                                
                    <div class="form-group">      
                      <label> Attach profile picture : </label>                     
                      {{ Form::file('fileProfile') }}
                    </div>
                </div> --}}
            </div>
<!-- End Personal details  -->
            <h3>Contact details</h3>

<!-- Contact details  -->
        <hr>
        <div class="row">     
            <div class="col-sm-6">            
                  <label> Phone - Office : </label>
                  <div class="form-group">                           
                     {{ Form::text('txtPhoffice',$user->phone_office,array('maxLength'=>'100','class' => 'form-control' , 'id' => 'txtPhoffice')) }}
                  </div>
            </div>
            <div class="col-sm-6">            
                  <label> Phone - Residence : </label>
                  <div class="form-group">                           
                     {{ Form::text('txtPhHome',$user->phone_home,array('maxLength'=>'100','class' => 'form-control' , 'id' => 'txtPhHome')) }}
                  </div>
            </div>
            </div>
            <div class="row">    
            <div class="col-sm-2">            
                  <label> ISD Number : <sup>*</sup></label>
                  <div class="form-group">                           
                     {{ Form::text('txtISDcode',$user->mobile_isd_code,array('maxLength'=>'5','class' => 'form-control pin' , 'id' => 'txtISDcode')) }}
                  </div>
            </div>

            <div class="col-sm-4">            
                  <label> Mobile : <sup>*</sup></label>
                  <div class="form-group">                           
                     {{ Form::text('txtMobile',$user->mobile,array('maxLength'=>'12','class' => 'form-control' , 'id' => 'txtMobile')) }}
                  </div>
            </div>
            </div>

            <div class="row">  
            <div class="col-sm-12 text-center"  >  
             <input type="submit" value="Save" id ="btnSubmit" onclick="onclientclick()" class="btn red">
            </div>            

    

</div>

{{ Form::close() }}
@stop

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists