SUBD_Transport_Company/app/View/Components/SelectRole.php
2024-01-16 15:14:13 +04:00

30 lines
537 B
PHP

<?php
namespace App\View\Components;
use App\Enums\RoleEnum;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class SelectRole extends Component
{
public $roles;
/**
* Create a new component instance.
*/
public function __construct()
{
$this->roles = RoleEnum::getRange();
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.select-role');
}
}