|
@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
|