' . htmlspecialchars($lbl_invoice) . '

Total Safety Solutions B.V.

Laarakkerweg 8

5061 JR OISTERWIJK

Nederland

Invoice Date
: ' . htmlspecialchars(date('d-m-Y', strtotime($invoice_date))) . '
Invoice Number
: ' . htmlspecialchars($order_id) . '
Reference
: Online order
Order number
: ' . htmlspecialchars($order_id) . '
'; foreach ($items as $item) { $line_total = $item['price'] * $item['quantity']; $pdf .= ''; } $pdf .= '
Item code Description Quantity Price Total
SOFTWARE ' . htmlspecialchars($item['name']); if ($item['serial_number'] !== 'N/A') { $pdf .= '
Serial: ' . htmlspecialchars($item['serial_number']) . ''; } if ($item['license_key'] !== 'Pending') { $pdf .= '
License: ' . htmlspecialchars($item['license_key']) . ''; } $pdf .= '
' . htmlspecialchars($item['quantity']) . ' € ' . number_format($item['price'], 2) . ' € ' . number_format($line_total, 2) . '
' . htmlspecialchars($lbl_subtotal) . '
€ ' . number_format($subtotal, 2) . '
'; if ($tax_amount > 0) { $pdf .= '
' . htmlspecialchars($lbl_tax) . '
€ ' . number_format($tax_amount, 2) . '
'; } else { $pdf .= '
VAT
included
'; } $pdf .= '
' . htmlspecialchars($lbl_total) . '
€ ' . number_format($payment_amount, 2) . '
';