Akaunting/app/View/Components/Documents/Form/Company.php

24 lines
575 B
PHP
Raw Normal View History

2020-12-23 22:28:38 +00:00
<?php
namespace App\View\Components\Documents\Form;
2020-12-28 13:21:09 +00:00
use App\Abstracts\View\Components\DocumentForm as Component;
2020-12-28 15:21:05 +00:00
use Illuminate\Support\Str;
2020-12-23 22:28:38 +00:00
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 = config("type.{$this->type}.route_parameter");
2020-12-23 22:28:38 +00:00
return view('components.documents.form.company', compact('company','inputNameType'));
}
}