MIF_E31210128/resources/views/auth/passwords/reset.blade.php

58 lines
2.6 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reset Password</title>
<link href="{{ asset('user/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('user/css/auth.css') }}" rel="stylesheet">
<link href="{{ asset('plugins/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="auth-container">
<img src="{{ asset('user/img/logo-doang.jpg') }}" alt="Logo" class="logo">
<h2 class="text-center">Reset Password</h2>
@if ($errors->any())
<div class="alert alert-danger">
@foreach ($errors->all() as $error)
<p>{{ $error }}</p>
@endforeach
</div>
@endif
<form method="POST" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<div class="form-group">
<label for="email">Email</label>
<input type="email" name="email" id="email" class="form-control" value="{{ $email ?? old('email') }}" required autofocus readonly>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" id="password" class="form-control" required>
</div>
<div class="form-group">
<label for="password_confirmation">Confirm Password</label>
<input type="password" name="password_confirmation" id="password_confirmation" class="form-control" required>
</div>
<button type="submit" class="btn btn-primary btn-block">Reset Password</button>
</form>
</div>
</div>
<!-- jQuery, Bootstrap, and SweetAlert -->
<script src="{{ asset('user/js/jquery.min.js') }}"></script>
<script src="{{ asset('user/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('plugins/sweetalert2/sweetalert2.all.min.js') }}"></script>
<script>
$(document).ready(function() {
console.log('Script is running'); // Check if the script is running
@if (session('status'))
console.log('SweetAlert called'); // Check if SweetAlert is called
swal("Success", "{{ session('status') }}", "success"); // Display SweetAlert
@endif
});
</script>
</body>
</html>