bubofamily/app/View/Components/Widget/Avvisi.php

32 lines
578 B
PHP

<?php
namespace App\View\Components\Widget;
use Illuminate\View\Component;
class Avvisi extends Component
{
/**
* Create a new component instance.
*
* @return void
*/
// public $avvisi ="";
public function __construct(public array $avvisi)
{
//
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render():View
{
return view('components.widget.avvisi', ['avvisi'=>$this->avvisi]);
}
}