100 lines
4.9 KiB
PHP
100 lines
4.9 KiB
PHP
@extends('theme::layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="flex flex-col justify-center py-20 px-2 sm:px-6 lg:px-8">
|
|
{{-- <div class="sm:mx-auto sm:w-full sm:max-w-md">
|
|
<h2 class="mt-6 text-3xl font-extrabold leading-9 text-center text-gray-900 lg:text-5xl">
|
|
Sign in Below
|
|
</h2>
|
|
<p class="mt-4 text-sm leading-5 text-center text-gray-600 max-w">
|
|
or, you can
|
|
<a href="{{ route('register') }}" class="font-medium transition duration-150 ease-in-out text-wave-600 hover:text-wave-500 focus:outline-none focus:underline">
|
|
signup here
|
|
</a>
|
|
</p>
|
|
</div>
|
|
--}}
|
|
|
|
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-lg card-shadow">
|
|
<div class="bg-white">
|
|
<form action="{{ route('login') }}" method="POST">
|
|
@csrf
|
|
<input type="hidden" name="user_type" value="admin">
|
|
|
|
<div class="login-fields">
|
|
<img class="logo" src="{{ asset('themes/tailwind/images/logo.png') }}">
|
|
<h2 class="h2-title">CMS Access</h2>
|
|
<h3 class="h2-title">Login To Your Account</h3>
|
|
|
|
@if(setting('auth.email_or_username') && setting('auth.email_or_username') == 'username')
|
|
<label for="username" class="block text-sm font-medium leading-5 text-gray-700">Username</label>
|
|
<div class="mt-1 rounded-md shadow-sm">
|
|
<input id="username" type="username" name="username" required class="w-full form-input no-radius" autofocus>
|
|
</div>
|
|
|
|
@if ($errors->has('username'))
|
|
<div class="mt-1 text-red-500">
|
|
{{ $errors->first('username') }}
|
|
</div>
|
|
@endif
|
|
@else
|
|
<label for="email" class="block text-sm font-medium leading-5 text-gray-700">Email</label>
|
|
<div class="mt-1 rounded-md shadow-sm">
|
|
<input id="email" type="email" name="email" required class="w-full form-input no-radius" autofocus>
|
|
</div>
|
|
|
|
@if ($errors->has('email'))
|
|
<div class="mt-1 text-red-500">
|
|
{{ $errors->first('email') }}
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
|
|
</div>
|
|
|
|
<div class="mt-6">
|
|
<label for="password" class="block text-sm font-medium leading-5 text-gray-700">
|
|
Password
|
|
</label>
|
|
<div class="mt-1 rounded-md shadow-sm">
|
|
<input id="password" type="password" name="password" required class="w-full form-input no-radius">
|
|
</div>
|
|
@if ($errors->has('password'))
|
|
<div class="mt-1 text-red-500">
|
|
{{ $errors->first('password') }}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
{{-- <div class="flex items-center justify-between mt-6">
|
|
<div class="flex items-center">
|
|
<input id="remember" name="remember" type="checkbox" class="text-indigo-600 border-0 border-gray-300 rounded shadow-sm focus:border-indigo-300 focus:ring focus:ring-offset-0 focus:ring-indigo-200 focus:ring-opacity-50 rounded-xl" {{ old('remember') ? ' checked' : '' }}>
|
|
<label for="remember" class="block ml-2 text-sm leading-5 text-gray-900">
|
|
Remember me
|
|
</label>
|
|
</div>
|
|
|
|
<div class="text-sm leading-5">
|
|
<a href="{{ route('password.request') }}" class="font-medium transition duration-150 ease-in-out text-wave-600 hover:text-wave-500 focus:outline-none focus:underline">
|
|
Forgot your password?
|
|
</a>
|
|
</div>
|
|
</div> --}}
|
|
|
|
<div class="mt-6">
|
|
<span class="block w-full rounded-md shadow-sm">
|
|
<button type="submit" class="flex justify-center w-full px-4 py-3 text-sm font-medium text-black transition duration-150 ease-in-out border primary-button">
|
|
Sign in
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|