akaunting/app/View/Components/EditItemColumns.php

32 lines
567 B
PHP
Raw Normal View History

2020-12-24 01:28:38 +03:00
<?php
namespace App\View\Components;
use Illuminate\View\Component;
class EditItemColumns extends Component
{
2021-01-12 11:51:47 +03:00
/* string */
public $type;
2020-12-24 01:28:38 +03:00
/**
* Create a new component instance.
*
* @return void
*/
2021-01-12 11:51:47 +03:00
public function __construct(string $type = 'invoice')
2020-12-24 01:28:38 +03:00
{
2021-01-12 11:51:47 +03:00
$this->type = $type;
2020-12-24 01:28:38 +03:00
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|string
*/
public function render()
{
return view('components.edit-item-columns');
}
}