Files
2023-11-07 22:43:10 +00:00

30 lines
585 B
PHP
Executable File

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