companies()->first(); $inputNameType = Str::replaceFirst('-', '_', $this->type); return view('components.documents.form.company', compact('company','inputNameType')); } }