2020-12-24 01:28:38 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\View\Components;
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
use App\Abstracts\View\Component;
|
2020-12-24 01:28:38 +03:00
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
class Dropdown extends Component
|
2020-12-24 01:28:38 +03:00
|
|
|
{
|
2022-06-01 10:15:55 +03:00
|
|
|
public $id;
|
|
|
|
|
|
|
|
public $override;
|
2021-01-12 11:51:47 +03:00
|
|
|
|
2020-12-24 01:28:38 +03:00
|
|
|
/**
|
|
|
|
* Create a new component instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2022-06-01 10:15:55 +03:00
|
|
|
public function __construct(
|
|
|
|
$id = '', $override = ''
|
|
|
|
) {
|
|
|
|
$this->id = $id;
|
|
|
|
$this->override = explode(',', $override);
|
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()
|
|
|
|
{
|
2022-06-01 10:15:55 +03:00
|
|
|
return view('components.dropdown.index');
|
2020-12-24 01:28:38 +03:00
|
|
|
}
|
|
|
|
}
|