This commit is contained in:
salam committed 2025-10-16 16:11:19 +02:00
1 parent 2be8b0b6f9
commit e9ad87ef54
8 files changed
+128 -126

No files matched your search

+19 -22
View File
@@ -1,24 +1,21 @@
@props([ @props(['url', 'color' => 'primary', 'align' => 'center'])
'url',
'color' => 'primary',
'align' => 'center',
])
<table class="action" align="{{ $align }}" width="100%" cellpadding="0" cellspacing="0" role="presentation"> <table class="action" align="{{ $align }}" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td align="{{ $align }}"> <td align="{{ $align }}">
<table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation"> <table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td align="{{ $align }}"> <td align="{{ $align }}">
<table border="0" cellpadding="0" cellspacing="0" role="presentation"> <table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td> <td>
<a href="{{ $url }}" class="button button-{{ $color }}" target="_blank" rel="noopener">{!! $slot !!}</a> <a href="{{ $url }}" class="button button-{{ $color }}"
</td> target="_blank" rel="noopener">{!! $slot !!}</a>
</tr> </td>
</table> </tr>
</td> </table>
</tr> </td>
</table> </tr>
</td> </table>
</tr> </td>
</tr>
</table> </table>
+9 -9
View File
@@ -1,11 +1,11 @@
<tr> <tr>
<td> <td>
<table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation"> <table class="footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td class="content-cell" align="center"> <td class="content-cell" align="center">
{{ Illuminate\Mail\Markdown::parse($slot) }} {{ Illuminate\Mail\Markdown::parse($slot) }}
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
+9 -9
View File
@@ -1,12 +1,12 @@
@props(['url']) @props(['url'])
<tr> <tr>
<td class="header"> <td class="header">
<a href="{{ $url }}" style="display: inline-block;"> <a href="{{ $url }}" style="display: inline-block;">
@if (trim($slot) === 'Laravel') @if (trim($slot) === 'Laravel')
<img src="https://laravel.com/img/notification-logo.png" class="logo" alt="Laravel Logo"> <img src="https://laravel.com/img/notification-logo.png" class="logo" alt="Laravel Logo">
@else @else
{!! $slot !!} {!! $slot !!}
@endif @endif
</a> </a>
</td> </td>
</tr> </tr>
+52 -46
View File
@@ -1,58 +1,64 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>{{ config('app.name') }}</title> <title>{{ config('app.name') }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light"> <meta name="color-scheme" content="light">
<meta name="supported-color-schemes" content="light"> <meta name="supported-color-schemes" content="light">
<style> <style>
@media only screen and (max-width: 600px) { @media only screen and (max-width: 600px) {
.inner-body { .inner-body {
width: 100% !important; width: 100% !important;
} }
.footer { .footer {
width: 100% !important; width: 100% !important;
} }
} }
@media only screen and (max-width: 500px) { @media only screen and (max-width: 500px) {
.button { .button {
width: 100% !important; width: 100% !important;
} }
} }
</style> </style>
{!! $head ?? '' !!} {!! $head ?? '' !!}
</head> </head>
<body> <body>
<table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation"> <table class="wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td align="center"> <td align="center">
<table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation"> <table class="content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
{!! $header ?? '' !!} {!! $header ?? '' !!}
<!-- Email Body --> <!-- Email Body -->
<tr> <tr>
<td class="body" width="100%" cellpadding="0" cellspacing="0" style="border: hidden !important;"> <td class="body" width="100%" cellpadding="0" cellspacing="0"
<table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation"> style="border: hidden !important;">
<!-- Body content --> <table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0"
<tr> role="presentation">
<td class="content-cell"> <!-- Body content -->
{!! Illuminate\Mail\Markdown::parse($slot) !!} <tr>
<td class="content-cell">
{!! Illuminate\Mail\Markdown::parse($slot) !!}
{!! $subcopy ?? '' !!} {!! $subcopy ?? '' !!}
</td> </td>
</tr> </tr>
</table> </table>
</td> </td>
</tr> </tr>
{!! $footer ?? '' !!} {!! $footer ?? '' !!}
</table> </table>
</td> </td>
</tr> </tr>
</table> </table>
</body> </body>
</html> </html>
+22 -22
View File
@@ -1,27 +1,27 @@
<x-mail::layout> <x-mail::layout>
{{-- Header --}} {{-- Header --}}
<x-slot:header> <x-slot:header>
<x-mail::header :url="config('app.url')"> <x-mail::header :url="config('app.url')">
{{ config('app.name') }} {{ config('app.name') }}
</x-mail::header> </x-mail::header>
</x-slot:header> </x-slot:header>
{{-- Body --}} {{-- Body --}}
{!! $slot !!} {!! $slot !!}
{{-- Subcopy --}} {{-- Subcopy --}}
@isset($subcopy) @isset($subcopy)
<x-slot:subcopy> <x-slot:subcopy>
<x-mail::subcopy> <x-mail::subcopy>
{!! $subcopy !!} {!! $subcopy !!}
</x-mail::subcopy> </x-mail::subcopy>
</x-slot:subcopy> </x-slot:subcopy>
@endisset @endisset
{{-- Footer --}} {{-- Footer --}}
<x-slot:footer> <x-slot:footer>
<x-mail::footer> <x-mail::footer>
© {{ date('Y') }} {{ config('app.name') }}. {{ __('All rights reserved.') }} © {{ date('Y') }} {{ config('app.name') }}. {{ __('All rights reserved.') }}
</x-mail::footer> </x-mail::footer>
</x-slot:footer> </x-slot:footer>
</x-mail::layout> </x-mail::layout>
+11 -12
View File
@@ -1,14 +1,13 @@
<table class="panel" width="100%" cellpadding="0" cellspacing="0" role="presentation"> <table class="panel" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td class="panel-content"> <td class="panel-content">
<table width="100%" cellpadding="0" cellspacing="0" role="presentation"> <table width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td class="panel-item"> <td class="panel-item">
{{ Illuminate\Mail\Markdown::parse($slot) }} {{ Illuminate\Mail\Markdown::parse($slot) }}
</td> </td>
</tr> </tr>
</table>
</td>
</tr>
</table> </table>
</td>
</tr>
</table>
+5 -5
View File
@@ -1,7 +1,7 @@
<table class="subcopy" width="100%" cellpadding="0" cellspacing="0" role="presentation"> <table class="subcopy" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<tr> <tr>
<td> <td>
{{ Illuminate\Mail\Markdown::parse($slot) }} {{ Illuminate\Mail\Markdown::parse($slot) }}
</td> </td>
</tr> </tr>
</table> </table>
+1 -1
View File
@@ -1,3 +1,3 @@
<div class="table"> <div class="table">
{{ Illuminate\Mail\Markdown::parse($slot) }} {{ Illuminate\Mail\Markdown::parse($slot) }}
</div> </div>