Skip to content

Commit

Permalink
Merge pull request #48 from Laravel-Backpack/add-verification-views
Browse files Browse the repository at this point in the history
add verification views
  • Loading branch information
tabacitu authored Aug 31, 2023
2 parents 481588e + 9c7489f commit 0575fe8
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"Laravel", "Backpack", "Backpack for Laravel", "Backpack Addon", "ThemeCoreuiv4"
],
"require": {
"backpack/crud": "^6.0"
"backpack/crud": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "~9.0",
Expand Down
42 changes: 42 additions & 0 deletions resources/views/auth/verify-email.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@extends(backpack_view('layouts.plain'))

@section('content')

<div class="row justify-content-center align-items-center d-flex flex-row min-vh-100">
<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 mb-0">
<div class="card-body">
{{ trans('backpack::base.verify_email.email_verification_required') }}

@if (session('status') == 'verification-link-sent')
<div class="mt-3">
<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">
@if (session('status') !== 'verification-link-sent')
<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>
@endif
<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

0 comments on commit 0575fe8

Please sign in to comment.