140 lines
5.8 KiB
PHP
140 lines
5.8 KiB
PHP
@extends('template.admin.auth')
|
|
|
|
@push('css')
|
|
<link rel="stylesheet" href="{{ asset('assets/admin/vendor/libs/@form-validation/form-validation.css') }}" />
|
|
@endpush
|
|
|
|
@section('content')
|
|
<!-- Login -->
|
|
<div class="authentication-inner py-6">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<!-- Logo -->
|
|
<div class="app-brand justify-content-center mb-6">
|
|
<a href="{{ route('website.home') }}" class="app-brand-link">
|
|
<span class="app-brand-logo demo">
|
|
<span class="text-primary">
|
|
<svg width="32" height="22" viewBox="0 0 32 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M0.00172773 0V6.85398C0.00172773 6.85398 -0.133178 9.01207 1.98092 10.8388L13.6912 21.9964L19.7809 21.9181L18.8042 9.88248L16.4951 7.17289L9.23799 0H0.00172773Z"
|
|
fill="currentColor" />
|
|
<path
|
|
opacity="0.06"
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M7.69824 16.4364L12.5199 3.23696L16.5541 7.25596L7.69824 16.4364Z"
|
|
fill="#161616" />
|
|
<path
|
|
opacity="0.06"
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M8.07751 15.9175L13.9419 4.63989L16.5849 7.28475L8.07751 15.9175Z"
|
|
fill="#161616" />
|
|
<path
|
|
fill-rule="evenodd"
|
|
clip-rule="evenodd"
|
|
d="M7.77295 16.3566L23.6563 0H32V6.88383C32 6.88383 31.8262 9.17836 30.6591 10.4057L19.7824 22H13.6938L7.77295 16.3566Z"
|
|
fill="currentColor" />
|
|
</svg>
|
|
</span>
|
|
</span>
|
|
<span class="app-brand-text demo text-heading fw-bold">Vuexy</span>
|
|
</a>
|
|
</div>
|
|
<!-- /Logo -->
|
|
<h4 class="mb-1">Login Pelanggan</h4>
|
|
<p class="mb-6">Silakan login dengan kredensial Anda:</p>
|
|
|
|
<form id="formLogin" class="mb-4" method="POST" action="{{ route('cust.auth.authenticate') }}">
|
|
@csrf
|
|
@if (session('error'))
|
|
<div class="alert alert-danger d-flex align-items-baseline" role="alert">
|
|
<p>{{ session('error') }}</p>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="mb-6 form-control-validation">
|
|
<label for="email" class="form-label">Email/Username</label>
|
|
<input
|
|
type="text"
|
|
class="form-control"
|
|
id="username"
|
|
name="username"
|
|
autofocus />
|
|
</div>
|
|
<div class="mb-6 form-password-toggle form-control-validation">
|
|
<label class="form-label" for="password">Password</label>
|
|
<div class="input-group input-group-merge">
|
|
<input
|
|
type="password"
|
|
id="password"
|
|
class="form-control"
|
|
name="password"
|
|
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" name="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 Password?</p>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="mb-6">
|
|
<button class="btn btn-primary d-grid w-100" type="submit">Login</button>
|
|
</div>
|
|
</form>
|
|
|
|
<p class="text-center">
|
|
<span>Belum terdaftar?</span>
|
|
<a href="{{ route('cust.auth.register') }}">
|
|
<span>Daftar akun baru</span>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /Login -->
|
|
@endsection
|
|
|
|
@push('js')
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.21.0/jquery.validate.min.js"
|
|
integrity="sha512-KFHXdr2oObHKI9w4Hv1XPKc898mE4kgYx58oqsc/JqqdLMDI4YjOLzom+EMlW8HFUd0QfjfAvxSL6sEq/a42fQ=="
|
|
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
<script>
|
|
$(function () {
|
|
$('#formLogin').validate({
|
|
rules: {
|
|
username: {
|
|
required: true,
|
|
},
|
|
password: {
|
|
required: true,
|
|
},
|
|
},
|
|
messages: {
|
|
username: 'Username wajib diisi',
|
|
password: 'Password wajib diisi',
|
|
},
|
|
errorClass: 'is-invalid',
|
|
validClass: 'is-valid',
|
|
errorElement: "div",
|
|
errorPlacement: function (error, element) {
|
|
element.parent().append(error);
|
|
},
|
|
invalidHandler: function (elem, validator) {
|
|
$('html, body').stop(true, false).animate({
|
|
scrollTop: $(validator.errorList[0].element).offset().top - 200
|
|
}, 1500, 'easeInOutExpo');
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
@endpush |