File: /home/lenf4658/public_html/unukaltim.lensapedia.id/unukaltim/app/View/Components/Web/Banner.php
<?php
namespace App\View\Components\Web;
use App\Models\WebBanner;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class Banner extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
$data['banners'] = WebBanner::latest()->get();
return view('components.web.banner', $data);
}
}