File: //var/www/ivs.kaunokolegija.lt/laravel/app/View/Components/Modal/Import.php
<?php
namespace App\View\Components\Modal;
use Closure;
use Illuminate\View\Component;
use Illuminate\Contracts\View\View;
class Import extends Component
{
/**
* Create a new component instance.
*/
public function __construct(
public $route,
public $title = null,
)
{
$this->title = $this->title ?: __('global.select_file');
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.modal.import');
}
}