2020-12-28 18:21:05 +03:00

24 lines
571 B
PHP

<?php
namespace App\View\Components\Documents\Form;
use App\Abstracts\View\Components\DocumentForm as Component;
use Illuminate\Support\Str;
class Company extends Component
{
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|string
*/
public function render()
{
$company = user()->companies()->first();
$inputNameType = Str::replaceFirst('-', '_', $this->type);
return view('components.documents.form.company', compact('company','inputNameType'));
}
}