-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f8c8fe
commit 7037117
Showing
3 changed files
with
270 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
<script src="{{asset('assets/admin/js/[email protected]')}}"></script> | ||
|
||
@if($errors->any()) | ||
@foreach ($errors->all() as $error) | ||
<script> | ||
const Toast = Swal.mixin({ | ||
toast: true, | ||
position: 'top-end', | ||
showConfirmButton: false, | ||
timer: 3000, | ||
timerProgressBar: true, | ||
onOpen: (toast) => { | ||
toast.addEventListener('mouseenter', Swal.stopTimer) | ||
toast.addEventListener('mouseleave', Swal.resumeTimer) | ||
} | ||
}) | ||
Toast.fire({ | ||
icon: 'error', | ||
title: '{{ __($error) }}' | ||
}) | ||
</script> | ||
@endforeach | ||
@endif | ||
|
||
|
||
@if(Session::has('success')) | ||
<script> | ||
const Toast = Swal.mixin({ | ||
toast: true, | ||
position: 'top-end', | ||
showConfirmButton: false, | ||
timer: 3000, | ||
timerProgressBar: true, | ||
onOpen: (toast) => { | ||
toast.addEventListener('mouseenter', Swal.stopTimer) | ||
toast.addEventListener('mouseleave', Swal.resumeTimer) | ||
} | ||
}) | ||
Toast.fire({ | ||
icon: 'success', | ||
title: '{{translate(Session::get('success'))}}' | ||
}) | ||
</script> | ||
@endif | ||
|
||
@if(Session::has('error')) | ||
<script> | ||
const Toast = Swal.mixin({ | ||
toast: true, | ||
position: 'top-end', | ||
showConfirmButton: false, | ||
timer: 3000, | ||
timerProgressBar: true, | ||
onOpen: (toast) => { | ||
toast.addEventListener('mouseenter', Swal.stopTimer) | ||
toast.addEventListener('mouseleave', Swal.resumeTimer) | ||
} | ||
}) | ||
Toast.fire({ | ||
icon: 'error', | ||
title: '{{translate(Session::get('error'))}}' | ||
}) | ||
</script> | ||
@endif | ||
|
||
@if(Session::has('info')) | ||
<script> | ||
const Toast = Swal.mixin({ | ||
toast: true, | ||
position: 'top-end', | ||
showConfirmButton: false, | ||
timer: 3000, | ||
timerProgressBar: true, | ||
onOpen: (toast) => { | ||
toast.addEventListener('mouseenter', Swal.stopTimer) | ||
toast.addEventListener('mouseleave', Swal.resumeTimer) | ||
} | ||
}) | ||
Toast.fire({ | ||
icon: 'info', | ||
title: '{{translate(Session::get('info'))}}' | ||
}) | ||
</script> | ||
@endif | ||
@if(Session::has('warning')) | ||
<script> | ||
const Toast = Swal.mixin({ | ||
toast: true, | ||
position: 'top-end', | ||
showConfirmButton: false, | ||
timer: 3000, | ||
timerProgressBar: true, | ||
onOpen: (toast) => { | ||
toast.addEventListener('mouseenter', Swal.stopTimer) | ||
toast.addEventListener('mouseleave', Swal.resumeTimer) | ||
} | ||
}) | ||
Toast.fire({ | ||
icon: 'warning', | ||
title: '{{translate(Session::get('warning'))}}' | ||
}) | ||
</script> | ||
@endif | ||
|
||
<script> | ||
function toast(type,msg) { | ||
const Toast = Swal.mixin({ | ||
toast: true, | ||
position: 'top-end', | ||
showConfirmButton: false, | ||
timer: 3000, | ||
timerProgressBar: true, | ||
onOpen: (toast) => { | ||
toast.addEventListener('mouseenter', Swal.stopTimer) | ||
toast.addEventListener('mouseleave', Swal.resumeTimer) | ||
} | ||
}) | ||
Toast.fire({ | ||
icon: type, | ||
title: msg | ||
}) | ||
} | ||
function amount(amount,type) { | ||
if(type == 2){ | ||
return amount.toFixed(8); | ||
}else{ | ||
return amount.toFixed(); | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
@extends('layouts.auth') | ||
|
||
@section('title') | ||
@langg('User Login') | ||
@endsection | ||
|
||
@php | ||
$login = App\Models\SiteContent::where('slug','login')->first(); | ||
@endphp | ||
|
||
@section('content') | ||
|
||
<section class="accounts-section"> | ||
<div class="accounts-inner"> | ||
<div class="accounts-inner__wrapper bg--section"> | ||
<div class="accounts-left"> | ||
<div class="accounts-left-content"> | ||
<a href="{{url('/')}}" class="top--icon"> | ||
<i class="fas fa-bolt"></i> | ||
</a> | ||
<div class="section-header"> | ||
<h6 class="section-header__subtitle"></h6> | ||
<h3 class="section-header__title">@lang(@$login->content->first_heading)</h3> | ||
<p> | ||
@lang(@$login->content->first_sub_heading) | ||
</p> | ||
</div> | ||
<form class="row gy-4" action="{{route('user.login')}}" method="post"> | ||
@csrf | ||
<div class="col-sm-12"> | ||
<label for="username" class="form-label">@langg('Your email')</label> | ||
<input type="email" name="email" id="username" class="form-control" required value="{{old('email')}}"> | ||
</div> | ||
<div class="col-sm-12"> | ||
<label for="password" class="form-label">@langg('Your Password')</label> | ||
<input type="password" name="password" id="password" class="form-control" required> | ||
</div> | ||
|
||
@if ($gs->recaptcha) | ||
<div class="col-sm-12"> | ||
{!! NoCaptcha::display() !!} | ||
{!! NoCaptcha::renderJs() !!} | ||
@error('g-recaptcha-response') | ||
<p class="my-2 text--danger">{{$message}}</p> | ||
@enderror | ||
</div> | ||
@endif | ||
|
||
<div class="col-12 mt-2"> | ||
<a href="{{route('user.forgot.password')}}" class="text--base">@langg('Forgot Password?')</a> | ||
</div> | ||
<div class="col-sm-12"> | ||
<button type="submit" class="cmn--btn">@langg('Sign In')</button> | ||
</div> | ||
<div class="col-sm-12"> | ||
@langg('Not registered yet ?') <a href="{{route('user.register')}}" class="text--base">@langg('Create an Account For Free')</a> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<div class="accounts-right bg--blue"> | ||
<img src="{{getPhoto($login->content->image)}}" alt="images"> | ||
<div class="section-header text-center text-white mb-0"> | ||
<h6 class="section-header__subtitle"></h6> | ||
<h3 class="section-header__title">@lang(@$login->content->second_heading)</h3> | ||
<p> | ||
@lang(@$login->content->second_sub_heading) | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
@endsection |
63 changes: 63 additions & 0 deletions
63
project/resources/views/user/auth/reset_password.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
@extends('layouts.auth') | ||
|
||
@section('title') | ||
@langg('Reset Password') | ||
@endsection | ||
@php | ||
$login = App\Models\SiteContent::where('slug','login')->first(); | ||
@endphp | ||
|
||
@section('content') | ||
<section class="accounts-section"> | ||
<div class="accounts-inner"> | ||
<div class="accounts-inner__wrapper bg--section"> | ||
<div class="accounts-left"> | ||
<div class="accounts-left-content"> | ||
<a href="{{url('/')}}" class="top--icon"> | ||
<i class="fas fa-bolt"></i> | ||
</a> | ||
<div class="section-header"> | ||
<h6 class="section-header__subtitle"></h6> | ||
<h3 class="section-header__title">@langg('Reset Password')</h3> | ||
<p> | ||
@langg('Reset Your Password.') | ||
</p> | ||
</div> | ||
<form class="row gy-4" action="" method="post"> | ||
@csrf | ||
<div class="col-sm-12 form-group"> | ||
<label class="form--label" for="email">@langg('Email')</label> | ||
<input type="text" value="{{session('email')}}" class="form-control" id="email" disabled> | ||
</div> | ||
<div class="col-sm-12 form-group"> | ||
<label class="form--label" for="email">@langg('New Password')</label> | ||
<input type="password" name="password" class="form-control" id="email" | ||
placeholder="@langg('Password')" required> | ||
</div> | ||
<div class="col-sm-12 form-group"> | ||
<label class="form--label" for="email">@langg('Confirm Password')</label> | ||
<input type="password" name="password_confirmation" class="form-control" id="email" | ||
placeholder="@langg('Confirm Password')" required> | ||
</div> | ||
|
||
<div class="col-sm-12"> | ||
<button type="submit" class="cmn--btn">@langg('Change Password')</button> | ||
</div> | ||
|
||
</form> | ||
</div> | ||
</div> | ||
<div class="accounts-right bg--blue"> | ||
<img src="{{getPhoto($login->content->image)}}" alt="images"> | ||
<div class="section-header text-center text-white mb-0"> | ||
<h6 class="section-header__subtitle"></h6> | ||
<h3 class="section-header__title">@langg('Password Reset')</h3> | ||
<p> | ||
@langg('Reset your password and do not share with anyone.') | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endsection |