Files
quayso.sisvietnam.vn/resources/views/backend/login.blade.php
T

70 lines
2.9 KiB
PHP

<!DOCTYPE html>
<html lang="vi">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bệnh viện S.I.S</title>
<link rel="stylesheet" href="{{asset('public/libs/bootstrap/css/bootstrap.min.css')}}">
<link rel="stylesheet" href="{{asset('public/backend/css/login.css')}}">
<script src="{{asset('public/libs/jquery/jquery.min.js')}}"></script>
<script src="{{asset('public/libs/bootstrap/js/bootstrap.js')}}"></script>
<script src="{{asset('public/libs/bootstrap/js/bootstrap.min.js')}}"></script>
<link href='https://fonts.googleapis.com/css?family=Ubuntu:500' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="wrapper">
<div class="login_box">
<div class="login-header">
<span>S.I.S</span>
</div>
@if(Session::has('errors'))
<div class="alert alert-danger">
{{ 'Đăng nhập thất bại' }}
@php
Session::forget('errors');
@endphp
</div>
@endif
@if(Session::has('error'))
<div class="alert alert-danger">
{{ Session::get('error') ?? ''}}
@php
Session::forget('error');
@endphp
</div>
@endif
<form class="login-form" action="{{route('adminlogin')}}" method="POST">
{{ csrf_field() }}
<div class="input_box">
@php
$email = '';
if (old('email') != '') {
$email = old('email');
}
@endphp
<input type="text" id="email" name="email" class="input-field" value="{{ $email ?? '' }}" required
autocomplete="off">
<label for="email" class="label">Tên đăng nhập</label>
<i class="bx bx-user icon"></i>
</div>
@if ($errors->has('email'))
<span class="text-danger">{{ $errors->first('email') }}</span>
@endif
<div class="input_box">
<input type="password" id="pass" name="password" class="input-field" required autocomplete="new-password">
<label for="pass" class="label">Mật khẩu</label>
<i class="bx bx-lock-alt icon"></i>
</div>
@if ($errors->has('password'))
<span class="text-danger">{{ $errors->first('password') }}</span>
@endif
<div class="input_box">
<input type="submit" class="input-submit" value="Login">
</div>
</div>
</div>
</body>
</html>