Init
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<x-filament-panels::page.simple>
|
||||
|
||||
@if (! $otpSent)
|
||||
<form wire:submit="requestOtp">
|
||||
<div class="grid gap-y-4">
|
||||
<x-filament::input.wrapper>
|
||||
<x-filament::input
|
||||
type="email"
|
||||
wire:model="email"
|
||||
placeholder="Email address"
|
||||
autofocus
|
||||
required
|
||||
/>
|
||||
</x-filament::input.wrapper>
|
||||
|
||||
@error('email')
|
||||
<p class="text-sm text-danger-600">{{ $message }}</p>
|
||||
@enderror
|
||||
|
||||
<x-filament::button type="submit" class="w-full">
|
||||
Send login code
|
||||
</x-filament::button>
|
||||
</div>
|
||||
</form>
|
||||
@else
|
||||
<form wire:submit="authenticate">
|
||||
<div class="grid gap-y-4">
|
||||
<p class="text-sm text-gray-500">
|
||||
A login code was sent to <strong>{{ $email }}</strong>.
|
||||
</p>
|
||||
|
||||
<x-filament::input.wrapper>
|
||||
<x-filament::input
|
||||
type="text"
|
||||
wire:model="otp"
|
||||
placeholder="Enter your code"
|
||||
autofocus
|
||||
required
|
||||
/>
|
||||
</x-filament::input.wrapper>
|
||||
|
||||
@error('otp')
|
||||
<p class="text-sm text-danger-600">{{ $message }}</p>
|
||||
@enderror
|
||||
|
||||
<x-filament::button type="submit" class="w-full">
|
||||
Sign in
|
||||
</x-filament::button>
|
||||
</div>
|
||||
</form>
|
||||
@endif
|
||||
|
||||
</x-filament-panels::page.simple>
|
||||
@@ -0,0 +1,17 @@
|
||||
@extends('emails.layout')
|
||||
|
||||
@section('content')
|
||||
<p style="margin: 0 0 16px 0;">Γειά σου <strong>{{ $name }}</strong>,</p>
|
||||
|
||||
<p style="margin: 0 0 24px 0;">Ο κωδικός σύνδεσής σου είναι:</p>
|
||||
|
||||
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" style="margin: 0 0 24px 0; background-color: #f7f6f5; border-radius: 8px;">
|
||||
<tr>
|
||||
<td style="padding: 16px 20px; text-align: center; font-size: 28px; font-weight: bold; letter-spacing: 0.25rem;">
|
||||
{{ $code }}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p style="margin: 0;">Αν δεν ζήτησες εσύ αυτόν τον κωδικό, μπορείς να αγνοήσεις αυτό το email.</p>
|
||||
@endsection
|
||||
@@ -0,0 +1,5 @@
|
||||
<p>Hi {{ $name }},</p>
|
||||
|
||||
<p>You have been invited to access the admin panel. Visit the link below to log in — you will be asked for your email address and a one-time code will be sent to you.</p>
|
||||
|
||||
<p><a href="{{ route('filament.lunar.pages.dashboard') }}">Go to admin panel</a></p>
|
||||
@@ -0,0 +1,5 @@
|
||||
<p>Hi {{ $name }},</p>
|
||||
|
||||
<p>Your login code is:</p>
|
||||
|
||||
<p style="font-size: 2rem; font-weight: bold; letter-spacing: 0.25rem;">{{ $code }}</p>
|
||||
Reference in New Issue
Block a user