103 lines
5.0 KiB
PHP
103 lines
5.0 KiB
PHP
@extends('includes.login.index')
|
|
|
|
@section('content')
|
|
|
|
<style>
|
|
#buttonspare:hover {
|
|
|
|
background-color: #12b65224;
|
|
}
|
|
</style>
|
|
|
|
<title>Log In | Portal Pelanggan</title>
|
|
<!-- <div style="text-align: center;"><img src="{{ asset('/argon/img/brand/arrahnpay3.png') }}" style="text-align: center;"></div> -->
|
|
<h6 style="text-align: center; margin-bottom: 10%;">Log Masuk</h6>
|
|
|
|
@if(session('logsemula'))
|
|
<div class="alert alert-primary text-center font-weight-bold" style="font-size: 13px;color:white;">
|
|
{{ session('logsemula') }}
|
|
</div>
|
|
@endif
|
|
|
|
<form role="#" method="post" enctype="multipart/form-data" class="login-form" novalidate="novalidate">
|
|
@csrf
|
|
<div class="input-group input-group-outline my-3 {{ $errors->has('email') ? ' has-danger' : '' }}">
|
|
<input placeholder="Emel" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" type="email" name="email" value="{{ old('email') }}" id="login-username">
|
|
</div>
|
|
@if ($errors->has('email'))
|
|
<span class="invalid-feedback" style="display: block;margin-top:-10px !important;" role="alert">
|
|
<strong>{{ $errors->first('email') }}</strong>
|
|
</span>
|
|
@endif
|
|
|
|
<div class="input-group input-group-outline mb-3 position-relative">
|
|
<input
|
|
placeholder="Kata Laluan"
|
|
class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
|
|
type="password"
|
|
name="password"
|
|
id="login-password"
|
|
autocomplete="current-password"
|
|
style="padding-right: 2.5rem;"
|
|
>
|
|
<span
|
|
class="input-group-text border-0 position-absolute end-0 top-0 h-100 d-flex align-items-center"
|
|
style="cursor:pointer; z-index: 3; border-radius: 0 0.375rem 0.375rem 0; border-left: none; border: 1px solid #ced4da; background: transparent; padding: 0 12px; height: 100%; display: flex; align-items: center; box-shadow: none; top: 0; bottom: 0;"
|
|
onclick="togglePasswordVisibility()"
|
|
tabindex="0"
|
|
aria-label="Toggle password visibility"
|
|
>
|
|
<svg id="eyeIcon" xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="#6c757d" viewBox="0 0 16 16" style="transition: fill 0.2s; pointer-events: none;">
|
|
<path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z"/>
|
|
<path id="eyeIconInner" d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0"/>
|
|
</svg>
|
|
</span>
|
|
<script>
|
|
function togglePasswordVisibility() {
|
|
const passwordInput = document.getElementById('login-password');
|
|
const eyeIcon = document.getElementById('eyeIcon');
|
|
if (passwordInput.type === 'password') {
|
|
passwordInput.type = 'text';
|
|
eyeIcon.setAttribute('fill', '#12B652');
|
|
} else {
|
|
passwordInput.type = 'password';
|
|
eyeIcon.setAttribute('fill', '#6c757d');
|
|
}
|
|
}
|
|
</script>
|
|
</div>
|
|
@if ($errors->has('password'))
|
|
<span class="invalid-feedback" style="display: block;margin-top:-10px !important;" role="alert">
|
|
<strong>{{ $errors->first('password') }}</strong>
|
|
</span>
|
|
@endif
|
|
|
|
<div class="form-check form-switch d-flex align-items-center mb-3">
|
|
<input class="form-check-input" type="checkbox" id="rememberMe">
|
|
<label class="form-check-label mb-0 ms-2" for="rememberMe">Ingatkan Saya</label>
|
|
</div>
|
|
<div class="text-center">
|
|
<button type="submit" class="btn bg-gradient-dark w-100 my-4 mb-2" onclick="loadingbtn();this.disabled=true;this.form.submit();" style="background: #4A4E59;">Masuk</button>
|
|
</div>
|
|
<div class="text-center mt-3" style="margin: 0% 10%;">
|
|
{{-- <a href="https://spare.arrahn.com.my/pembayaransegera" id="buttonspare" title="Pembayaran Pantas SPARE" style="color: #12B652; border: 1px solid #12B652;" class="btn my-4 mb-2" target="_blank">Bayaran Pantas (SPARE)</a href="#"> --}}
|
|
<!-- <a href="http://e-arrahn.test/pembayaransegera" id="buttonspare" title="Pembayaran Pantas SPARE" style="color: #12B652; border: 1px solid #12B652;" class="btn my-4 mb-2" target="_blank">Bayaran Pantas (SPARE)</a href="#"> -->
|
|
</div>
|
|
<p class="text-sm text-center">
|
|
|
|
<a href="{{ route('auth.registerfirst') }}">Pertama Kali</a>
|
|
<a href="#" class="text-dark text-gradient font-weight-bold"> | </a>
|
|
<a href="{{ route('password.request') }}">Lupa Kata Laluan</a>
|
|
<a href="#" class="text-dark text-gradient font-weight-bold"> | </a>
|
|
<a href="{{ route('auth.forgotemel') }}">Lupa Emel</a>
|
|
</p>
|
|
|
|
<p class="text-sm text-center">
|
|
<a href="{{ route('termasyarat') }}">Terma Dan Syarat</a>
|
|
</p>
|
|
</form>
|
|
|
|
|
|
|
|
@endsection
|