getYearCycleConstraint(TIMEZONE);
$display_year_cycle = $customer->getDisplayYearCycle();
$pass_image = $test->pass ? "pass.png" : "fail.png";
// Bar Receipt
$receipt_path_pattern = $test->getDirectory() . "/bar_receipt.*";
$receipt_config = null;
foreach(glob($receipt_path_pattern) as $receipt_path) {
$receipt_config = PdfHelper::getImageConfig($receipt_path);
$mpdf->imageVars["bar_receipt"] = $receipt_config["contents"];
}
// Test counts
$test_count = count($location->getCompletedTests());
$current_test_count = count($location->getCompletedTests(["dts_start" => $year_cycle_constraint]));
?>
=htmlspecialchars($location_text)?>
=htmlspecialchars($customer->region_field_name)?> / =htmlspecialchars($customer->area_manager_field_name)?>:
=TestPDF::getValueHtml($location->region)?> / =TestPDF::getValueHtml($location->area_manager)?>
=TestPDF::getValueHtml($location->region_name)?> / =TestPDF::getValueHtml($location->area_manager_name)?>
Address:
=htmlspecialchars($location->address_1)?>
address_2) {
?>
=htmlspecialchars($location->address_2)?>
=htmlspecialchars($location->city)?>
=htmlspecialchars($location->legal_entity_name)?>
OPM: =htmlspecialchars($location->operations_manager_name)?>
Postcode:
=htmlspecialchars($location->postal_code)?>
Shop Name - Left:
=htmlspecialchars($test->shop_left)?>
Shop Name - Right:
=htmlspecialchars($test->shop_right)?>
Tests (All-Time)
=$test_count?>
Tests (Cur. Year Period)
=$current_test_count?>
(=$display_year_cycle?>)
Date:
=htmlspecialchars($date_start)?>
Entry:
=htmlspecialchars($time_start)?>
Exit:
=htmlspecialchars($time_end)?>
Duration:
=htmlspecialchars($duration_text)?>
Present:
=TestPDF::getBooleanHtml($values["security_staff_present"] ?? false)?>
Asked For ID:
=TestPDF::getBooleanHtml($values["security_staff_challenge"] ?? false)?>
Line of Sight of Bar:
=TestPDF::getBooleanHtml($values["play_machine_line_of_sight"] ?? false)?>
Name:
=TestPDF::getValueHtml($test->challenger_name)?>
Gender:
=TestPDF::getValueHtml(Util::getGenderText($test->challenger_gender))?>
Description:
=TestPDF::getValueHtml($test->challenger_description)?>
Challenge 21/25:
=TestPDF::getValueHtml($values["challenge_21_25"] ?? "")?>
Citizen Card Brochure Displayed:
=TestPDF::getValueHtml($value)?>
Challenge 21/25 Posters Displayed:
=TestPDF::getValueHtml($value)?>
Challenge 21/25 Poster Notes:
=TestPDF::getValueHtml($values["challenge_21_poster_notes"] ?? "")?>
Arrival:
=TestPDF::getValueHtml($bar_time)?>
Staff Name:
=TestPDF::getValueHtml($bar_staff_name)?>
Staff Gender:
=TestPDF::getValueHtml($bar_staff_gender)?>
Staff Description:
=TestPDF::getValueHtml($bar_staff_description)?>
Staff Asked For ID:
=TestPDF::getBooleanHtml($bar_age_verification)?>
Alcohol Purchased:
=TestPDF::getBooleanHtml($alcohol_purchased)?>
Drink Purchased:
=TestPDF::getValueHtml($bar_purchase_item)?>
Bar Spend:
£=number_format($bar_expenditure, 2)?>

" height="=$receipt_config["height"]?>" alt="" />
pass ? "green" : "red";
switch($test->challenge_stage) {
case 1:
case 2:
$challenge_colour = "green";
break;
case 3:
$challenge_colour = "orange";
break;
case 4:
case 5:
default:
$challenge_colour = "red";
break;
}
?>
Result:
=htmlspecialchars($test->getPassText())?>
ID Stage:
=htmlspecialchars($test->challenge_stage . " - " . $test->getChallengeStageText())?>
1: Challenge on entry
2: Challenge while browsing
3: Challenge during play
4: Challenge after play
5: No challenge
Eye Contact:
=($test->challenger_eye_contact ? "Yes" : "No")?>
Description:
=TestPDF::getValueHtml($test->challenge_description)?>
Machine Played:
=TestPDF::getValueHtml($values["play_machine"] ?? "")?>
Machine Position:
=TestPDF::getValueHtml($values["play_machine_position"] ?? "")?>
Jackpot Value:
=TestPDF::getValueHtml($play_jackpot)?>
Stake Played:
=TestPDF::getValueHtml($play_machine_stake)?>
Minutes Played:
=TestPDF::getValueHtml($values["play_minutes"] ?? "")?>
Amount Spent:
=TestPDF::getValueHtml($play_spent)?>