consultant->account?->first_name.' '.$this->consultant->account?->last_name) ?: $this->consultant->email; $days = $this->deadline ? max(0, (int) now()->startOfDay()->diffInDays($this->deadline->copy()->startOfDay(), false)) : 0; return $this->subject(__('suspension.notice_subject', ['name' => $name])) ->view('emails.consultant_suspension') ->with([ 'headline' => __('suspension.notice_subject', ['name' => $name]), 'salutation' => __('email.hello').' '.($this->sponsor->account?->first_name ?? ''), 'paragraphs' => [ __('suspension.notice_intro', [ 'name' => $name, 'date' => $this->deadline?->format('d.m.Y') ?? '', 'days' => $days, ]), __('suspension.notice_hint'), ], 'customers' => [], 'team' => [], 'greetings' => __('email.greetings'), 'sender' => __('email.sender'), ]); } }