description = $this->document->isRecurringDocument() ? 'documents.slider.create_recurring' : 'general.last_sent'; $this->histories = $this->document->histories()->status('sent')->latest()->get(); $this->last_sent = $this->histories->first(); $this->user_name = ($this->last_sent) ? $this->last_sent->owner->name : trans('general.na'); $this->type_lowercase = Str::lower(trans_choice($this->textPage, 1)); $date = ($this->last_sent) ? company_date($this->last_sent->created_at) : trans('general.na'); $this->last_sent_date = '' . $date . ''; return view('components.documents.show.send'); } }