mirror of
https://github.com/myronblair/parkerslingshot
synced 2026-06-30 17:50:22 -05:00
Admin waiver email now includes full agreement text, all acknowledgments, and signature
This commit is contained in:
+84
-12
@@ -46,21 +46,93 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && $booking && !$signed) {
|
|||||||
$pkg = PACKAGES[$booking['package']] ?? ['label'=>$booking['package']];
|
$pkg = PACKAGES[$booking['package']] ?? ['label'=>$booking['package']];
|
||||||
$dateLabel = date('F j, Y', strtotime($booking['rental_date']));
|
$dateLabel = date('F j, Y', strtotime($booking['rental_date']));
|
||||||
|
|
||||||
$adminHtml = "<div style='font-family:Arial,sans-serif;max-width:600px;margin:0 auto'>
|
$checkLabels = [
|
||||||
<div style='background:#f97316;padding:20px;text-align:center'>
|
'age' => 'Age & License: I am 25+ years old and hold a valid driver\'s license.',
|
||||||
<h1 style='color:#fff;margin:0;font-size:18px'>Waiver Signed — {$ref}</h1>
|
'insurance' => 'Insurance: I will provide proof of valid personal auto insurance at pickup.',
|
||||||
|
'rules' => 'Vehicle Rules: I agree to operate safely, lawfully, and sober, and wear the helmet at all times.',
|
||||||
|
'damage' => 'Damage Responsibility: I am financially responsible for any damage or fines during my rental.',
|
||||||
|
'license' => 'License Verification: I consent to license verification at pickup.',
|
||||||
|
'waiver' => 'Assumption of Risk: I have read and agree to the Release of Liability terms.',
|
||||||
|
];
|
||||||
|
$checkRows = '';
|
||||||
|
foreach ($checkLabels as $val => $label) {
|
||||||
|
$checked = in_array($val, $checks);
|
||||||
|
$icon = $checked ? '✅' : '❌';
|
||||||
|
$checkRows .= "<tr><td style='padding:5px 8px 5px 0;vertical-align:top;font-size:13px'>{$icon}</td><td style='padding:5px 0;font-size:13px;color:" . ($checked ? '#111' : '#dc2626') . "'>{$label}</td></tr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$adminHtml = "
|
||||||
|
<div style='font-family:Arial,sans-serif;max-width:680px;margin:0 auto;color:#111'>
|
||||||
|
|
||||||
|
<div style='background:#f97316;padding:20px 28px;text-align:center'>
|
||||||
|
<h1 style='color:#fff;margin:0;font-size:20px;font-weight:700'>Rental Agreement Signed</h1>
|
||||||
|
<p style='color:rgba(255,255,255,0.85);margin:6px 0 0;font-size:14px'>Booking {$ref} — " . htmlspecialchars($booking['name']) . "</p>
|
||||||
</div>
|
</div>
|
||||||
<div style='padding:24px;background:#fff;border:1px solid #e5e7eb'>
|
|
||||||
<p><strong>" . htmlspecialchars($booking['name']) . "</strong> signed the rental waiver for booking <strong>{$ref}</strong>.</p>
|
<!-- Summary -->
|
||||||
<table style='width:100%;font-size:14px'>
|
<div style='background:#fff7ed;padding:18px 28px;border-bottom:1px solid #fed7aa'>
|
||||||
<tr><td style='color:#6b7280;padding:6px 0;width:110px'>Package</td><td style='padding:6px 0'>" . htmlspecialchars($pkg['label']) . "</td></tr>
|
<table style='width:100%;font-size:14px;border-collapse:collapse'>
|
||||||
<tr><td style='color:#6b7280;padding:6px 0'>Date</td><td style='padding:6px 0'>{$dateLabel}</td></tr>
|
<tr><td style='color:#92400e;padding:4px 12px 4px 0;width:130px;font-weight:600'>Booking Ref</td><td style='padding:4px 0;font-weight:700;color:#f97316'>{$ref}</td></tr>
|
||||||
<tr><td style='color:#6b7280;padding:6px 0'>Signed by</td><td style='padding:6px 0'>" . htmlspecialchars($sigName) . "</td></tr>
|
<tr><td style='color:#92400e;padding:4px 12px 4px 0;font-weight:600'>Customer</td><td style='padding:4px 0'>" . htmlspecialchars($booking['name']) . " <" . htmlspecialchars($booking['email']) . "></td></tr>
|
||||||
<tr><td style='color:#6b7280;padding:6px 0'>IP</td><td style='padding:6px 0'>" . htmlspecialchars($ip) . "</td></tr>
|
<tr><td style='color:#92400e;padding:4px 12px 4px 0;font-weight:600'>Package</td><td style='padding:4px 0'>" . htmlspecialchars($pkg['label']) . "</td></tr>
|
||||||
<tr><td style='color:#6b7280;padding:6px 0'>Timestamp</td><td style='padding:6px 0'>" . date('F j, Y g:i A') . " CT</td></tr>
|
<tr><td style='color:#92400e;padding:4px 12px 4px 0;font-weight:600'>Rental Date</td><td style='padding:4px 0'>{$dateLabel}</td></tr>
|
||||||
|
<tr><td style='color:#92400e;padding:4px 12px 4px 0;font-weight:600'>Signed Name</td><td style='padding:4px 0'>" . htmlspecialchars($sigName) . "</td></tr>
|
||||||
|
<tr><td style='color:#92400e;padding:4px 12px 4px 0;font-weight:600'>IP Address</td><td style='padding:4px 0'>" . htmlspecialchars($ip) . "</td></tr>
|
||||||
|
<tr><td style='color:#92400e;padding:4px 12px 4px 0;font-weight:600'>Timestamp</td><td style='padding:4px 0'>" . date('F j, Y g:i:s A') . " CT</td></tr>
|
||||||
</table>
|
</table>
|
||||||
<img src='{$sigData}' style='margin-top:16px;border:1px solid #e5e7eb;border-radius:6px;max-width:100%;height:auto' alt='Signature' />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Acknowledgments -->
|
||||||
|
<div style='background:#fff;padding:18px 28px;border-bottom:1px solid #e5e7eb'>
|
||||||
|
<h2 style='margin:0 0 12px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#374151'>Acknowledgments Checked</h2>
|
||||||
|
<table style='border-collapse:collapse'>{$checkRows}</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Full Agreement Text -->
|
||||||
|
<div style='background:#fff;padding:18px 28px;border-bottom:1px solid #e5e7eb'>
|
||||||
|
<h2 style='margin:0 0 10px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#374151'>Full Rental Agreement</h2>
|
||||||
|
|
||||||
|
<p style='font-size:13px;color:#374151;margin:0 0 10px'>This Rental Agreement (“Agreement”) is entered into between Parker County Slingshot Rentals (“Company”) and the renter identified above (“Renter”). By signing below, Renter agrees to all terms stated herein.</p>
|
||||||
|
|
||||||
|
<p style='font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#f97316;margin:14px 0 4px'>Eligibility Requirements</p>
|
||||||
|
<p style='font-size:13px;color:#374151;margin:0 0 10px'>Renter must be at least 25 years of age and hold a valid Class C driver’s license (or equivalent) issued by a U.S. state or territory. Renter must not have any DUI/DWI convictions within the past 5 years.</p>
|
||||||
|
|
||||||
|
<p style='font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#f97316;margin:14px 0 4px'>Insurance Requirement</p>
|
||||||
|
<p style='font-size:13px;color:#374151;margin:0 0 10px'>Renter is required to carry and provide proof of valid personal auto insurance at the time of vehicle pickup. The Company maintains a fleet insurance policy covering the vehicle; however, Renter’s personal insurance is primary for liability arising from Renter’s operation of the vehicle. Renter accepts financial responsibility for any deductible, damages, or losses not covered by either policy.</p>
|
||||||
|
|
||||||
|
<p style='font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#f97316;margin:14px 0 4px'>Vehicle Use & Rules</p>
|
||||||
|
<p style='font-size:13px;color:#374151;margin:0 0 6px'>Renter agrees to operate the Polaris Slingshot in a safe, lawful manner and specifically agrees to:</p>
|
||||||
|
<ul style='font-size:13px;color:#374151;margin:0 0 10px;padding-left:20px'>
|
||||||
|
<li style='margin-bottom:4px'>Obey all applicable traffic laws and speed limits</li>
|
||||||
|
<li style='margin-bottom:4px'>Never operate the vehicle under the influence of alcohol, drugs, or any impairing substance</li>
|
||||||
|
<li style='margin-bottom:4px'>Never allow an unauthorized third party to operate the vehicle</li>
|
||||||
|
<li style='margin-bottom:4px'>Wear the provided DOT-approved helmet at all times while operating the vehicle</li>
|
||||||
|
<li style='margin-bottom:4px'>Not take the vehicle off paved roads or outside the approved driving area</li>
|
||||||
|
<li>Return the vehicle at the agreed-upon time and location in the same condition it was received</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p style='font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#f97316;margin:14px 0 4px'>Damage & Security Deposit</p>
|
||||||
|
<p style='font-size:13px;color:#374151;margin:0 0 10px'>A refundable security deposit is required at pickup. Renter is financially responsible for any damage to the vehicle, including but not limited to collision damage, tire damage, interior damage, and any fines or citations incurred during the rental period. The Company reserves the right to apply the security deposit toward any such costs.</p>
|
||||||
|
|
||||||
|
<p style='font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#f97316;margin:14px 0 4px'>Assumption of Risk & Release of Liability</p>
|
||||||
|
<p style='font-size:13px;color:#374151;margin:0 0 10px'>Renter acknowledges that operating a Polaris Slingshot involves inherent risks including, but not limited to, physical injury or death. Renter voluntarily assumes all such risks and, to the fullest extent permitted by Texas law, releases and holds harmless Parker County Slingshot Rentals, its owners, employees, and agents from any and all claims, damages, or liability arising out of Renter’s use of the vehicle.</p>
|
||||||
|
|
||||||
|
<p style='font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#f97316;margin:14px 0 4px'>Cancellation Policy</p>
|
||||||
|
<p style='font-size:13px;color:#374151;margin:0 0 10px'>Cancellations made more than 24 hours before the rental start time are fully refunded. Cancellations within 24 hours of the rental start time are subject to a 50% cancellation fee.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Signature -->
|
||||||
|
<div style='background:#fff;padding:18px 28px'>
|
||||||
|
<h2 style='margin:0 0 10px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#374151'>Electronic Signature</h2>
|
||||||
|
<p style='font-size:13px;color:#374151;margin:0 0 4px'>Signed as: <strong>" . htmlspecialchars($sigName) . "</strong> — " . date('F j, Y g:i A') . " CT</p>
|
||||||
|
<p style='font-size:12px;color:#9ca3af;margin:0 0 12px'>This electronic signature was captured via the ESIGN Act-compliant form at parkerslingshot.epictravelexpeditions.com/waiver.php</p>
|
||||||
|
<img src='{$sigData}' style='border:1px solid #e5e7eb;border-radius:6px;max-width:100%;height:auto;display:block' alt='Customer Signature' />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style='background:#f3f4f6;padding:14px 28px;text-align:center'>
|
||||||
|
<p style='margin:0;font-size:11px;color:#9ca3af'>© " . date('Y') . " Parker County Slingshot Rentals — Weatherford, TX — This is an automated record for your files.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>";
|
</div>";
|
||||||
|
|
||||||
$custHtml = "<div style='font-family:Arial,sans-serif;max-width:600px;margin:0 auto'>
|
$custHtml = "<div style='font-family:Arial,sans-serif;max-width:600px;margin:0 auto'>
|
||||||
|
|||||||
Reference in New Issue
Block a user