document->histories()->orderBy('id', 'desc')->first(); $this->description = trans('invoices.cancel_date') . ': '; $this->description .= '' . company_date($last_history->created_at) . ''; return view('components.documents.show.restore'); } }