<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>HRFlo</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta content="" name="description"/>
    <meta content="" name="author"/>
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet"
          type="text/css"/>
    <link href="{{ URL::to('assets/css/vendor/font-awesome.min.css') }}" rel="stylesheet"
          type="text/css"/>
    <link href="{{ URL::to('assets/css/vendor/bootstrap.min.css') }}" rel="stylesheet"
          type="text/css"/>
    <link href="{{ URL::to('assets/css/site.css') }}" rel="stylesheet" type="text/css"/>
    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r;
            i[r] = i[r] || function () {
                        (i[r].q = i[r].q || []).push(arguments)
                    }, i[r].l = 1 * new Date();
            a = s.createElement(o),
                    m = s.getElementsByTagName(o)[0];
            a.async = 1;
            a.src = g;
            m.parentNode.insertBefore(a, m)
        })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');

        ga('create', 'UA-77743369-3', 'auto');
        ga('send', 'pageview');

    </script>
</head>
<body class="login-page">
<div class="container">
    <div class="row">
        <div class="col-xs-12">
            <div class="text-center center-block inside-circle">
                <p>HRFlo</p>
            </div>
        </div>
    </div>
    <?php
    $routeToAdmin = false;
    $routeToSuper = false;
    if (isset($admin_login)) $routeToAdmin = true;
    if (isset($super_login)) $routeToSuper = true;
    ?>
    <form class="login-form center-block" method="post"
          action="{{ $routeToAdmin? URL::action('Auth\AuthController@postAdminLogin'): (($routeToSuper)?URL::action('Auth\AuthController@postSuperLogin'):URL::action('Auth\AuthController@postLogin'))       }}">
        {!! csrf_field() !!}
        <div class="login-form-title text-center">
            Sign in to {{ \Session::get('company') }}.{{env('DOMAIN')}}
        </div>
        @if(\Session::has('system_message'))
            <div class="alert alert-success">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                {{ \Session::get('system_message') }}
            </div>
        @endif

        @include('partials.errors')

        <div class="form-group form-group-lg">
            <div class="input-group">
                <div class="input-group-addon">
                    <strong>Email</strong>
                </div>
                <input class="form-control" type="email" placeholder="Your Email" name="company_email"/>
            </div>
        </div>
        <div class="form-group form-group-lg">
            <div class="input-group">
                <div class="input-group-addon">
                    <strong>Password</strong>
                </div>
                <input class="form-control" type="password" placeholder="Your password" name="password"/>
            </div>
        </div>
        <div class="form-actions text-center">
            <div class="center-block">
                <button type="submit" class="btn btn-block btn-green">Sign in</button>
            </div>
            <div class="center-block" style="font-size:18px; padding: 25px">
                need help <a href="{{ URL::action('Auth\AuthController@getResetPassword') }}" id="forget-password"
                             class="btn-link"> recovering your password?</a>
            </div>

        </div>
    </form>
</div>
<div class="copyright">
    2015 © HRFlo. Administration Panel.
</div>
<script src="{{ URL::to('assets/js/vendor/jquery.min.js') }}" type="text/javascript"></script>
</body>
</html>