@extends('layouts.general')
@section('content')
      <section id="" class="container mt20 mb20">
        <div class="row">
          <div class="col-12 col-lg-10 offset-0 offset-lg-1 mt20 mb20">
            <div class="card border-success">
              <div class="card-header border-success">
                <h5 class="card-title text-success">パスワードの再設定</h5>
              </div>
              <div class="card-body mt30">
                <form class="row form" action="{{ route('password_reminder_complete', ['management_code' => request()->route('management_code')]) }}" method="post">
                  <div class="col-12 col-lg-3 text-lg-center offset-0 offset-lg-1">
                    <label for="user_primemail">メールアドレス</label>
                  </div>
                  <div class="col-12 col-lg-7 mb10">
                    <input type="email" name="email" class="form-control form-control-lg" placeholder="info@so-manager.com" value="{{ old('email') }}" />
                  </div>
                  <div class="col-12 col-lg-3 text-lg-center offset-0 offset-lg-1">
                    <label>電話番号</label>
                  </div>
                  <div class="col-12 col-lg-7 mb10">
                    <div class="row justify-content-between col-12 m-0 p-0">
                      <input type="text" maxlength="5" name="phone[]" value="{{ old('phone.0') }}" class="form-control form-control-lg check_key_int col-3"/>
                      <div class="align-self-center">ー</div>
                      <input type="text" maxlength="4" name="phone[]" value="{{ old('phone.1') }}" class="form-control form-control-lg check_key_int col-3"/>
                      <div class="align-self-center">ー</div>
                      <input type="text" maxlength="4" name="phone[]" value="{{ old('phone.2') }}" class="form-control form-control-lg check_key_int col-3"/>
                    </div>
                  </div>
                  <div class="col-12 col-lg-10 text-lg-center offset-0 offset-lg-1 mt30 mb20">
                    @if ($errors->has('email')) <p style="color: red;">{{ $errors->first('email') }}</p><br /> @endif
                    @if ($errors->has('phone.*')) <p style="color: red;">{{ $errors->first('phone.*') }}</p><br /> @endif
                    @if ($errors->has('nodata')) <p style="color: red;">{{ $errors->first('nodata') }}</p><br /> @endif
                    <p>パスワードの再発行を行います。<br>登録されているメールアドレスと自宅/携帯電話番号を入力して<br>「送信する」ボタンをクリックしてください。</p>
                  </div>
                  <div class="col-12 col-lg-6 text-lg-center offset-0 offset-lg-3 mb50">
                    <button type="submit" class="btn btn-block btn-lg btn-outline-success">送信する</button>
                    <a href="{{route('login_input',['management_code' => request()->route('management_code')])}}" class="btn btn-block btn-lg btn-outline-success">戻る</a>
                  </div>
                  @csrf
                </form>
              </div>
            </div>
          </div>
        </div>
      </section>
@endsection
