Files
hpt_inventory/resources/views/login.blade.php
2026-06-15 11:25:16 +07:00

152 lines
5.9 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ config('app.name', 'doctora') }}</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="{{ url(env("APP_URL").'storage/assets/vendors/css/vendor.bundle.base.css') }}">
<link rel="shortcut icon" href="{{ url(env("APP_URL").'storage/assets/images/favicon.png') }}" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&family=Khmer&family=Moul&display=swap" rel="stylesheet">
<style>
body {
background: url("{{ url(env("APP_URL").'storage/assets/images/bg-login.png') }}") center right;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
@if ( Config::get('app.locale') == 'kh')
font-family: "Kantumruy Pro", sans-serif;
@endif
}
.kantumruy-pro {
font-family: "Kantumruy Pro", sans-serif;
font-optical-sizing: auto;
font-style: normal;
}
.container-box {
background: #ffffffa1;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.24);
max-width: 512px;
}
.container{
margin: 0 auto;
padding: 0;
}
.left-panel {
background: url("{{ url(env("APP_URL").'storage/assets/images/bg-cover.jpg') }}") no-repeat;
background-size: cover;
position: relative;
color: gray;
/* min-height: 300px; */
}
.overlay {
position: absolute;
background-color: rgba(255, 255, 255, 0.45);
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.left-panel .text {
position: relative;
z-index: 2;
padding: 30px;
color: #b71c1c;
}
.left-panel .text h2 {
font-family: 'Brush Script MT', cursive;
font-size: 36px;
font-weight: bold;
}
.login-panel {
padding: 20px;
}
.login-panel h2 {
color: #2196f3;
font-weight: bold;
}
.social-buttons img {
width: 40px;
height: 40px;
margin: 0 10px;
cursor: pointer;
}
.footer-icons {
margin-top: 20px;
display: flex;
justify-content: space-around;
font-size: 30px;
}
.footer-icons img {
width: 40px;
height: 40px;
}
.dropdown-menu.show{
left: -45px !important;
border-radius: 7px;
}
.form-label{
font-size: 18px !important;
}
</style>
</head>
<body>
<div class="lang position-absolute" style="right: 50px; top: 20px; z-index: 999999;">
<div class="dropdown float-right" style="font-size: 10px">
<button class="btn btn-white btn-sm dropdown-toggle d-flex align-items-center rounded-0 border-0" type="button" id="dropdownMenuSizeButton3" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="material-icons text-black-50 " style="font-size: 17px !important;"><i class="bi bi-translate"></i> {{ App::getLocale()=='kh' ? 'ភាសាខ្មែរ' : 'English' }}</span>
</button>
<div class="dropdown-menu mr-5" aria-labelledby="dropdownMenuSizeButton3">
@include('partials/language_switcher')
</div>
</div>
</div>
<div class="container container-box" style="border: 1px solid #dcdef1 !important; box-shadow: none !important;">
<div class="row g-0">
<div class="col-md-12 login-panel">
<div class="text-center mb-4">
<img style="width: 45% !important;" src="{{url(env("APP_URL").'storage/assets/images/logo-dark.png')}}" alt="logo">
<h6 class="font-weight-light text-white" style="line-height: 25px; font-size: 20px;">{{__('login.sign_in_to_continue')}}</h6>
<!-- Validation Errors -->
<x-auth-validation-errors class="mb-1" :errors="$errors" />
</div>
<form method="POST" action="{{ route('login') }}" class="pt-3">
@csrf
<div class="mb-3">
<label class="form-label text-white">{{ __('login.email') }} <span style="color:red">*</span></label>
<input type="email" class="form-control form-control-lg rounded bg-transparent" name="email" placeholder="{{ __('login.email') }}"/>
</div>
<div class="mb-3">
<label class="form-label text-white">{{__('login.password')}} <span style="color:red">*</span></label>
<input type="password" name="password" class="form-control form-control-lg bg-transparent rounded" placeholder="{{__('login.password')}}"/>
</div>
<div class="d-grid my-5">
<button type="submit" class="btn btn-lg" style="background: #08c74d !important; color: #fff;"> {{ __('login.sign_in') }}</button>
</div>
</form>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="{{url(env("APP_URL").'storage/assets/vendors/js/vendor.bundle.base.js')}}"></script>
</body>
</html>