75 lines
3.5 KiB
PHP
75 lines
3.5 KiB
PHP
|
|
<?php
|
||
|
|
use App\Models\AppSetting;
|
||
|
|
$appLogo = AppSetting::getLogoUrl();
|
||
|
|
$appName = AppSetting::getAppName() ?? 'Glastree';
|
||
|
|
?>
|
||
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="it">
|
||
|
|
<head>
|
||
|
|
<meta charset="utf-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
|
<title>Reset Password - <?php echo e(e($appName)); ?></title>
|
||
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/admin-lte@3.2/dist/css/adminlte.min.css">
|
||
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||
|
|
</head>
|
||
|
|
<body class="hold-transition login-page">
|
||
|
|
<div class="login-box">
|
||
|
|
<div class="login-logo">
|
||
|
|
<a href="/">
|
||
|
|
<?php if($appLogo): ?>
|
||
|
|
<img src="<?php echo e($appLogo); ?>" alt="Logo" style="max-height: 80px; max-width: 200px;">
|
||
|
|
<?php else: ?>
|
||
|
|
<i class="fas fa-tree text-success"></i> <b><?php echo e(e($appName)); ?></b>
|
||
|
|
<?php endif; ?>
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-body login-card-body">
|
||
|
|
<p class="login-box-msg">Password dimenticata? Inserisci la tua email e ti invieremo il link per reimpostarla.</p>
|
||
|
|
|
||
|
|
<?php if(session('success')): ?>
|
||
|
|
<div class="alert alert-success"><?php echo e(session('success')); ?></div>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<form action="<?php echo e(route('password.email')); ?>" method="POST">
|
||
|
|
<?php echo csrf_field(); ?>
|
||
|
|
<div class="input-group mb-3">
|
||
|
|
<input type="email" name="email" class="form-control <?php $__errorArgs = ['email'];
|
||
|
|
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||
|
|
if ($__bag->has($__errorArgs[0])) :
|
||
|
|
if (isset($message)) { $__messageOriginal = $message; }
|
||
|
|
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
|
||
|
|
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||
|
|
endif;
|
||
|
|
unset($__errorArgs, $__bag); ?>" placeholder="Email" required value="<?php echo e(old('email')); ?>">
|
||
|
|
<div class="input-group-append">
|
||
|
|
<div class="input-group-text"><span class="fas fa-envelope"></span></div>
|
||
|
|
</div>
|
||
|
|
<?php $__errorArgs = ['email'];
|
||
|
|
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||
|
|
if ($__bag->has($__errorArgs[0])) :
|
||
|
|
if (isset($message)) { $__messageOriginal = $message; }
|
||
|
|
$message = $__bag->first($__errorArgs[0]); ?>
|
||
|
|
<span class="invalid-feedback"><?php echo e($message); ?></span>
|
||
|
|
<?php unset($message);
|
||
|
|
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||
|
|
endif;
|
||
|
|
unset($__errorArgs, $__bag); ?>
|
||
|
|
</div>
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-12">
|
||
|
|
<button type="submit" class="btn btn-success btn-block">Invia link reset</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
<p class="mb-0 text-center mt-3">
|
||
|
|
<a href="<?php echo e(route('login')); ?>">Torna al login</a>
|
||
|
|
</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js"></script>
|
||
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
|
||
|
|
</body>
|
||
|
|
</html>
|
||
|
|
<?php /**PATH /var/www/html/glastree/resources/views/auth/forgot-password.blade.php ENDPATH**/ ?>
|