SUBD_Transport_Company/app/View/Components/SelectWarehouse.php
2024-01-16 15:14:13 +04:00

30 lines
555 B
PHP

<?php
namespace App\View\Components;
use App\Models\Warehouse;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class SelectWarehouse extends Component
{
public $warehouses;
/**
* Create a new component instance.
*/
public function __construct()
{
$this->warehouses = Warehouse::all();
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.select-warehouse');
}
}