@extends('layouts.ecc.main')

@section('content')
<div class="row">
    <div class="col-md-12 offset-md-4">
        <div class="card">
            <div class="content">
                <div class="row">
                    <div class="col-xs-2">
                        <div class="icon-big icon-info text-center">
                            <i class="fa fa-cogs"></i>
                        </div>
                    </div>
                    <div class="col-xs-10">
                        <div class="numbers">
                            <p>Options</p>
                        </div>
                    </div>
                </div>
                <div class="row" style="padding:25px;">
                    <h5>Modifier mon mot de passe</h5>
                    @if (session('status'))
                    <div class="alert alert-success">
                        <button type="button" aria-hidden="true" class="close">×</button>
                        <span><b> Votre mot de passe a été mis a jour !</span>
                    </div>
                @endif
                <form autocomplete="off" action="/ecc/settings/edit/password" method="POST">
                    @csrf
                    <div class="alert alert-warning" id="psw_alert" role="alert" style="display:none;">
                        Les mot de passe doivent être identique
                    </div>
                    <div class="form-group">
                      <label for="pws">Entrer votre nouveau mot de passe</label>
                      <input type="password" class="form-control" name="psw" id="psw" placeholder="Mot de passe" onkeyup="checkPassword()">
                    </div>
                    <div class="form-group">
                        <label for="pwsc">Confirmer votre nouveau mot de passe</label>
                        <input type="password" class="form-control" name="pswc" id="pswc" placeholder="Mot de passe" onkeyup="checkPassword()">
                    </div>
                    <button type="submit" id="submit" class="btn btn-primary" disabled>Enregistrer</button>
                </form>
                </div>
                <hr>
            </div>
        </div>    
    </div>
</div>  
@endsection

@section('active_page')
    <?php $active_page = "guide" ?>
@endsection

@section('custom_scripts')
<script src="/assets/admin/assets/js/user.js"></script>    
@endsection