@php $email = null; if(isset($details['type'])) { $types = [$details['type'], $details['type'].'s']; if (substr($details['type'], -1) === 's') $types[] = substr($details['type'], 0, -1); $email = App\Models\EmailMessage::whereIn('type', $types)->first(); } $salutation_style = [ 'size' => 16, 'bold' => false, 'italic' => false, 'underline' => false, ]; if ($email && isset($email->salutation_style)) $salutation_style = json_decode($email->salutation_style, true); @endphp
@forelse ($details['buttons'] as $button) @empty @endforelse
@if($details['type'] == 'guest_request_offer_to_admin') Webes Ajánlatkérés! @else {{ $details['salutation'] }} @endif
{!! $details['body'] !!}
Üdvözlettel:
@include('emails.signature')