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 views #48

Merged
merged 4 commits into from
Aug 31, 2023
Merged
Changes from 2 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
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 p-4 mb-0">
tabacitu marked this conversation as resolved.
Show resolved Hide resolved
<div class="card-body">
{{ trans('backpack::base.verify_email.email_verification_required') }}

@if (session('status') == 'verification-link-sent')
<div class="mb-4 mt-2">
tabacitu marked this conversation as resolved.
Show resolved Hide resolved
<div class="alert alert-success" role="alert">
tabacitu marked this conversation as resolved.
Show resolved Hide resolved
<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