@extends('layouts.my_layout')

@section('content')

    <div class="login-box">

        @guest
        <!-- /.login-logo -->
        <div class="login-box-body">
            <div class="login-logo">
                <img src="{{asset('public/mystyle')}}/country.svg" width="150px">
            </div>
            <div>
            <p class="login-box-msg">For security reasons <br> Sign in to view glass reports</p>
            </div>
            <form method="POST" action="{{ route('login') }}">
                    @csrf
                <div class="form-group has-feedback">
                    <input id="username" type="text" name="username" class="form-control" placeholder="Username" value="{{ old('username') }}">
                    <span class="fa fa-lock form-control-feedback"></span>

                    @if ($errors->has('username'))
                        <span class="text-danger">
                                        <strong>{{ $errors->first('username') }}</strong>
                                    </span>
                    @endif
                </div>

                <div class="form-group has-feedback">
                    <input type="password" id="password" class="form-control" placeholder="Password" name="password">
                    <span class="fa fa-key form-control-feedback"></span>

                    @if ($errors->has('password'))
                        <span class="text-danger">
                                        <strong>{{ $errors->first('password') }}</strong>
                                    </span>
                    @endif
                </div>
                <div class="row">
                    <div class="col-xs-8">
                        <div class="checkbox icheck">
                            <label>
                                <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }}> Remember Me
                            </label>
                        </div>
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-4">
                        <button type="submit" class="btn btn-primary btn-block btn-flat">Sign In</button>
                    </div>
                    <!-- /.col -->
                </div>
            </form>
            {{-- <a href=""{{ route('password.request') }}"">I forgot my password</a> --}}
            @if (Route::has('password.request'))
                <a class="btn btn-link" href="{{ route('password.request') }}">
                    {{ __('Forgot Your Password?') }}
                </a>
            @endif
            {{-- <a href="{{ route('password.request') }}">I forgot my password</a> --}}
            <hr>

            <div class="login-logo">
                <img src="{{asset('public/mystyle')}}/FIND_logo.png" width="120px">
            <div class="login-logo">

            {{-- <center> <a href="{{ url('/') }}"><span class="fa fa-home"></span> Back to home</a></center> --}}

        </div>
        <!-- /.login-box-body -->
    </div>

    @endguest
    @auth
        <h3>I am login</h3>

    @endauth

@stop
