Undangan/backend/resources/views/admin/login.blade.php
2025-09-01 08:59:34 +07:00

115 lines
3.5 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Admin</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome (kalau tidak dipakai bisa dihapus) -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<style>
body {
background-color: #ffffff;
height: 100vh;
}
.login-card {
width: 380px;
border-radius: 15px;
padding: 30px;
background: #ffffff;
box-shadow: 0 0 25px rgb(0, 123, 255);
}
.login-card img {
width: 150px;
display: block;
margin: 0 auto 20px;
}
.login-card h4 {
font-weight: 700;
text-align: center;
margin-bottom: 10px;
}
.login-card p {
text-align: center;
color: #6c757d;
margin-bottom: 20px;
}
.form-control {
border-radius: 10px;
padding: 10px 15px;
}
.btn-login {
background: #2ea8ff;
border: none;
border-radius: 10px;
padding: 10px;
font-size: 16px;
font-weight: 600;
color: #fff;
transition: 0.3s;
}
.btn-login:hover {
background: #0d6efd;
}
.remember-forgot {
font-size: 14px;
}
.remember-forgot a {
color: #0d6efd;
text-decoration: none;
}
.remember-forgot a:hover {
text-decoration: underline;
}
/* Samakan panjang label */
.login-card .form-label {
display: block;
width: 100%;
font-weight: 500;
}
</style>
</head>
<body class="d-flex justify-content-center align-items-center">
<div class="login-card">
<!-- Logo -->
<img src="{{ asset('images/abbauf.png') }}" alt="Logo">
<h4>WELCOME BACK</h4>
<p>Welcome back! Please enter your details.</p>
{{-- Notifikasi --}}
@if(session('error'))
<div class="alert alert-danger">{{ session('error') }}</div>
@endif
@if(session('success'))
<div class="alert alert-success">{{ session('success') }}</div>
@endif
<form method="POST" action="{{ route('admin.login.submit') }}">
@csrf
<div class="mb-3">
<label class="form-label w-100">Username</label>
<input type="text" name="email" class="form-control" placeholder="Enter your name" required>
</div>
<div class="mb-3">
<label class="form-label w-100">Password</label>
<input type="password" name="password" class="form-control" id="password" placeholder="********" required>
</div>
<div class="d-flex justify-content-between align-items-center mb-3 remember-forgot">
<div>
<input type="checkbox" id="remember">
<label for="remember">Remember me</label>
</div>
<a href="#">Forgot password</a>
</div>
<button type="submit" class="btn btn-login w-100">Login</button>
</form>
</div>
</body>
</html>