=htmlspecialchars(__("Completed Tests"))?>
=htmlspecialchars(__("You have not completed any tests yet."))?>
getInvoiceAddress()) {
?>
=sprintf(htmlspecialchars(__("You have multiple addresses. %sClick here%s to manage your addresses and set one as the invoice address to enable the invoice link.")), '
', '')?>
hasValidPaymentMethod()) {
?>
=sprintf(htmlspecialchars(__("You have no valid payment method. %sClick here%s and verify your payment method settings are correct to enable the invoice link.")), '
', '')?>
getLocation();
$project = $test->getProject();
$attire = $date_start = $time_start = $duration = __("N/A");
$attire_class = $date_start_class = $time_start_class = $duration_class = $fee_class = "text-muted";
date_default_timezone_set("UTC");
if($test->dts_start) {
$start_dt = new DateTime($test->dts_start);
$date_start = $start_dt->format("jS M Y");
$time_start = $start_dt->format("H:i:s");
$attire = $test->attire;
$attire_class = $date_start_class = $time_start_class = "";
if($test->dts_end) {
$end_dt = new DateTime($test->dts_end);
$diff = $start_dt->diff($end_dt, true);
$duration = $diff->format(__("%i min. %S sec."));
$duration_class = "";
}
}
date_default_timezone_set($original_timezone);
$status_class = $test->getStatusClass();
$status_text = $test->getStatusText();
$status_class = "secondary";
$status_text = __("Pending");
$fee = "N/A";
if($test->status == Test::STATUS_CANCELLED) {
$status_class = "danger";
$status_text = __("Rejected");
}
if($test->status == Test::STATUS_COMPLETED) {
$status_class = "success";
$status_text = __("Accepted");
$fee = $test->getTestFee();
$fee = "£" . $fee;
$fee_class = "";
}
?>
=htmlspecialchars($location->name)?>
=htmlspecialchars($location->getDisplayAddress(["city", "postal_code"]))?>
=htmlspecialchars($status_text)?>
=htmlspecialchars($date_start)?>
=htmlspecialchars($time_start)?> / =htmlspecialchars($duration)?>
=htmlspecialchars(__("Fee:"))?> =$fee?>