Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add verification view #32

Merged
merged 5 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"Laravel", "Backpack", "Backpack for Laravel", "Backpack Addon", "ThemeCoreuiv2"
],
"require": {
"backpack/crud": "^6.0"
"backpack/crud": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "~9.0",
Expand Down
40 changes: 40 additions & 0 deletions resources/views/auth/verify-email.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@extends(backpack_view('layouts.plain'))

@section('content')

<div class="row justify-content-center">
<div class="col-12 col-md-8 col-lg-6">
<h3 class="text-center mb-4">{{ trans('backpack::base.verify_email.email_verification') }}</h3>
<div class="card">
<div class="card-body">
{{ trans('backpack::base.verify_email.email_verification_required') }}

@if (session('status') == 'verification-link-sent')
<div class="mt-2">
<div class="alert alert-success my-0" role="alert">
<div class="d-flex">
<div>
<svg xmlns="http://www.w3.org/2000/svg" class="icon alert-icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M5 12l5 5l10 -10"></path></svg>
</div>
<div>
{{ trans('backpack::base.verify_email.verification_link_sent') }}
</div>
</div>
</div>
</div>
@endif
</div>
<div class="card-footer d-flex align-center">
<form method="POST" class="col-md-6" action="{{ route('verification.send') }}">
@csrf
<button type="submit" class="btn btn-sm btn-primary float-start float-left" tabindex="6">{{ trans('backpack::base.verify_email.resend_verification_link') }}</button>
</form>
<form method="POST" class="col-md-6" action="{{ backpack_url('logout') }}">
@csrf
<button type="submit" class="btn btn-sm button-secondary float-end float-right" tabindex="7"><i class="la la-lock me-2"></i>{{ trans('backpack::base.logout') }}</button>
</form>
</div>
</div>
</div>
</div>
@endsection