<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" type="image/png" href="<?= url('/assets/img/favicon.png'); ?>"/>

    <title>Admin Login | <?= Config::get('constants.title'); ?></title>

    <link href="<?= url('/'); ?>/assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?= url('/'); ?>/assets/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="<?= url('/'); ?>/assets/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="<?= url('/'); ?>/assets/css/animate.css" rel="stylesheet">
    <link href="<?= url('/'); ?>/assets/css/style.css" rel="stylesheet">
    <link href="<?= url('/'); ?>/assets/css/custom.css" rel="stylesheet">

</head>

<body class="gray-bg">

    <div class="middle-box text-center loginscreen animated fadeInDown">
        <div class="ibox-content">
            <!-- spinner -->
            <div class="sk-spinner sk-spinner-wave">
                <div class="sk-rect1"></div>
                <div class="sk-rect2"></div>
                <div class="sk-rect3"></div>
                <div class="sk-rect4"></div>
                <div class="sk-rect5"></div>
            </div>
            <!-- spinner -->
            <div>
                <div style="margin: 20px 0 60px;">
                    <!-- <h1 class="logo-name">T</h1> -->
                    <img src="<?= url('/assets/img/logo.png'); ?>">
                </div>
                <h3>Welcome to Timer</h3>
                <p>Login in. To see it in action.</p>
                <form class="m-t" role="form" id="login-form" action="<?= url('/admin/login'); ?>">
                    <?= csrf_field(); ?>
                    <div class="form-group cstm-form-ss">
                        <input type="text" class="form-control" placeholder="Username" id="username" name="username">
                    </div>
                    <div class="form-group cstm-form-ss">
                        <input type="password" class="form-control" placeholder="Password" id="password" name="password">
                    </div>
                    <button type="submit" class="btn btn-primary block full-width m-b" id="login-submit">Login</button>
                </form>
                <p class="m-t"> <small><?= Config::get('constants.title'); ?> App  &copy; <?= date('Y'); ?></small> </p>
            </div>
        </div>
    </div>

    <!-- Mainly scripts -->
    <script src="<?= url('/'); ?>/assets/js/jquery-3.1.1.min.js"></script>
    <script src="<?= url('/'); ?>/assets/js/bootstrap.min.js"></script>
    <script src="<?= url('/'); ?>/assets/js/plugins/toastr/toastr.min.js"></script>
    <script src="<?= url('/'); ?>/assets/js/login.js"></script>
    <script> function app_url(){ return '<?= url('/'); ?>'; } </script>

</body>

</html>