@extends('layouts.app')

@section('content')
    <link href="{{asset('css/login.css')}}" rel="stylesheet"/>
    <div>
        <a class="hiddenanchor" id="signup"></a>
        <a class="hiddenanchor" id="signin"></a>

    <div class="login_wrapper" id="login-panel">
        <div class="animate form login_form">
          <section class="login_content">
            <form class="form-horizontal" method="POST" action="{{ route('login') }}">
                {{ csrf_field() }}
                @php
                    $logo_path =  'images/'.config('app.name').'_logo.png';
                @endphp
              <h1><img src="{{ asset($logo_path) }}" alt="" class="login-logo" /></h1>

              @if($errors->has('message'))
                <div class="alert alert-danger" onclick="this.classList.add('hidden')">{{ $errors->first('message') }}</div>
              @endif

              <div {{ $errors->has('email') ? ' has-error' : '' }}>
                    <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus placeholder="Email">

                    @if ($errors->has('email'))
                        <span class="help-block">
                            <strong>{{ $errors->first('email') }}</strong>
                        </span>
                    @endif
              </div>

              <div>
                    <input id="password" type="password" class="form-control" name="password" required placeholder="Password">

                    @if ($errors->has('password'))
                        <span class="help-block">
                            <strong>{{ $errors->first('password') }}</strong>
                        </span>
                    @endif
              </div>

              <div>
              <input class="btn btn-success submit btn2 login-btn2" type="submit" value="Login Now" />
              </div>
              <div class="clearfix"></div>
              <div class="ex-links">
                  <a href="{{ route('register') }}">Create New Account</a>

              </div>

              <div class="clearfix"></div>

              <div class="separator">
                <div>
                  <h1>{{ config('app.name') }} Portal</h1>
                  <p>© @php echo date('Y'); @endphp - {{ config('app.name') }} - All Rights Reserved </p>
                </div>
              </div>
            </form>
          </section>

        </div>

      </div>
    </div>
    <div class="footer-copyright text-center py-3">
        <strong> Secure SSL Area | This website is protected by secure portal © @php echo date('Y'); @endphp Clickletters LLC/M2C Academy LLC. All rights reserved.</strong>
    </div>


@endsection
