akaunting/app/View/Components/Documents/Form/Content.php

25 lines
536 B
PHP
Raw Normal View History

2020-12-23 22:28:38 +00:00
<?php
namespace App\View\Components\Documents\Form;
2022-06-01 07:15:55 +00:00
use App\Abstracts\View\Components\Documents\Form as Component;
2020-12-23 22:28:38 +00:00
class Content extends Component
{
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|string
*/
public function render()
{
2021-01-26 08:42:42 +00:00
$status = 'draft';
2022-06-01 07:15:55 +00:00
if (! empty($this->document)) {
2021-01-26 08:42:42 +00:00
$status = $this->document->status;
}
return view('components.documents.form.content', compact('status'));
2020-12-23 22:28:38 +00:00
}
}