@extends('layouts.layout-2')

@section('content')
    <div class="card mb-4">
        <h6 class="card-header">
            {{__('Delete Account')}}
        </h6>
        <div class="card-body">
            <p>{{__('Confirm your identity with your password before proceeding.')}}</p>

            {!! Form::open(['url' => route('user_delete_account')]) !!}
            <div class="form-group row">
                <label class="col-form-label col-sm-2 text-sm-right">{{__('Password')}}*</label>
                <div class="col-sm-10">
                    <input class="form-control {{ $errors->has('old_password') ? 'is-invalid' : '' }}" type="password" name="old_password" placeholder="{{__('Password')}}*" required>
                    @if ($errors->has('old_password'))
                        <span class="invalid-feedback" role="alert">
                                <strong>{{ $errors->first('old_password') }}</strong>
                            </span>
                    @endif
                </div>
            </div>
            <div class="form-group row">
                <div class="col-sm-10 ml-sm-auto">
                    <button type="submit" class="btn btn-danger">{{__('Delete Account')}}</button>
                </div>
            </div>
            {!! Form::close() !!}
        </div>
    </div>
@endsection