| 12345678910111213141516171819202122232425262728293031 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- use Carbon\CarbonImmutable;
- $page_title = __("Overview");
- $dt_now = CarbonImmutable::now(TIMEZONE);
- $ranges = [];
- $ranges[] = [
- "name" => __("Year to Date"),
- "start" => $dt_now->startOfYear(),
- "end" => $dt_now->endOfYear()
- ];
- $ranges[] = [
- "name" => __("This Month"),
- "start" => $dt_now->startOfMonth(),
- "end" => $dt_now->endOfMonth(),
- ];
- $ranges[] = [
- "name" => __("Last Month"),
- "start" => $dt_now->subMonthNoOverflow()->startOfMonth(),
- "end" => $dt_now->subMonthNoOverflow()->endOfMonth(),
- ];
- View::includeOnce("header", compact("page_title"));
- View::include("overview", compact("page_title", "ranges"));
- View::includeOnce("footer");
|