This commit is contained in:
brusnitsyn
2026-02-20 17:28:16 +09:00
parent 94e374c32b
commit 52a80ccd3b
41 changed files with 2555 additions and 206 deletions

View File

@@ -49,6 +49,10 @@ class DateRangeService
return $this->getDateRangeForUser($user, $startAt, $endAt);
}
if ($user->isDoctor()) {
return $this->getDateRangeForUser($user, $startAt, $endAt);
}
// По умолчанию: с начала года до сегодня
$startDate = Carbon::now('Asia/Yakutsk')
->startOfYear() // 1 января текущего года