HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //var/www/ivs.kaunokolegija.lt/laravel/app/View/Components/Form/Select2WithModal.php
<?php

namespace App\View\Components\Form;

use Closure;
use Illuminate\View\Component;
use Illuminate\Contracts\View\View;

class Select2WithModal extends Component
{
    /**
     * Create a new component instance.
     */
    public function __construct(
       public $label = '',
       public $name,
       public $options = [],
       public $modalId = 'addOptionModal',
       public $value = null,
       public $required = false,
       public $disabled = false,
       public $helpLabel = '',
       public $modalAction = '',
    )
    {
        //
    }

    /**
     * Get the view / contents that represent the component.
     */
    public function render(): View|Closure|string
    {
        return view('components.form.select2-with-modal');
    }
}