<?php

declare(strict_types=1);

namespace Seka\Portal\Modul\Terminy\Http\Controllers\Livewire\Components\Udalosti;

use Illuminate\Contracts\View\View;
use Livewire\Component;
use Seka\Portal\Modul\Terminy\Entities\Udalost\StavUdalosti;

/**
 * Class Stav
 *
 * @package Seka\Portal\Modul\Terminy\Http\Controllers\Livewire\Components\Udalosti
 */
final class Stav extends Component
{
    /**
     * @var \Seka\Portal\Modul\Terminy\Entities\Udalost\StavUdalosti[]
     */
    public array $zoznam;

    /**
     */
    public function mount(): void
    {
        $this->zoznam = StavUdalosti::cases();
    }

    /**
     * @return \Illuminate\Contracts\View\View
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function render(): View
    {
        return view('Terminy::components.livewire.udalosti.stav');
    }

    /**
     * @return \Seka\Portal\Modul\Terminy\Entities\Udalost\StavUdalosti[]
     */
    public function zoznam(): array
    {
        return $this->zoznam;
    }
}
