@extends('main')
@section('css')
<link href="{{ asset('/css/bootstrapValidator.min.css')}}" rel="stylesheet">
@endsection
@section('content')
   <section class="main_content">
    <div class="container">
       <div class="no-breadcrumb"></div>
   <!-- <ol class="breadcrumb cust-breadcrumb">
              <li><a href="{{url('/')}}">Home</a></li>
              <li class="active">Change Password</li>
            </ol>-->
            <div class="row">
          <div class="col-md-12">
          @if (Session::get('error_msg'))
              <div class="alert alert-danger">
                 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                   <span aria-hidden="true">&times;</span>
                 </button>
                  {{Session::get('error_msg')}}
              </div>
          @endif
          @if (Session::get('succ_msg'))
              <div class="alert alert-success">
                 <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                   <span aria-hidden="true">&times;</span>
                 </button>
                  {{Session::get('succ_msg')}}
              </div>
          @endif
          
             @if (count($errors) > 0)
                <div class="alert alert-danger">
                  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                      <span aria-hidden="true">&times;</span>
                 </button>
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            @endif 
          </div>
         </div>
      <div class="row talent_home">
          
            @include("left_menu")
        <div class="col-md-9 col-sm-8">
           
            @if (Session::has('message'))

            <p>{{ Session::get('message') }}</p>

            @endif
         
            
      
        <div class="row talent_data mtop-0">
           <h1 class="heading ac-set-head">Change Password</h1>
           <form class="" name="login" id="changepswd" action="{{ url('/user/changepwd') }}" method="post">
           <input type="hidden" name="_token" value="{{ csrf_token() }}">
          <div class="form">
              
            
            <div class="col-sm-12">
              <div class="form-group">
                  <input type="password" class="form-control" placeholder="Current Password" name="cur_pswd">
              </div>
            </div>
            <div class="col-sm-12">
              <div class="form-group">
                <input type="password" class="form-control" placeholder="New Password" name="password">
              </div>
            </div>
            <div class="col-sm-12">
              <div class="form-group">
                <input type="password" class="form-control" placeholder="Confirm New Password" name="password_confirmation">
              </div>
            </div>
            
            <div class="col-sm-12">
                <div class="sm-update-btns">
               <div class="col-sm-3 pull-right xs-clear mtop5"> <button type="button" class="form-control btn btn-primary " id="profile_cancel" name="profile_cancel" value="cancel">Cancel</button></div>
              <div class="col-sm-3 pull-right xs-clear mtop5">  <button type="submit" class="form-control pull-right btn btn-primary" name="Update" id="signup_submit" value="Update">Update</button></div>
                </div>
                <div class="clearfix"></div>
                <div class="xs-update-btns">
                <div class="col-sm-3 pull-right xs-clear mtop5">  <button type="submit" class="form-control pull-right btn btn-primary" name="Update" id="signup_submit" value="Update">Update</button></div>
                   <div class="clearfix"></div>
                <div class="col-sm-3 pull-right xs-clear mtop5"> <button type="button" class="form-control btn btn-primary " id="profile_cancel" name="profile_cancel" value="cancel">Cancel</button></div>
             
                </div>
            </div>
          </div>
        </form>       
        </div>
       </div>
      </div>
    </div>
  </section>

@endsection

@section('js')
<script src="{{ asset('js/bootstrapValidator.min.js')}}"></script>
<script src="{{ asset('js/maskedinput/jquery.maskedinput.min.js')}}"></script>
<script src="{{ asset('js/validation.js')}}"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).on('click','#profile_cancel',function(){
        location.href="{{url('myaccount')}}";
     }); 

})
</script>
@endsection
