23-01-2026
This commit is contained in:
parent
07959c0ba2
commit
854ce02bf6
166 changed files with 32909 additions and 1262 deletions
|
|
@ -1,5 +1,10 @@
|
|||
<?php
|
||||
|
||||
use App\Mail\PartnerInvitationMail;
|
||||
use App\Models\PartnerInvitation;
|
||||
use App\Models\User;
|
||||
use App\Notifications\CustomResetPasswordNotification;
|
||||
use App\Notifications\CustomVerifyEmailNotification;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Livewire\Volt\Volt;
|
||||
|
||||
|
|
@ -22,3 +27,60 @@ Route::get('/debug-login', function () {
|
|||
Route::get('/simple-test', function () {
|
||||
return view('test-simple');
|
||||
})->name('simple.test');
|
||||
|
||||
// E-Mail-Vorschau-Routen (nur für Entwicklung)
|
||||
Route::prefix('test/emails')->group(function () {
|
||||
// Partner-Einladung Vorschau
|
||||
Route::get('/partner-invitation', function () {
|
||||
$invitation = PartnerInvitation::first() ?? new PartnerInvitation([
|
||||
'company_name' => 'Musterfirma GmbH',
|
||||
'contact_first_name' => 'Max',
|
||||
'contact_last_name' => 'Mustermann',
|
||||
'email' => 'max@musterfirma.de',
|
||||
'expires_at' => now()->addWeeks(2),
|
||||
]);
|
||||
|
||||
// Mock role if not exists
|
||||
if (!$invitation->role) {
|
||||
$invitation->setRelation('role', (object)[
|
||||
'display_name' => 'Premium Partner',
|
||||
'name' => 'partner'
|
||||
]);
|
||||
}
|
||||
|
||||
$invitationUrl = 'https://portal.b2in.test/partner/invitation/accept/ABC123';
|
||||
|
||||
return new PartnerInvitationMail($invitation, $invitationUrl);
|
||||
})->name('test.email.partner-invitation');
|
||||
|
||||
// Passwort-Reset Vorschau
|
||||
Route::get('/password-reset', function () {
|
||||
$user = User::first() ?? new User([
|
||||
'name' => 'Max Mustermann',
|
||||
'email' => 'max@example.com'
|
||||
]);
|
||||
|
||||
$notification = new CustomResetPasswordNotification('test-token-123');
|
||||
$mailMessage = $notification->toMail($user);
|
||||
|
||||
return $mailMessage->render();
|
||||
})->name('test.email.password-reset');
|
||||
|
||||
// E-Mail-Verifizierung Vorschau
|
||||
Route::get('/email-verification', function () {
|
||||
$user = User::first() ?? new User([
|
||||
'name' => 'Max Mustermann',
|
||||
'email' => 'max@example.com'
|
||||
]);
|
||||
|
||||
$notification = new CustomVerifyEmailNotification();
|
||||
$mailMessage = $notification->toMail($user);
|
||||
|
||||
return $mailMessage->render();
|
||||
})->name('test.email.verification');
|
||||
|
||||
// Übersicht aller E-Mail-Vorlagen
|
||||
Route::get('/', function () {
|
||||
return view('emails.test-overview');
|
||||
})->name('test.emails');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue