Initialer Laravel Commit für BetiX
This commit is contained in:
90
resources/views/emails/layout.blade.php
Normal file
90
resources/views/emails/layout.blade.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Betix Notification</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #020202;
|
||||
color: #ffffff;
|
||||
font-family: 'Arial', sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.container {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.logo {
|
||||
font-size: 24px;
|
||||
font-weight: 900;
|
||||
color: #ffffff;
|
||||
letter-spacing: 2px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.logo span {
|
||||
color: #ff007a;
|
||||
}
|
||||
.card {
|
||||
background-color: #0a0a0a;
|
||||
border: 1px solid #151515;
|
||||
border-radius: 16px;
|
||||
padding: 40px;
|
||||
box-shadow: 0 10px 40px rgba(0,0,0,0.5);
|
||||
}
|
||||
.title {
|
||||
font-size: 20px;
|
||||
font-weight: 800;
|
||||
margin-bottom: 20px;
|
||||
color: #ffffff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.text {
|
||||
color: #888888;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 30px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.btn {
|
||||
display: inline-block;
|
||||
background: linear-gradient(90deg, #ff007a, #be005b);
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
padding: 14px 30px;
|
||||
border-radius: 8px;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
box-shadow: 0 0 20px rgba(255, 0, 122, 0.4);
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
margin-top: 40px;
|
||||
color: #444444;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<a href="{{ config('app.url') }}" class="logo">BETI<span>X</span></a>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
© {{ date('Y') }} Betix Protocol. All rights reserved.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
44
resources/views/emails/new-login.blade.php
Normal file
44
resources/views/emails/new-login.blade.php
Normal file
@@ -0,0 +1,44 @@
|
||||
@extends('emails.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="title">New login detected</div>
|
||||
|
||||
<div class="text">
|
||||
Hello{{ isset($user) && !empty($user->name) ? ' ' . (is_string($user->name) ? $user->name : '') : '' }},<br><br>
|
||||
We noticed a new sign-in to your account. If this was you, no action is needed.
|
||||
</div>
|
||||
|
||||
<div style="background:#0d0d0d;border:1px solid #151515;border-radius:12px;padding:16px;margin:16px 0;">
|
||||
<div style="display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #222;">
|
||||
<div style="color:#9aa0a6;font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.6px;">Date & Time</div>
|
||||
<div style="color:#e8eaed;font-size:14px;font-weight:700;word-break:break-word;">{{ $loginAt ?? '' }}</div>
|
||||
</div>
|
||||
<div style="display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #222;">
|
||||
<div style="color:#9aa0a6;font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.6px;">IP Address</div>
|
||||
<div style="color:#e8eaed;font-size:14px;font-weight:700;word-break:break-word;">{{ $ip ?? 'Unknown' }}</div>
|
||||
</div>
|
||||
<div style="display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed #222;">
|
||||
<div style="color:#9aa0a6;font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.6px;">Device / Browser</div>
|
||||
<div style="color:#e8eaed;font-size:14px;font-weight:700;word-break:break-word;">{{ $userAgent ?? 'Unknown' }}</div>
|
||||
</div>
|
||||
<div style="display:flex;justify-content:space-between;gap:10px;padding:6px 0;">
|
||||
<div style="color:#9aa0a6;font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.6px;">Location</div>
|
||||
<div style="color:#e8eaed;font-size:14px;font-weight:700;word-break:break-word;">Approximate based on IP</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text">If this wasn't you, please secure your account immediately.</div>
|
||||
|
||||
<div style="text-align:center; margin: 20px 0;">
|
||||
<a href="{{ $manageLink ?? url('/settings/security') }}" class="btn">Review security settings</a>
|
||||
</div>
|
||||
|
||||
<div class="text" style="font-size: 12px; color: #999;">
|
||||
Tips to keep your account safe:
|
||||
<ul style="margin-top:8px; color:#888; padding-left:18px;">
|
||||
<li>Enable two-factor authentication (2FA).</li>
|
||||
<li>Use a strong, unique password and update it regularly.</li>
|
||||
<li>Never share your login codes or password.</li>
|
||||
</ul>
|
||||
</div>
|
||||
@endsection
|
||||
37
resources/views/emails/notification.blade.php
Normal file
37
resources/views/emails/notification.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
@extends('emails.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="title">{!! e($icon ?? '🔔') !!} {{ $title ?? 'Notification' }}</div>
|
||||
|
||||
@if(!empty($message))
|
||||
<div class="text">{!! nl2br(e($message)) !!}</div>
|
||||
@endif
|
||||
|
||||
@if(!empty($bullets) && is_array($bullets))
|
||||
<ul class="text" style="padding-left:18px; margin-top: -10px;">
|
||||
@foreach($bullets as $b)
|
||||
<li style="margin:6px 0;">{!! e($b) !!}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
@isset($code)
|
||||
<div class="text" style="text-align:center;">
|
||||
<div style="display:inline-block; padding:12px 18px; border:1px dashed #333; border-radius:10px; background:#0d0d0d; color:#fff; font-weight:800; letter-spacing:3px; font-size:18px;">{{ $code }}</div>
|
||||
</div>
|
||||
@endisset
|
||||
|
||||
@if(!empty($cta) && is_array($cta) && !empty($cta['url']))
|
||||
<div style="text-align: center; margin: 25px 0 5px;">
|
||||
<a href="{{ $cta['url'] }}" class="btn">{{ $cta['label'] ?? 'Open' }}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(!empty($meta) && is_array($meta))
|
||||
<div class="text" style="font-size:12px; color:#666;">
|
||||
@foreach($meta as $k => $v)
|
||||
<div><strong>{{ ucfirst(str_replace('_',' ',$k)) }}:</strong> {{ is_scalar($v) ? $v : json_encode($v) }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
19
resources/views/emails/reset-password.blade.php
Normal file
19
resources/views/emails/reset-password.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
@extends('emails.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="title">Reset Password</div>
|
||||
|
||||
<div class="text">
|
||||
Hello {{ $user->name }},<br><br>
|
||||
You are receiving this email because we received a password reset request for your account.
|
||||
</div>
|
||||
|
||||
<div style="text-align: center;">
|
||||
<a href="{{ $url }}" class="btn">Reset Password</a>
|
||||
</div>
|
||||
|
||||
<div class="text" style="margin-top: 30px;">
|
||||
This password reset link will expire in 60 minutes.<br>
|
||||
If you did not request a password reset, no further action is required.
|
||||
</div>
|
||||
@endsection
|
||||
30
resources/views/emails/verify-email.blade.php
Normal file
30
resources/views/emails/verify-email.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
@extends('emails.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="title">Verify Your Email</div>
|
||||
|
||||
<div class="text">
|
||||
Hello {{ $user->name }},<br><br>
|
||||
Welcome to Betix! Please click the button below to verify your email address and activate your account.
|
||||
</div>
|
||||
|
||||
<div style="text-align: center; margin-bottom: 20px;">
|
||||
<a href="{{ $url }}" class="btn">Verify Email</a>
|
||||
</div>
|
||||
|
||||
<div class="text" style="font-size: 12px; color: #999; word-break: break-all;">
|
||||
Or copy & paste this link into your browser:<br>
|
||||
<span style="color:#666;">{{ $url }}</span>
|
||||
</div>
|
||||
|
||||
@isset($code)
|
||||
<div class="text" style="margin-top: 20px;">
|
||||
Alternatively, you can verify by entering this code in the app:<br>
|
||||
<div style="font-size: 22px; font-weight: bold; letter-spacing: 4px; margin-top: 8px;">{{ $code }}</div>
|
||||
</div>
|
||||
@endisset
|
||||
|
||||
<div class="text" style="margin-top: 30px;">
|
||||
If you did not create an account, no further action is required.
|
||||
</div>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user