documents()->with(['variety'])->get() as $doc) { if ($doc->is_close_due != 0) { $docs->add($doc); } } } return $this->markdown('emails.document.notification', [ 'documents' => $docs, 'dueDocuments' => Document::with(['variety'])->whereDate('due_date', '<=', now()->toDateString())->get() ]); } }