codigo actual del servidor, con avances de joan
This commit is contained in:
90
resources/views/auth/login.blade.php
Normal file
90
resources/views/auth/login.blade.php
Normal file
@@ -0,0 +1,90 @@
|
||||
@extends('backend.layouts.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="h-100 bg-cover bg-center py-5 d-flex align-items-center" style="background-image: url({{ uploaded_asset(get_setting('admin_login_background')) }})">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-xl-4 mx-auto">
|
||||
<div class="card text-left">
|
||||
<div class="card-body">
|
||||
<div class="mb-5 text-center">
|
||||
@if(get_setting('system_logo_black') != null)
|
||||
<img src="{{ uploaded_asset(get_setting('system_logo_black')) }}" class="mw-100 mb-4" height="40">
|
||||
@else
|
||||
<img src="{{ static_asset('assets/img/logo.png') }}" class="mw-100 mb-4" height="40">
|
||||
@endif
|
||||
<h1 class="h3 text-primary mb-0">{{ translate('Welcome to') }} {{ env('APP_NAME') }}</h1>
|
||||
<p>{{ translate('Login to your account.') }}</p>
|
||||
</div>
|
||||
<form class="pad-hor" method="POST" role="form" action="{{ route('login') }}">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" required autofocus placeholder="{{ translate('Email') }}">
|
||||
@if ($errors->has('email'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required placeholder="{{ translate('Password') }}">
|
||||
@if ($errors->has('password'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<div class="text-left">
|
||||
<label class="aiz-checkbox">
|
||||
<input type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
|
||||
<span>{{ translate('Remember Me') }}</span>
|
||||
<span class="aiz-square-check"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@if(env('MAIL_USERNAME') != null && env('MAIL_PASSWORD') != null)
|
||||
<div class="col-sm-6">
|
||||
<div class="text-right">
|
||||
<a href="{{ route('password.request') }}" class="text-reset fs-14">{{translate('Forgot password ?')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary btn-lg btn-block">
|
||||
{{ translate('Login') }}
|
||||
</button>
|
||||
</form>
|
||||
@if (env("DEMO_MODE") == "On")
|
||||
<div class="mt-4">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>admin@example.com</td>
|
||||
<td>123456</td>
|
||||
<td><button class="btn btn-info btn-xs" onclick="autoFill()">{{ translate('Copy') }}</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
<script type="text/javascript">
|
||||
function autoFill(){
|
||||
$('#email').val('admin@example.com');
|
||||
$('#password').val('123456');
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
140
resources/views/auth/passwords/email.blade.php
Normal file
140
resources/views/auth/passwords/email.blade.php
Normal file
@@ -0,0 +1,140 @@
|
||||
@extends('frontend.layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="py-6">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xxl-5 col-xl-6 col-md-8 mx-auto">
|
||||
<div class="bg-white rounded shadow-sm p-4 text-left">
|
||||
<h1 class="h3 fw-600">{{ translate('Forgot Password?') }}</h1>
|
||||
<p class="mb-4 opacity-60">{{ translate('Enter your email address to recover your password.') }}
|
||||
</p>
|
||||
<form method="POST" action="{{ route('password.email') }}">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
|
||||
@if (addon_is_activated('otp_system'))
|
||||
<div class="form-group phone-form-group mb-1">
|
||||
<input type="tel" id="phone-code"
|
||||
class="form-control{{ $errors->has('phone') ? ' is-invalid' : '' }}"
|
||||
value="{{ old('phone') }}" placeholder="" name="phone" autocomplete="off">
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="country_code" value="">
|
||||
|
||||
<div class="form-group email-form-group mb-1 d-none">
|
||||
<input type="email"
|
||||
class="form-control {{ $errors->has('email') ? ' is-invalid' : '' }}"
|
||||
value="{{ old('email') }}" placeholder="{{ translate('Email') }}"
|
||||
name="email" id="email" autocomplete="off">
|
||||
@if ($errors->has('email'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group text-right">
|
||||
<button class="btn btn-link p-0 text-primary" type="button"
|
||||
onclick="toggleEmailPhone(this)"><i>*{{ translate('Use Email Instead') }}</i></button>
|
||||
</div>
|
||||
@else
|
||||
<div class="form-group">
|
||||
<input type="email"
|
||||
class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
|
||||
value="{{ old('email') }}" placeholder="{{ translate('Email') }}"
|
||||
name="email" id="email" autocomplete="off">
|
||||
@if ($errors->has('email'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($errors->has('email'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group text-right">
|
||||
<button class="btn btn-primary btn-block" type="submit">
|
||||
{{ translate('Send Password Reset Link') }}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="mt-3">
|
||||
<a href="{{ route('user.login') }}"
|
||||
class="text-reset opacity-60">{{ translate('Back to Login') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
|
||||
@section('script')
|
||||
<script type="text/javascript">
|
||||
var isPhoneShown = true,
|
||||
countryData = window.intlTelInputGlobals.getCountryData(),
|
||||
input = document.querySelector("#phone-code");
|
||||
|
||||
for (var i = 0; i < countryData.length; i++) {
|
||||
var country = countryData[i];
|
||||
if (country.iso2 == 'bd') {
|
||||
country.dialCode = '88';
|
||||
}
|
||||
}
|
||||
|
||||
var iti = intlTelInput(input, {
|
||||
separateDialCode: true,
|
||||
utilsScript: "{{ static_asset('assets/js/intlTelutils.js') }}?1590403638580",
|
||||
onlyCountries: @php
|
||||
echo json_encode(
|
||||
\App\Models\Country::where('status', 1)
|
||||
->pluck('code')
|
||||
->toArray(),
|
||||
);
|
||||
@endphp,
|
||||
customPlaceholder: function(selectedCountryPlaceholder, selectedCountryData) {
|
||||
if (selectedCountryData.iso2 == 'bd') {
|
||||
return "01xxxxxxxxx";
|
||||
}
|
||||
return selectedCountryPlaceholder;
|
||||
}
|
||||
});
|
||||
|
||||
var country = iti.getSelectedCountryData();
|
||||
$('input[name=country_code]').val(country.dialCode);
|
||||
|
||||
input.addEventListener("countrychange", function(e) {
|
||||
// var currentMask = e.currentTarget.placeholder;
|
||||
|
||||
var country = iti.getSelectedCountryData();
|
||||
$('input[name=country_code]').val(country.dialCode);
|
||||
|
||||
});
|
||||
|
||||
function toggleEmailPhone(el) {
|
||||
if (isPhoneShown) {
|
||||
$('.phone-form-group').addClass('d-none');
|
||||
$('.email-form-group').removeClass('d-none');
|
||||
$('input[name=phone]').val(null);
|
||||
isPhoneShown = false;
|
||||
$(el).html('<i>*{{ translate('Use Phone Number Instead') }}</i>');
|
||||
} else {
|
||||
$('.phone-form-group').removeClass('d-none');
|
||||
$('.email-form-group').addClass('d-none');
|
||||
$('input[name=email]').val(null);
|
||||
isPhoneShown = true;
|
||||
$(el).html('<i>*{{ translate('Use Email Instead') }}</i>');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
59
resources/views/auth/passwords/reset.blade.php
Normal file
59
resources/views/auth/passwords/reset.blade.php
Normal file
@@ -0,0 +1,59 @@
|
||||
@extends('frontend.layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="py-6">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xxl-5 col-xl-6 col-md-8 mx-auto">
|
||||
<div class="bg-white rounded shadow-sm p-4 text-left">
|
||||
<h1 class="h3 fw-600">{{ translate('Reset Password') }}</h1>
|
||||
<p class="mb-4 opacity-60">{{translate('Enter your email address and new password and confirm password.')}} </p>
|
||||
<form method="POST" action="{{ route('password.update') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group">
|
||||
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ $email ?? old('email') }}" placeholder="{{ translate('Email') }}" required autofocus>
|
||||
|
||||
@if ($errors->has('email'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input id="code" type="text" class="form-control{{ $errors->has('code') ? ' is-invalid' : '' }}" name="code" value="{{ $email ?? old('code') }}" placeholder="{{translate('Code')}}" required autofocus>
|
||||
|
||||
@if ($errors->has('code'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('code') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" placeholder="{{ translate('New Password') }}" required>
|
||||
|
||||
@if ($errors->has('password'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="{{ translate('Confirm Password') }}" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group text-right">
|
||||
<button type="submit" class="btn btn-primary btn-block">
|
||||
{{ translate('Reset Password') }}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
64
resources/views/auth/register.blade.php
Normal file
64
resources/views/auth/register.blade.php
Normal file
@@ -0,0 +1,64 @@
|
||||
@extends('backend.layouts.blank')
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<div class="h-100 bg-cover bg-center py-5 d-flex align-items-center" style="background-image: url({{ uploaded_asset(get_setting('admin_login_background')) }})">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-xl-4 mx-auto">
|
||||
<div class="card text-left">
|
||||
<div class="card-header">{{ translate('Create a New Account') }}</div>
|
||||
<div class="card-body">
|
||||
<form method="POST" action="{{ route('register') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group">
|
||||
<input id="name" type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" name="name" value="{{ old('name') }}" required autofocus placeholder="{{ translate('Full Name') }}">
|
||||
|
||||
@if ($errors->has('name'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('name') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required placeholder="{{ translate('password') }}">
|
||||
|
||||
@if ($errors->has('password'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" required placeholder="{{ translate('Email') }}">
|
||||
|
||||
@if ($errors->has('email'))
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required placeholder="{{ translate('Confrim Password') }}">
|
||||
</div>
|
||||
<div class="checkbox pad-btm text-left">
|
||||
<input id="demo-form-checkbox" class="magic-checkbox" type="checkbox" required>
|
||||
<label for="demo-form-checkbox">{{translate('I agree with the Terms and Conditions')}}</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary btn-lg btn-block">
|
||||
{{ translate('Register') }}
|
||||
</button>
|
||||
</form>
|
||||
<div class="mt-3">
|
||||
{{translate('Already have an account')}} ? <a href="{{route('login')}}" class="btn-link mar-rgt text-bold">{{translate('Sign In')}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
25
resources/views/auth/verify.blade.php
Normal file
25
resources/views/auth/verify.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
@extends('frontend.layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="py-6">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xxl-5 col-xl-6 col-md-8 mx-auto">
|
||||
<div class="bg-white rounded shadow-sm p-4 text-left">
|
||||
<h1 class="h3 fw-600 mb-3">{{ translate('Verify Your Email Address') }}</h1>
|
||||
<p class="opacity-60">
|
||||
{{ translate('Before proceeding, please check your email for a verification link.') }}
|
||||
{{ translate('If you did not receive the email.') }}
|
||||
</p>
|
||||
<a href="{{ route('verification.resend') }}" class="btn btn-primary btn-block">{{ translate('Click here to request another') }}</a>
|
||||
@if (session('resent'))
|
||||
<div class="alert alert-success mt-2 mb-0" role="alert">
|
||||
{{ translate('A fresh verification link has been sent to your email address.') }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user