File: /var/www/vhost/disk-apps/sigedo-qas.allup.com.co/app/View/Components/InstitutionParameters.php
<?php
namespace App\View\Components;
use App\Program;
use App\Institution;
use App\Rotation;
use Illuminate\View\Component;
class InstitutionParameters extends Component
{
public $institutions;
public $programs;
public $rotations;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct()
{
$this->institutions = Institution::where('active', true)->orderBy('name', 'asc')->get();
$this->programs = Program::where('active', true)->orderBy('name', 'asc')->get();
$this->rotations = Rotation::where('active', true)->orderBy('name', 'asc')->get();
}
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\View\View|string
*/
public function render()
{
return view('components.institution-parameters');
}
}