Roberto Santini 1 주 전
부모
커밋
0b2895de44

+ 1
- 2
app/Notifications/AnnotazionePubblicaApertaDa.php 파일 보기

@@ -4,7 +4,6 @@ namespace App\Notifications;
4 4
 
5 5
 use App\Models\Annotazione;
6 6
 use App\Models\Segnalazione;
7
-use App\Support\IsolaHtml;
8 7
 use Illuminate\Bus\Queueable;
9 8
 use Illuminate\Contracts\Queue\ShouldQueue;
10 9
 use Illuminate\Notifications\Messages\MailMessage;
@@ -52,7 +51,7 @@ class AnnotazionePubblicaApertaDa extends Notification implements ShouldQueue
52 51
             ->markdown('mail.annotazione-pubblica-aperta-da', [
53 52
                 'segnalazione' => $this->segnalazione,
54 53
                 'annotazione' => $this->annotazione,
55
-                'annotazioneHtml' => IsolaHtml::fragment((string) ($this->annotazione->text ?? '')),
54
+                'annotazioneHtml' => (string) ($this->annotazione->text ?? ''),
56 55
                 'aziendaLabel' => $aziendaLabel,
57 56
                 'statoLabel' => $statoLabel,
58 57
                 'prioritaLabel' => $prioritaLabel,

+ 1
- 1
app/Support/IsolaHtml.php 파일 보기

@@ -37,7 +37,7 @@ class IsolaHtml
37 37
         libxml_use_internal_errors($previous);
38 38
 
39 39
         if (! $loaded) {
40
-            return nl2br(e(strip_tags($html)));
40
+            return $html;
41 41
         }
42 42
 
43 43
         foreach (self::REMOVE_TAGS as $tag) {

+ 19
- 7
resources/views/mail/annotazione-pubblica-aperta-da.blade.php 파일 보기

@@ -1,6 +1,12 @@
1
-@component('mail::message')
1
+<x-mail::layout>
2
+{{-- Header --}}
3
+<x-slot:header>
4
+<x-mail::header :url="config('app.url')">
5
+{{ config('app.name') }}
6
+</x-mail::header>
7
+</x-slot:header>
2 8
 
3
-@component('mail::panel')
9
+<x-mail::panel>
4 10
 **Azienda:** {{ $aziendaLabel }}
5 11
 
6 12
 **Stato:** {{ $statoLabel }}
@@ -8,14 +14,20 @@
8 14
 **Priorità:** {{ $prioritaLabel }}
9 15
 
10 16
 **Autore:** {{ $autoreLabel }}
11
-@endcomponent
17
+</x-mail::panel>
12 18
 
13 19
 @if(filled(trim(strip_tags($annotazioneHtml))))
14
-<div>{!! $annotazioneHtml !!}</div>
20
+<div class="annotazione-mail">{!! $annotazioneHtml !!}</div>
15 21
 @endif
16 22
 
17
-@component('mail::button', ['url' => $segnalazione->urlCliente()])
23
+<x-mail::button :url="$segnalazione->urlCliente()">
18 24
 Apri segnalazione
19
-@endcomponent
25
+</x-mail::button>
20 26
 
21
-@endcomponent
27
+{{-- Footer --}}
28
+<x-slot:footer>
29
+<x-mail::footer>
30
+© {{ date('Y') }} ElephanTech · Tutti i diritti riservati.
31
+</x-mail::footer>
32
+</x-slot:footer>
33
+</x-mail::layout>

+ 1
- 1
resources/views/vendor/mail/html/layout.blade.php 파일 보기

@@ -46,7 +46,7 @@ width: 100% !important;
46 46
 <!-- Body content -->
47 47
 <tr>
48 48
 <td class="content-cell">
49
-{!! Illuminate\Mail\Markdown::parse($slot) !!}
49
+{!! $slot !!}
50 50
 
51 51
 {!! $subcopy ?? '' !!}
52 52
 </td>

+ 1
- 1
resources/views/vendor/mail/html/message.blade.php 파일 보기

@@ -7,7 +7,7 @@
7 7
 </x-slot:header>
8 8
 
9 9
 {{-- Body --}}
10
-{!! $slot !!}
10
+{!! Illuminate\Mail\Markdown::parse($slot) !!}
11 11
 
12 12
 {{-- Subcopy --}}
13 13
 @isset($subcopy)

Loading…
취소
저장