@extends('layouts.general')
@section('content')
      <main role="main" id="" class="">
        <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" method="POST" action="{{ route('login', ['management_code' => request()->route('management_code')]) }}">
                    <div class="col-12 col-lg-3 text-lg-center offset-0 offset-lg-1"><label>ログインID</label></div>
                    <div class="col-12 col-lg-7 mb10">
                      <input type="text" name="login_id" class="form-control form-control-lg" value="{{ old('login_id') }}" />
                    </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">
                      <input type="password" name="password" class="form-control form-control-lg" value="" /> 
                    </div>
                    <div class="col-12 col-lg-6 text-lg-center offset-0 offset-lg-3 mt30 mb50">
                      <div class="text-danger">@if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif</div><br />
                      <input type="submit" name="submit" class="btn btn-block btn-lg btn-success" value="ログイン" /><br>
                      <a href="{{route('member_regist',['management_code' => request()->route('management_code')])}}" class="text-secondary mt20">新規会員登録はこちら 〉</a><br>
                      <a href="{{route('password_reminder',['management_code' => request()->route('management_code')])}}" class="text-secondary mt20">パスワードを忘れた方はこちら 〉</a>
                    </div>
                    @csrf
                  </form>
                </div>
              </div>
            </div>
          </div>
        </section>
      </main>
@endsection