@extends('layouts.admin')

@section('main')
<div class="row">
    <div class="col-md-12">
        <div class="card">
            <div class="card-body">

                <form id="form1" action="{{ $action }}" method="POST">
                    @csrf
                    @method('PUT')

                    <div class="row pb-5">
                        <div class="col-md-12 buttons pr-0 text-right">
                            <button
                                type  = "submit"
                                title = "Guardar"
                                class = "btn btn-action btn-add btn-primary btn-sm"
                            ><span><i class="fas fa-check"></i> Guardar</button>
                            <a
                                href  = "{{ route('dashboard') }}"
                                class = "btn btn-cancel btn-add btn-primary btn-sm"
                                title = "Cancelar"
                            ><span class="text-white"><i class="fas fa-plus"></i> Cancelar</a>
                        </div>
                    </div>


                    <div class="row">

                        <div class="col-md-4">

                            <div class="form-group">
                                <label for="old_password">{{ __('Contraseña actual') }}</label>
                                <input class="form-control  @error('old_password') is-invalid @enderror" type="password" id="old_password" name="old_password" >
                                @error('old_password')<span class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></span>@enderror
                            </div>
                        </div>

                        <div class="col-md-4">

                            <div class="form-group">
                                <label for="password">{{ __('Nueva contraseña') }}</label>
                                <input class="form-control  @error('password') is-invalid @enderror" type="password" id="password" name="password">
                                @error('password')<span class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></span>@enderror

                            </div>
                        </div>

                        <div class="col-md-4">

                            <div class="form-group">
                                <label for="password">{{ __('Confirmar nueva contraseña') }}</label>
                                <input class="form-control  @error('password_confirmation') is-invalid @enderror" type="password" id="password_confirmation" name="password_confirmation">
                                @error('password_confirmation')<span class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></span>@enderror

                            </div>

                        </div>
                    </div>


                </form>
            </div>
        </div>
    </div>
</div>
@endsection
