130 lines
4.9 KiB
PHP
130 lines
4.9 KiB
PHP
@extends('auth.layout')
|
|
@section('content')
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<!-- Logo -->
|
|
<div class="app-brand justify-content-center mb-6">
|
|
<a href="{{ route('home') }}" class="app-brand-link">
|
|
<span class="app-brand-logo demo">
|
|
<span class="text-primary">
|
|
<svg width="32" height="24" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<!-- Daun Bagian Kiri -->
|
|
<path opacity="0.3" d="M16 2.5C16 2.5 5 6.5 5 15.5C5 20.5 11 23.5 16 23.5V2.5Z" fill="currentColor" />
|
|
<!-- Daun Bagian Kanan -->
|
|
<path opacity="0.6" d="M16 2.5C16 2.5 27 6.5 27 15.5C27 20.5 21 23.5 16 23.5V2.5Z" fill="currentColor" />
|
|
<!-- Grafik Pertumbuhan (Monev) -->
|
|
<path d="M2 19L10 11L15 15L27 4" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
|
|
<!-- Titik Target/Pencapaian -->
|
|
<circle cx="27" cy="4" r="2.5" fill="currentColor" />
|
|
</svg>
|
|
</span>
|
|
</span>
|
|
<span class="app-brand-text demo menu-text fw-bold ms-3" style="text-transform: capitalize;">AgroMonev</span>
|
|
</a>
|
|
</div>
|
|
<!-- /Logo -->
|
|
<h4 class="mb-1">Selamat datang di AgroMonev!</h4>
|
|
<p class="mb-6">Silakan masuk ke akun Anda</p>
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
<ul class="mb-0">
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
<form id="formAuthentication" class="mb-4" action="{{ route('auth.authenticate') }}" method="POST">
|
|
@csrf
|
|
<div class="mb-6 form-control-validation">
|
|
<label for="email" class="form-label">Email atau Nama Pengguna</label>
|
|
<input
|
|
type="text"
|
|
class="form-control"
|
|
id="email"
|
|
name="email_username"
|
|
placeholder="Masukkan email atau nama pengguna Anda"
|
|
autofocus />
|
|
</div>
|
|
<div class="mb-6 form-password-toggle form-control-validation">
|
|
<label class="form-label" for="password">Kata Sandi</label>
|
|
<div class="input-group input-group-merge">
|
|
<input
|
|
type="password"
|
|
id="password"
|
|
class="form-control"
|
|
name="password"
|
|
placeholder="············"
|
|
aria-describedby="password" />
|
|
<span class="input-group-text cursor-pointer"><i class="icon-base ti tabler-eye-off"></i></span>
|
|
</div>
|
|
</div>
|
|
<div class="my-8">
|
|
<div class="d-flex justify-content-between">
|
|
<div class="form-check mb-0 ms-2">
|
|
<input class="form-check-input" type="checkbox" id="remember-me" />
|
|
<label class="form-check-label" for="remember-me"> Ingat saya </label>
|
|
</div>
|
|
<a href="auth-forgot-password-basic.html">
|
|
<p class="mb-0">Lupa Kata Sandi?</p>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="mb-6">
|
|
<button class="btn btn-primary d-grid w-100" type="submit">Masuk</button>
|
|
</div>
|
|
</form>
|
|
|
|
<p class="text-center">
|
|
<span>Anda belum terdaftar?</span>
|
|
<a href="{{ route('register') }}">
|
|
<span>Buat akun baru</span>
|
|
</a>
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|
|
@push('scripts')
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('#formAuthentication').validate({
|
|
rules: {
|
|
email_username: {
|
|
required: true,
|
|
minlength: 6,
|
|
},
|
|
password: {
|
|
required: true,
|
|
},
|
|
},
|
|
messages: {
|
|
email_username: {
|
|
required: 'Email atau Nama Pengguna wajib diisi',
|
|
minlength: 'Email atau Nama Pengguna minimal 6 karakter',
|
|
},
|
|
password: {
|
|
required: 'Password wajib diisi',
|
|
},
|
|
},
|
|
errorElement: 'div',
|
|
errorPlacement: function (error, element) {
|
|
error.addClass('invalid-feedback');
|
|
element.closest('.mb-6, .form-control-validation').append(error);
|
|
},
|
|
highlight: function (element) {
|
|
$(element).addClass('is-invalid');
|
|
},
|
|
unhighlight: function (element) {
|
|
$(element).removeClass('is-invalid');
|
|
},
|
|
submitHandler: function (form) {
|
|
form.submit();
|
|
}
|
|
})
|
|
})
|
|
</script>
|
|
@endpush |