| 1234567891011121314151617181920212223242526272829303132 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- $page_title = "Map Overview";
- Core::addScript("public/js/app-map-overview.js");
- Core::addBreadcrumb("/account", "Account");
- Core::addBreadcrumb("/account/map-overview", $page_title);
- $today = gmdate("Y-m-d") . " 00:00:00";
- $customers = Customer::query([
- "archived" => 0,
- "show_in_map_overview" => "1"
- ], ["sort" => "name"]);
- $customer_ids = array_column($customers, "id");
- Customer::load($customer_ids);
- $projects = Project::query([
- "customer_id" => $customer_ids,
- "dts_deadline" => (new Constraint("MORE_THAN_OR_EQUAL"))->setValues($today)
- ], [
- "sort" => "dts_deadline"
- ]);
- $filter = http::value("filter");
- View::includeOnce("header", compact("page_title"));
- View::include("map_overview", compact("customers", "projects", "filter"));
- View::includeOnce("footer");
|