{{-- @extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">{{ __('Login') }}</div>

                <div class="card-body">
                    <form method="POST" action="{{ route('login') }}">
                        @csrf

                        <div class="form-group row">
                            <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>

                                @error('email')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">

                                @error('password')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>

                        <div class="form-group row">
                            <div class="col-md-6 offset-md-4">
                                <div class="form-check">
                                    <input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>

                                    <label class="form-check-label" for="remember">
                                        {{ __('Remember Me') }}
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group row mb-0">
                            <div class="col-md-8 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Login') }}
                                </button>

                                @if (Route::has('password.request'))
                                    <a class="btn btn-link" href="{{ route('password.request') }}">
                                        {{ __('Forgot Your Password?') }}
                                    </a>
                                @endif
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection --}}

<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>{{ config('app.name', 'Laravel') }}</title>
    <!-- plugins:css -->
    <link rel="stylesheet" href="{{ asset('staradmin') }}/vendors/feather/feather.css">
    <link rel="stylesheet" href="{{ asset('staradmin') }}/vendors/mdi/css/materialdesignicons.min.css">
    <link rel="stylesheet" href="{{ asset('staradmin') }}/vendors/ti-icons/css/themify-icons.css">
    <link rel="stylesheet" href="{{ asset('staradmin') }}/vendors/typicons/typicons.css">
    <link rel="stylesheet" href="{{ asset('staradmin') }}/vendors/simple-line-icons/css/simple-line-icons.css">
    <link rel="stylesheet" href="{{ asset('staradmin') }}/vendors/css/vendor.bundle.base.css">
    <!-- endinject -->
    <!-- Plugin css for this page -->
    <!-- End plugin css for this page -->
    <!-- inject:css -->
    <link rel="stylesheet" href="{{ asset('staradmin') }}/css/vertical-layout-light/style.css">
    <!-- endinject -->
    <link rel="shortcut icon" href="{{ asset('staradmin') }}/images/favicon.png" />
</head>

<body>
    <div class="container-scroller">
        <div class="container-fluid page-body-wrapper full-page-wrapper">
            <div class="content-wrapper d-flex align-items-center auth px-0">
                <div class="row w-100 mx-0">
                    <div class="col-lg-4 mx-auto">


                        <div class="auth-form-light text-left py-5 px-4 px-sm-5"
                            style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);">

                            <div style="margin: auto; width: 50%; text-align: center;">
                                <img src="{{ asset('staradmin') }}/images/logo-uin.png"
                                    style="max-width: 70%; height: auto;">

                            </div>
                            <br>
                            <h2 style="text-align: center; font-family: 'Copperplate', fantasy; color: #014692;">LOGIN ADMIN SIPENA
                            </h2>
                            <h3 style="text-align: center; font-family: 'Copperplate', fantasy; color: #014692;">Sistem
                                Informasi Penelitian Dosen</h3>
                            <br>
                            <h6 class="fw-light">Silahkan Login sebagai Admin Untuk Melanjutkan</h6>
                            <br>

                            <form method="POST" action="{{ route('login') }}">
                                @csrf
        
                                <div class="form-group">
                                    <label for="email">{{ __('E-Mail Address') }}</label>
        
                                        <input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
        
                                        @error('email')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $message }}</strong>
                                            </span>
                                        @enderror
                                </div>
                                <div class="form-group">
                                    <label for="password">{{ __('Password') }}</label>
        
                                        <input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
        
                                        @error('password')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $message }}</strong>
                                            </span>
                                        @enderror
                                </div>
        
                                {{-- <div class="form-group">
                                    <div class="col-md-6 offset-md-4">
                                        <div class="form-check">
                                            <input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
        
                                            <label class="form-check-label" for="remember">
                                                {{ __('Remember Me') }}
                                            </label>
                                        </div>
                                    </div>
                                </div> --}}
        
                                <div class="form-group row mb-0">
                                    <div class="col-md-8">
                                        <button type="submit" class="btn btn-primary">
                                            {{ __('Login') }} Admin
                                        </button>
                                        <a class="btn btn-warning" href="{{ route('register') }}">
                                            {{ __('Register') }} Admin
                                        </a>
                                        {{-- @if (Route::has('password.request'))
                                            <a class="btn btn-link" href="{{ route('password.request') }}">
                                                {{ __('Forgot Your Password?') }}
                                            </a>
                                        @endif --}}
                                    </div>
                                </div>
                                <br>
                                <div class="form-group row mb-0">
                                    <div class="col-md-8">
                                        Ingin Login sebagai Dosen ? <a href="{{ url('/form-login') }}" class="text-primary">Login Dosen</a>
                                        {{-- @if (Route::has('password.request'))
                                            <a class="btn btn-link" href="{{ route('password.request') }}">
                                                {{ __('Forgot Your Password?') }}
                                            </a>
                                        @endif --}}
                                    </div>
                                </div>
                            </form>

                            {{-- {!! Form::model($objek, ['action' => $action, 'method' => $method]) !!}

                            <div class="form-grup">
                                <label for="email">Email Anggota</label>
                                {!! Form::email('email', null, ['class' => 'form-control']) !!}
                            </div>
                            <br>
                            <div class="form-grup">
                                <label for="password">Password </label>
                                {!! Form::password('password', ['class' => 'form-control']) !!}
                            </div>
                            <br>
                            {!! Form::submit('Login', ['class' => 'btn btn-primary']) !!} --}}
                            {{-- <a href="{{ url('/beranda', []) }}" class="btn btn-primary">Kembali</a> --}}

                            {{-- <div class="text-center mt-4 fw-light">
                                Don't have an account? <a href="{{ url('/form-daftar') }}"
                                    class="text-primary">Create</a>
                            </div>
                            <div class="text-center mt-4 fw-light">
                                Login Sebagai Admin ? <a href="{{ url('/home') }}" class="text-primary">Login
                                    Admin</a>
                            </div>
                            {!! Form::close() !!} --}}

                        </div>
                    </div>
                </div>
            </div>
            <!-- content-wrapper ends -->
        </div>
        <!-- page-body-wrapper ends -->
    </div>
    <!-- container-scroller -->
    <!-- plugins:js -->
    <script src="{{ asset('staradmin') }}/vendors/js/vendor.bundle.base.js"></script>
    <!-- endinject -->
    <!-- Plugin js for this page -->
    <script src="{{ asset('staradmin') }}/vendors/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
    <!-- End plugin js for this page -->
    <!-- inject:js -->
    <script src="{{ asset('staradmin') }}/js/off-canvas.js"></script>
    <script src="{{ asset('staradmin') }}/js/hoverable-collapse.js"></script>
    <script src="{{ asset('staradmin') }}/js/template.js"></script>
    <script src="{{ asset('staradmin') }}/js/settings.js"></script>
    <script src="{{ asset('staradmin') }}/js/todolist.js"></script>
    <!-- endinject -->
</body>

</html>
