|
@@ -1,4 +1,5 @@
|
|
|
-<?php
|
|
|
|
|
|
|
+<?php /** @noinspection PhpUnhandledExceptionInspection */
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @var string $page_title
|
|
* @var string $page_title
|
|
|
* @var array $ranges
|
|
* @var array $ranges
|
|
@@ -6,6 +7,12 @@
|
|
|
|
|
|
|
|
use Carbon\CarbonImmutable;
|
|
use Carbon\CarbonImmutable;
|
|
|
|
|
|
|
|
|
|
+$exclude_customers = Customer::query(["show_in_map_overview" => 0]);
|
|
|
|
|
+$exclude_customer_ids = array_column($exclude_customers, "id");
|
|
|
|
|
+
|
|
|
|
|
+$exclude_projects = Project::query(["customer_id" => $exclude_customer_ids]);
|
|
|
|
|
+$exclude_project_ids = array_column($exclude_projects, "id");
|
|
|
|
|
+
|
|
|
?>
|
|
?>
|
|
|
<div class="container mt-3 py-4">
|
|
<div class="container mt-3 py-4">
|
|
|
|
|
|
|
@@ -26,11 +33,13 @@ use Carbon\CarbonImmutable;
|
|
|
$dts_end = $dt_end->utc()->format("Y-m-d H:i:s");
|
|
$dts_end = $dt_end->utc()->format("Y-m-d H:i:s");
|
|
|
|
|
|
|
|
$test_count = Test::count([
|
|
$test_count = Test::count([
|
|
|
|
|
+ "project_id" => Constraint::notIn($exclude_project_ids),
|
|
|
"dts_start" => Constraint::between($dts_start, $dts_end),
|
|
"dts_start" => Constraint::between($dts_start, $dts_end),
|
|
|
"status" => Test::STATUS_COMPLETED
|
|
"status" => Test::STATUS_COMPLETED
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
$projects = Project::query([
|
|
$projects = Project::query([
|
|
|
|
|
+ "customer_id" => Constraint::notIn($exclude_customer_ids),
|
|
|
"dts_start" => Constraint::between($dts_start, $dts_end),
|
|
"dts_start" => Constraint::between($dts_start, $dts_end),
|
|
|
]);
|
|
]);
|
|
|
|
|
|