28 lines
814 B
PHP
28 lines
814 B
PHP
@props(['site' => null, 'message' => null])
|
|
@php
|
|
$name = $site?->name ?: (config('fewo.owner.name') ?: 'Vermietung');
|
|
$origin = $site?->origin() ?: config('app.url');
|
|
$logo = $site?->brandPath(\App\Models\Site::BRAND_DOCUMENT_LOGO);
|
|
@endphp
|
|
<x-mail::layout>
|
|
<x-slot:header>
|
|
<x-mail::header :url="$origin">{{ $name }}</x-mail::header>
|
|
</x-slot:header>
|
|
|
|
@if ($logo && $message instanceof \Illuminate\Mail\Message)
|
|
<p><img src="{{ $message->embed($logo) }}" alt="{{ $name }}" style="max-width: 240px; max-height: 100px;"></p>
|
|
@endif
|
|
|
|
{!! $slot !!}
|
|
|
|
@isset($subcopy)
|
|
<x-slot:subcopy>
|
|
<x-mail::subcopy>{!! $subcopy !!}</x-mail::subcopy>
|
|
</x-slot:subcopy>
|
|
@endisset
|
|
|
|
<x-slot:footer>
|
|
<x-mail::footer>© {{ date('Y') }} {{ $name }}. Alle Rechte vorbehalten.</x-mail::footer>
|
|
</x-slot:footer>
|
|
</x-mail::layout>
|