Files
CRM/app/Http/ViewComposers/DateSelectViewComposer.php
Kroonk a213a1dba0
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
refactor: replace custom CRM with Monica fork
2026-05-22 16:19:55 +02:00

30 lines
516 B
PHP

<?php
namespace App\Http\ViewComposers;
use Illuminate\View\View;
use App\Helpers\DateHelper;
class DateSelectViewComposer
{
/**
* Bind data to the view.
*
* @param View $view
* @return void
*/
public function compose(View $view)
{
// Months
$months = DateHelper::getListOfMonths();
// Years
$years = DateHelper::getListOfYears(120);
$view->with([
'months' => $months,
'years' => $years,
]);
}
}