|
@@ -23,8 +23,22 @@ $display_year_cycle = $customer->getDisplayYearCycle();
|
|
|
|
|
|
|
|
$alcohol_purchased = $values["alcohol_purchased"] ?? "";
|
|
$alcohol_purchased = $values["alcohol_purchased"] ?? "";
|
|
|
|
|
|
|
|
-$pass_image = $test->pass ? "pass.png" : "fail.png";
|
|
|
|
|
-$alcohol_pass_image = empty($alcohol_purchased) ? "pass.png" : "fail.png";
|
|
|
|
|
|
|
+$gaming_void = ($test->void_primary || $test->void);
|
|
|
|
|
+$alcohol_void = ($test->void_secondary || $test->void);
|
|
|
|
|
+
|
|
|
|
|
+if($gaming_void) {
|
|
|
|
|
+ $pass_image = "void.png";
|
|
|
|
|
+}
|
|
|
|
|
+else {
|
|
|
|
|
+ $pass_image = $test->pass ? "pass.png" : "fail.png";
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+if($alcohol_void) {
|
|
|
|
|
+ $alcohol_pass_image = "void.png";
|
|
|
|
|
+}
|
|
|
|
|
+else {
|
|
|
|
|
+ $alcohol_pass_image = empty($alcohol_purchased) ? "pass.png" : "fail.png";
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
// Bar Receipt
|
|
// Bar Receipt
|
|
|
$receipt_path_pattern = $test->getDirectory() . "/bar_receipt.*";
|
|
$receipt_path_pattern = $test->getDirectory() . "/bar_receipt.*";
|
|
@@ -47,9 +61,9 @@ $render_field_value = static function($field, $value): void {
|
|
|
<?php
|
|
<?php
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-if($test->pass) {
|
|
|
|
|
|
|
+if($test->pass && !$gaming_void) {
|
|
|
?>
|
|
?>
|
|
|
- <h3 class="section">Test Result</h3>
|
|
|
|
|
|
|
+ <h3 class="section">Gaming Machine Test Result</h3>
|
|
|
|
|
|
|
|
<div align="center" style="margin: auto; width: 75%;">
|
|
<div align="center" style="margin: auto; width: 75%;">
|
|
|
<img src="/img/<?=htmlspecialchars($pass_image)?>" alt="" />
|
|
<img src="/img/<?=htmlspecialchars($pass_image)?>" alt="" />
|
|
@@ -75,11 +89,8 @@ else {
|
|
|
<br />
|
|
<br />
|
|
|
<?php
|
|
<?php
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
?>
|
|
?>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<div style="float: left; width: 49.25%; position: relative;">
|
|
<div style="float: left; width: 49.25%; position: relative;">
|
|
|
<h3 class="section"><?=htmlspecialchars($location_text)?></h3>
|
|
<h3 class="section"><?=htmlspecialchars($location_text)?></h3>
|
|
|
|
|
|
|
@@ -102,8 +113,6 @@ else {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<section>
|
|
<section>
|
|
|
<h3 class="section">Tester</h3>
|
|
<h3 class="section">Tester</h3>
|
|
|
|
|
|
|
@@ -117,11 +126,9 @@ else {
|
|
|
<?=htmlspecialchars($test->attire)?>
|
|
<?=htmlspecialchars($test->attire)?>
|
|
|
</div>
|
|
</div>
|
|
|
</section>
|
|
</section>
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div style="float: right; width: 49.25%">
|
|
<div style="float: right; width: 49.25%">
|
|
|
-
|
|
|
|
|
<section>
|
|
<section>
|
|
|
<h3 class="section">House Information</h3>
|
|
<h3 class="section">House Information</h3>
|
|
|
|
|
|
|
@@ -134,8 +141,6 @@ else {
|
|
|
$render_field_value("Density", $location->machine_count);
|
|
$render_field_value("Density", $location->machine_count);
|
|
|
?>
|
|
?>
|
|
|
</section>
|
|
</section>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div style="clear: both;"></div>
|
|
<div style="clear: both;"></div>
|
|
@@ -167,14 +172,17 @@ else {
|
|
|
|
|
|
|
|
<div style="clear: both;"></div><br />
|
|
<div style="clear: both;"></div><br />
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<div class="subheader">
|
|
<div class="subheader">
|
|
|
<strong>ID Request</strong>
|
|
<strong>ID Request</strong>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
<?php
|
|
|
-
|
|
|
|
|
- $pass_colour = $test->pass ? "green" : "red";
|
|
|
|
|
|
|
+ if($gaming_void) {
|
|
|
|
|
+ $pass_colour = "orange";
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ $pass_colour = $test->pass ? "green" : "red";
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
switch($test->challenge_stage) {
|
|
switch($test->challenge_stage) {
|
|
|
case 1:
|
|
case 1:
|
|
@@ -199,40 +207,47 @@ else {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div>
|
|
|
|
|
- <div class="field">ID Stage:</div>
|
|
|
|
|
- <div class="value" style="color: <?=$challenge_colour?>">
|
|
|
|
|
- <strong><?=htmlspecialchars($test->challenge_stage . " - " . $test->getChallengeStageText())?></strong>
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if(!$gaming_void) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="field">ID Stage:</div>
|
|
|
|
|
+ <div class="value" style="color: <?=$challenge_colour?>">
|
|
|
|
|
+ <strong><?=htmlspecialchars($test->challenge_stage . " - " . $test->getChallengeStageText())?></strong>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Eye Contact:</div>
|
|
|
|
|
- <div class="value"><?=($test->challenger_eye_contact ? "Yes" : "No")?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Eye Contact:</div>
|
|
|
|
|
+ <div class="value"><?=($test->challenger_eye_contact ? "Yes" : "No")?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <div>
|
|
|
|
|
- <strong>Description:</strong><br />
|
|
|
|
|
- <?=TestPDF::getValueHtml($test->challenge_description)?>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <strong>Description:</strong><br />
|
|
|
|
|
+ <?=TestPDF::getValueHtml($test->challenge_description)?>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <br />
|
|
|
|
|
|
|
+ <br />
|
|
|
|
|
|
|
|
- <section>
|
|
|
|
|
- <div class="subheader">
|
|
|
|
|
- <strong>Staff</strong>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <section>
|
|
|
|
|
+ <div class="subheader">
|
|
|
|
|
+ <strong>Staff</strong>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Name:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getValueHtml($test->challenger_name)?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Name:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getValueHtml($test->challenger_name)?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <strong>Description:</strong><br />
|
|
|
|
|
- <?=TestPDF::getValueHtml($test->challenger_description)?><br />
|
|
|
|
|
|
|
+ <strong>Description:</strong><br />
|
|
|
|
|
+ <?=TestPDF::getValueHtml($test->challenger_description)?><br />
|
|
|
|
|
+
|
|
|
|
|
+ <br />
|
|
|
|
|
+ </section>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
|
|
|
- <br />
|
|
|
|
|
- </section>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
<!-- Page 1 / Alcohol Test -->
|
|
<!-- Page 1 / Alcohol Test -->
|
|
@@ -251,6 +266,16 @@ else {
|
|
|
$alcohol_purchased = $values["alcohol_purchased"] ?? "";
|
|
$alcohol_purchased = $values["alcohol_purchased"] ?? "";
|
|
|
$bar_expenditure = ($values["bar_expenditure"] ?? "") ?: 0;
|
|
$bar_expenditure = ($values["bar_expenditure"] ?? "") ?: 0;
|
|
|
$bar_purchase_item = ($values["bar_purchase_item"] ?? "");
|
|
$bar_purchase_item = ($values["bar_purchase_item"] ?? "");
|
|
|
|
|
+
|
|
|
|
|
+ if($alcohol_void) {
|
|
|
|
|
+ $alcohol_pass_colour = "orange";
|
|
|
|
|
+ $alcohol_pass_text = "Void";
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ $alcohol_pass_colour = $alcohol_purchased ? "red" : "green";
|
|
|
|
|
+ $alcohol_pass_text = $alcohol_purchased ? "Fail" : "Pass";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
?>
|
|
?>
|
|
|
|
|
|
|
|
<div class="subheader">
|
|
<div class="subheader">
|
|
@@ -258,30 +283,44 @@ else {
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="wide-field-names">
|
|
<div class="wide-field-names">
|
|
|
|
|
+
|
|
|
<div class="bl">
|
|
<div class="bl">
|
|
|
<div class="field">Arrival:</div>
|
|
<div class="field">Arrival:</div>
|
|
|
<div class="value"><?=TestPDF::getValueHtml($bar_time)?></div>
|
|
<div class="value"><?=TestPDF::getValueHtml($bar_time)?></div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="bl">
|
|
<div class="bl">
|
|
|
- <div class="field">Asked For ID:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getBooleanHtml($bar_age_verification)?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Alcohol Purchased:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getBooleanHtml($alcohol_purchased)?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Drink Purchased:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getValueHtml($bar_purchase_item)?></div>
|
|
|
|
|
|
|
+ <div class="field">Result:</div>
|
|
|
|
|
+ <div class="value" style="color: <?=$alcohol_pass_colour?>">
|
|
|
|
|
+ <strong><?=htmlspecialchars($alcohol_pass_text)?></strong>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Bar Spend:</div>
|
|
|
|
|
- <div class="value">£<?=number_format($bar_expenditure, 2)?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if(!$alcohol_void) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Asked For ID:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getBooleanHtml($bar_age_verification)?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Alcohol Purchased:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getBooleanHtml($alcohol_purchased)?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Drink Purchased:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getValueHtml($bar_purchase_item)?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Bar Spend:</div>
|
|
|
|
|
+ <div class="value">£<?=number_format($bar_expenditure, 2)?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<br />
|
|
<br />
|
|
@@ -307,72 +346,78 @@ else {
|
|
|
|
|
|
|
|
<!-- Page 2 / Machine Test -->
|
|
<!-- Page 2 / Machine Test -->
|
|
|
<div style="float: left; width: 49.25%">
|
|
<div style="float: left; width: 49.25%">
|
|
|
- <div class="subheader">
|
|
|
|
|
- <strong>Play Details</strong>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="wide-field-names">
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Machine Played:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getValueHtml($values["play_machine"] ?? "")?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Machine Position:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getValueHtml($values["play_machine_position"] ?? "")?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <?php
|
|
|
|
|
- $play_jackpot = $values["play_jackpot"] ?? "";
|
|
|
|
|
- if(!empty($play_jackpot)) {
|
|
|
|
|
- $play_jackpot = "£" . number_format($play_jackpot, 2);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if(!$gaming_void) {
|
|
|
?>
|
|
?>
|
|
|
-
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Jackpot Value:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getValueHtml($play_jackpot)?></div>
|
|
|
|
|
|
|
+ <div class="subheader">
|
|
|
|
|
+ <strong>Play Details</strong>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="wide-field-names">
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Machine Played:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getValueHtml($values["play_machine"] ?? "")?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <?php
|
|
|
|
|
- $play_machine_stake = $values["play_machine_stake"] ?? "";
|
|
|
|
|
- if(!empty($play_machine_stake)) {
|
|
|
|
|
- $play_machine_stake = "£" . number_format($play_machine_stake, 2);
|
|
|
|
|
- }
|
|
|
|
|
- ?>
|
|
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Machine Position:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getValueHtml($values["play_machine_position"] ?? "")?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Stake Played:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getValueHtml($play_machine_stake)?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+ $play_jackpot = $values["play_jackpot"] ?? "";
|
|
|
|
|
+ if(!empty($play_jackpot)) {
|
|
|
|
|
+ $play_jackpot = "£" . number_format($play_jackpot, 2);
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
|
|
|
- <div class="bl">
|
|
|
|
|
- <div class="field">Minutes Played:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getValueHtml($values["play_minutes"] ?? "")?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Jackpot Value:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getValueHtml($play_jackpot)?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <?php
|
|
|
|
|
- $play_spent = $values["play_spent"] ?? "";
|
|
|
|
|
- if(!empty($play_spent)) $play_spent = "£" . number_format($play_spent, 2);
|
|
|
|
|
- ?>
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+ $play_machine_stake = $values["play_machine_stake"] ?? "";
|
|
|
|
|
+ if(!empty($play_machine_stake)) {
|
|
|
|
|
+ $play_machine_stake = "£" . number_format($play_machine_stake, 2);
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
|
|
|
|
|
- <div>
|
|
|
|
|
- <div class="field">Amount Spent:</div>
|
|
|
|
|
- <div class="value"><?=TestPDF::getValueHtml($play_spent)?></div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Stake Played:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getValueHtml($play_machine_stake)?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <section>
|
|
|
|
|
- <h3 class="subheader">ID Stage Reference</h3>
|
|
|
|
|
|
|
+ <div class="bl">
|
|
|
|
|
+ <div class="field">Minutes Played:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getValueHtml($values["play_minutes"] ?? "")?></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <div>
|
|
|
|
|
- <div style="color: green;">1: Challenge on entry</div>
|
|
|
|
|
- <div style="color: green;">2: Challenge while browsing</div>
|
|
|
|
|
- <div style="color: orange;">3: Challenge during play</div>
|
|
|
|
|
- <div style="color: red;">4: Challenge after play</div>
|
|
|
|
|
- <div style="color: red;">5: No challenge</div>
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+ $play_spent = $values["play_spent"] ?? "";
|
|
|
|
|
+ if(!empty($play_spent)) $play_spent = "£" . number_format($play_spent, 2);
|
|
|
|
|
+ ?>
|
|
|
|
|
+
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="field">Amount Spent:</div>
|
|
|
|
|
+ <div class="value"><?=TestPDF::getValueHtml($play_spent)?></div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </section>
|
|
|
|
|
|
|
|
|
|
|
|
+ <section>
|
|
|
|
|
+ <h3 class="subheader">ID Stage Reference</h3>
|
|
|
|
|
+
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div style="color: green;">1: Challenge on entry</div>
|
|
|
|
|
+ <div style="color: green;">2: Challenge while browsing</div>
|
|
|
|
|
+ <div style="color: orange;">3: Challenge during play</div>
|
|
|
|
|
+ <div style="color: red;">4: Challenge after play</div>
|
|
|
|
|
+ <div style="color: red;">5: No challenge</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </section>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- Page 2 / Alcohol Test -->
|
|
<!-- Page 2 / Alcohol Test -->
|
|
|
<div style="float: right; width: 49.25%">
|
|
<div style="float: right; width: 49.25%">
|