@extends('flarum.forum::layouts.basic')
@inject('url', 'Flarum\Http\UrlGenerator')

@section('title', $translator->trans('core.views.reset_password.title'))

@section('content')
  @if ($errors->any())
    <div class="errors">
      <ul>
        @foreach ($errors->all() as $error)
          <li>{{ $error }}</li>
        @endforeach
      </ul>
    </div>
  @endif

  <form class="form" method="POST" action="{{ $url->to('forum')->route('savePassword') }}">
    <input type="hidden" name="csrfToken" value="{{ $csrfToken }}">
    <input type="hidden" name="passwordToken" value="{{ $passwordToken }}">

    <p class="form-group">
      <input type="password" class="form-control" name="password" placeholder="{{ $translator->trans('core.views.reset_password.new_password_label') }}">
    </p>

    <p class="form-group">
      <input type="password" class="form-control" name="password_confirmation" placeholder="{{ $translator->trans('core.views.reset_password.confirm_password_label') }}">
    </p>

    <p class="form-group">
      <button type="submit" class="button">{{ $translator->trans('core.views.reset_password.submit_button') }}</button>
    </p>
  </form>
@endsection
