25 lines
534 B
PHP
25 lines
534 B
PHP
<?php
|
|
|
|
namespace App\View\Components;
|
|
|
|
use Closure;
|
|
use Illuminate\Contracts\View\View;
|
|
use Illuminate\View\Component;
|
|
|
|
class ActivityYearSelect extends Component
|
|
{
|
|
public $selectedYear;
|
|
public $inventoryYear;
|
|
|
|
public function __construct($selectedYear = null, $inventoryYear = null)
|
|
{
|
|
$this->selectedYear = $selectedYear;
|
|
$this->inventoryYear = $inventoryYear ?? date('Y');
|
|
}
|
|
|
|
public function render(): View|Closure|string
|
|
{
|
|
return view('components.activity-year-select');
|
|
}
|
|
}
|