"Quarterly", "monthly" => "Monthly", ]; $date_ranges = [ "ytd" => "Year to Date", //"unbound" => "Unbound", "custom" => "Custom", ]; $retests_options = [ 0 => "Exclude", 1 => "Retests Only" ]; $years = range(2018, date("Y")); $date_range_custom_style = ($date_range === "custom") ? "" : "display: none"; $date_range_value = ""; if($date_start && $date_end) { [$min_year, $min_month, $min_day] = explode("-", $date_start); [$max_year, $max_month, $max_day] = explode("-", $date_end); $date_range_value = "$min_day/$min_month/$min_year - $max_day/$max_month/$max_year"; } $brands = $customer->getBrands(); $regions = $customer->getRegions(); $area_managers = $customer->getAreaManagerNames(); $operations_managers = $customer->getOperationsManagerNames(); $gaming_managers = $customer->getGamingManagerNames(); $senior_gaming_managers = $customer->getSeniorGamingManagerNames(); ?>

name)?> Reports


$display) { $checked = ($value === $date_range) ? "checked" : ""; ?>
data-date-range-radio-input />
" placeholder="Enter location IDs" /> Separate each location ID with a space.
Leave blank to generate a report for all locations.
reports->categories ?? []; if($total_data && $categories) { ?>

/>
canSeeMissingData()) { /** * @param string $field * @param Location[] $locations * @return void */ $render_locations_missing_data = static function(string $field, array $locations): void { ?>
There are some locations that are missing "" information:

Report

Retests Excluded Retests Only Retests Included

Test Count
testCount?>
passCount)) { $pass_percentage = 0; if($total_data->testCount > 0) { $pass_percentage = number_format(($total_data->passCount * 100) / $total_data->testCount, 2); } ?>
Pass/Fail Count
passCount?> / failCount?> (%)

Chart List

$chart) { ?> getTitle())?>
$chart) { if($index > 0) { ?>
beforeHtml) { echo $chart->beforeHtml; } ?> print) { $chart->printDataTable(); } if($chart->afterHtml) { echo $chart->afterHtml; } } ?>
" />
"Region", "data" => $region_data ], (object) [ "name" => "Area Manager", "data" => $area_manager_data ], (object) [ "name" => "Operations Manager", "data" => $operations_manager_data ], (object) [ "name" => "Brand", "data" => $brand_data ], ] ?>

Extra Information

name . " Data"; $entity_type = $table->name; // Calculate totals $totals = []; foreach($table->data as $entity_name => $rows) { $totals[] = [ "name" => $entity_name, "testCount" => array_sum(array_column($rows, "testCount")), "passCount" => array_sum(array_column($rows, "passCount")), "failCount" => array_sum(array_column($rows, "failCount")), ]; } if(!$totals) { continue; } ?>

: Totals

Tests Passes Fails Rate
%
Total %
data as $entity_name => $rows) { ?>

:

$data) { $rate = ($data->testCount == 0) ? "0.00" : number_format(($data->passCount * 100) / $data->testCount, 2); $label = $key_labels[$index]; ?>
Period Tests Passes Fails Rate
testCount)?> passCount)?> failCount)?> %