SUBD_Transport_Company/app/View/Components/SelectStatus.php

30 lines
551 B
PHP
Raw Permalink Normal View History

2024-01-16 15:14:13 +04:00
<?php
namespace App\View\Components;
use App\Enums\StatusEnum;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class SelectStatus extends Component
{
public $statuses;
/**
* Create a new component instance.
*/
public function __construct()
{
$this->statuses = StatusEnum::getRange();
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.select-status');
}
}