This commit is contained in:
Flatlogic Bot 2025-10-31 16:05:12 +00:00
parent 8e5759b11e
commit 8e3346f748
4 changed files with 630 additions and 143 deletions

173
assets/css/custom.css Normal file
View File

@ -0,0 +1,173 @@
/* Safari Muscat Airfare Request Generator - Custom Styles */
/* --- Typography & Base --- */
body {
font-family: 'Poppins', sans-serif;
background-color: #f8f9fa;
color: #333;
}
/* --- Main Container --- */
.form-container {
max-width: 800px;
margin: 2rem auto;
background-color: #ffffff;
border-radius: 0.75rem;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
padding: 2.5rem;
}
/* --- Header --- */
.company-header {
text-align: center;
border-bottom: 1px solid #eee;
padding-bottom: 1.5rem;
margin-bottom: 2rem;
}
.company-header h1 {
font-weight: 600;
color: #2c3e50;
font-size: 1.75rem;
}
.company-header p {
margin-bottom: 0.25rem;
color: #555;
font-size: 0.95rem;
}
/* --- Section Styling --- */
.form-section {
margin-bottom: 2rem;
}
.section-title {
font-weight: 600;
font-size: 1.2rem;
color: #333;
margin-bottom: 1.5rem;
display: flex;
align-items: center;
}
.section-title i {
font-size: 1.1rem;
margin-right: 0.75rem;
color: #40E0D0; /* Accent Color */
}
/* --- Form Elements --- */
.form-control, .form-select {
border-radius: 0.5rem;
border: 1px solid #ced4da;
padding: 0.75rem 1rem;
transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
border-color: #40E0D0;
box-shadow: 0 0 0 0.25rem rgba(64, 224, 208, 0.2);
}
.form-control[readonly] {
background-color: #e9ecef;
font-weight: 600;
}
.form-check-input:checked {
background-color: #40E0D0;
border-color: #40E0D0;
}
/* --- Total Fare Section --- */
.total-fare-section {
margin-top: 2.5rem;
padding-top: 1.5rem;
border-top: 2px dashed #eee;
}
.grand-total-label {
font-size: 1.2rem;
font-weight: 600;
color: #2c3e50;
}
.grand-total-input {
font-size: 1.5rem;
font-weight: 600;
color: #40E0D0;
text-align: right;
}
/* --- Buttons --- */
.btn {
border-radius: 0.5rem;
padding: 0.75rem 1.5rem;
font-weight: 600;
transition: all 0.3s ease;
}
.btn-primary {
background-color: #40E0D0;
border-color: #40E0D0;
}
.btn-primary:hover {
background-color: #36c4b4;
border-color: #36c4b4;
transform: translateY(-2px);
}
.btn-secondary {
background-color: #6c757d;
border-color: #6c757d;
}
.btn-secondary:hover {
background-color: #5a6268;
border-color: #5a6268;
}
.btn-light {
background-color: #f8f9fa;
border-color: #ced4da;
}
/* --- Layover Section --- */
#layoverDetails {
display: none; /* Hidden by default */
margin-top: 1rem;
padding: 1.5rem;
background-color: #fcfcfc;
border: 1px solid #eee;
border-radius: 0.5rem;
}
/* --- Preview Modal --- */
.modal-header {
border-bottom: 1px solid #eee;
}
.modal-title {
font-weight: 600;
}
#previewContent h5 {
font-weight: 600;
color: #40E0D0;
margin-top: 1rem;
margin-bottom: 1rem;
font-size: 1.1rem;
border-bottom: 1px solid #f0f0f0;
padding-bottom: 0.5rem;
}
#previewContent p {
margin-bottom: 0.5rem;
}
#previewContent .table {
margin-top: 1rem;
}

201
assets/js/main.js Normal file
View File

@ -0,0 +1,201 @@
document.addEventListener('DOMContentLoaded', function () {
// --- Toggle for Layover Section ---
const layoverToggle = document.getElementById('layoverToggle');
const layoverDetails = document.getElementById('layoverDetails');
if (layoverToggle) {
layoverToggle.addEventListener('change', function () {
layoverDetails.style.display = this.checked ? 'block' : 'none';
});
}
// --- Auto-calculation for Fares ---
const passengersInput = document.getElementById('passengers');
const fareInput = document.getElementById('fare');
const totalFareInput = document.getElementById('totalFare');
const infantsInput = document.getElementById('infants');
const infantFareInput = document.getElementById('infantFare');
const totalInfantFareInput = document.getElementById('totalInfantFare');
const extraChargePriceInput = document.getElementById('extraChargePrice');
const grandTotalInput = document.getElementById('grandTotal');
const calculationFields = [passengersInput, fareInput, infantsInput, infantFareInput, extraChargePriceInput];
function calculateTotals() {
const passengers = parseFloat(passengersInput.value) || 0;
const fare = parseFloat(fareInput.value) || 0;
const infants = parseFloat(infantsInput.value) || 0;
const infantFare = parseFloat(infantFareInput.value) || 0;
const extraCharges = parseFloat(extraChargePriceInput.value) || 0;
const totalFare = passengers * fare;
const totalInfantFare = infants * infantFare;
const grandTotal = totalFare + totalInfantFare + extraCharges;
totalFareInput.value = totalFare.toFixed(3);
totalInfantFareInput.value = totalInfantFare.toFixed(3);
grandTotalInput.value = grandTotal.toFixed(3) + ' OMR';
}
calculationFields.forEach(field => {
if (field) {
field.addEventListener('input', calculateTotals);
}
});
// Initial calculation on page load
calculateTotals();
// --- Preview Modal Logic ---
const previewButton = document.getElementById('previewButton');
const previewModal = new bootstrap.Modal(document.getElementById('previewModal'));
const previewContent = document.getElementById('previewContent');
if (previewButton) {
previewButton.addEventListener('click', function () {
// Helper to get form values
const getValue = (id) => document.getElementById(id).value || 'N/A';
// Collect data from form fields
const customerName = getValue('customerName');
const phoneNumber = getValue('phoneNumber');
const email = getValue('email');
const passengers = getValue('passengers');
const departureAirport = getValue('departureAirport');
const arrivalAirport = getValue('arrivalAirport');
const departureDate = getValue('departureDate');
const returnDate = getValue('returnDate');
const airline = getValue('airline');
const cabinClass = getValue('cabinClass');
let layoverInfo = '';
if (layoverToggle.checked) {
const layoverAirport = getValue('layoverAirport');
const layoverDuration = getValue('layoverDuration');
layoverInfo = `
<h5><i class="bi bi-clock"></i> Layover Details</h5>
<p><strong>Layover Airport:</strong> ${layoverAirport}</p>
<p><strong>Duration:</strong> ${layoverDuration}</p>
`;
}
const fare = parseFloat(getValue('fare')).toFixed(3) || '0.000';
const totalFare = getValue('totalFare');
const infants = getValue('infants');
const infantFare = parseFloat(getValue('infantFare')).toFixed(3) || '0.000';
const totalInfantFare = getValue('totalInfantFare');
const infantBaggage = getValue('infantBaggage');
const checkedBaggage = getValue('checkedBaggage');
const weightPerPiece = getValue('weightPerPiece');
const handBaggage = getValue('handBaggage');
const baggageNotes = getValue('baggageNotes');
const extraChargeDescription = getValue('extraChargeDescription');
const extraChargePrice = parseFloat(getValue('extraChargePrice')).toFixed(3) || '0.000';
const grandTotal = getValue('grandTotal');
const otherRequests = getValue('otherRequests');
// Construct HTML for preview
previewContent.innerHTML = `
<div class="row">
<div class="col-md-6">
<h5><i class="bi bi-person-circle"></i> Customer Details</h5>
<p><strong>Name:</strong> ${customerName}</p>
<p><strong>Phone:</strong> ${phoneNumber}</p>
<p><strong>Email:</strong> ${email}</p>
</div>
<div class="col-md-6">
<h5><i class="bi bi-airplane-fill"></i> Flight Information</h5>
<p><strong>From:</strong> ${departureAirport}</p>
<p><strong>To:</strong> ${arrivalAirport}</p>
<p><strong>Departure:</strong> ${departureDate}</p>
<p><strong>Return:</strong> ${returnDate || 'One-way'}</p>
<p><strong>Airline:</strong> ${airline}</p>
<p><strong>Class:</strong> ${cabinClass}</p>
</div>
</div>
${layoverInfo}
<hr>
<div class="row">
<div class="col-md-6">
<h5><i class="bi bi-person-arms-up"></i> Passenger & Infant Details</h5>
<p><strong>No. of Passengers:</strong> ${passengers}</p>
<p><strong>No. of Infants:</strong> ${infants}</p>
<p><strong>Infant Baggage:</strong> ${infantBaggage}</p>
</div>
<div class="col-md-6">
<h5><i class="bi bi-briefcase-fill"></i> Adult Baggage Details</h5>
<p><strong>Checked Pieces:</strong> ${checkedBaggage}</p>
<p><strong>Weight per Piece:</strong> ${weightPerPiece} kg</p>
<p><strong>Hand Baggage:</strong> ${handBaggage} kg</p>
<p><strong>Notes:</strong> ${baggageNotes}</p>
</div>
</div>
<hr>
<h5><i class="bi bi-cash-coin"></i> Fare Summary (OMR)</h5>
<table class="table table-sm">
<tbody>
<tr>
<td>Fare per Passenger</td>
<td class="text-end">${fare}</td>
</tr>
<tr>
<td><strong>Total Passenger Fare</strong></td>
<td class="text-end"><strong>${totalFare}</strong></td>
</tr>
<tr>
<td>Infant Fare</td>
<td class="text-end">${infantFare}</td>
</tr>
<tr>
<td><strong>Total Infant Fare</strong></td>
<td class="text-end"><strong>${totalInfantFare}</strong></td>
</tr>
<tr>
<td>${extraChargeDescription || 'Extra Charges'}</td>
<td class="text-end">${extraChargePrice}</td>
</tr>
<tr class="table-active">
<td class="fw-bold">Grand Total</td>
<td class="text-end fw-bold">${grandTotal}</td>
</tr>
</tbody>
</table>
<h5><i class="bi bi-chat-left-text-fill"></i> Additional Comments</h5>
<p>${otherRequests}</p>
`;
// Show the modal
previewModal.show();
});
}
// --- Reset Form Logic ---
const resetButton = document.getElementById('resetButton');
const airfareForm = document.getElementById('airfareForm');
if (resetButton) {
resetButton.addEventListener('click', function() {
airfareForm.reset();
// Manually hide the layover section if it was open
if (layoverToggle.checked) {
layoverDetails.style.display = 'none';
}
// Recalculate totals to reset them to 0
calculateTotals();
});
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

393
index.php
View File

@ -1,150 +1,263 @@
<?php <!DOCTYPE html>
declare(strict_types=1);
@ini_set('display_errors', '1');
@error_reporting(E_ALL);
@date_default_timezone_set('UTC');
$phpVersion = PHP_VERSION;
$now = date('Y-m-d H:i:s');
?>
<!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>New Style</title>
<?php <!-- Meta Tags -->
// Read project preview data from environment <title>Safari Muscat Airfare Request Generator</title>
$projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? ''; <meta name="description" content="A web app to generate airfare requests for Safari Muscat Tourism clients. Built with Flatlogic Generator.">
$projectImageUrl = $_SERVER['PROJECT_IMAGE_URL'] ?? ''; <meta name="keywords" content="airfare request, flight booking, travel agency, safari muscat, flight quote, travel quote, generate flight pdf, flight information form, travel agent tool, oman travel, muscat tourism, Built with Flatlogic Generator">
?>
<?php if ($projectDescription): ?> <!-- Open Graph / Facebook -->
<!-- Meta description --> <meta property="og:type" content="website">
<meta name="description" content='<?= htmlspecialchars($projectDescription) ?>' /> <meta property="og:title" content="Safari Muscat Airfare Request Generator">
<!-- Open Graph meta tags --> <meta property="og:description" content="A web app to generate airfare requests for Safari Muscat Tourism clients.">
<meta property="og:description" content="<?= htmlspecialchars($projectDescription) ?>" />
<!-- Twitter meta tags --> <!-- Twitter -->
<meta property="twitter:description" content="<?= htmlspecialchars($projectDescription) ?>" /> <meta name="twitter:card" content="summary_large_image">
<?php endif; ?>
<?php if ($projectImageUrl): ?> <!-- Platform-managed meta tags -->
<!-- Open Graph image --> <meta property="og:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
<meta property="og:image" content="<?= htmlspecialchars($projectImageUrl) ?>" /> <meta name="twitter:image" content="<?php echo htmlspecialchars($_SERVER['PROJECT_IMAGE_URL'] ?? ''); ?>">
<!-- Twitter image -->
<meta property="twitter:image" content="<?= htmlspecialchars($projectImageUrl) ?>" /> <!-- Stylesheets -->
<?php endif; ?> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<style> <link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
:root {
--bg-color-start: #6a11cb;
--bg-color-end: #2575fc;
--text-color: #ffffff;
--card-bg-color: rgba(255, 255, 255, 0.01);
--card-border-color: rgba(255, 255, 255, 0.1);
}
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M-10 10L110 10M10 -10L10 110" stroke-width="1" stroke="rgba(255,255,255,0.05)"/></svg>');
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% { background-position: 0% 0%; }
100% { background-position: 100% 100%; }
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
.loader {
margin: 1.25rem auto 1.25rem;
width: 48px;
height: 48px;
border: 3px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.hint {
opacity: 0.9;
}
.sr-only {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap; border: 0;
}
h1 {
font-size: 3rem;
font-weight: 700;
margin: 0 0 1rem;
letter-spacing: -1px;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
}
code {
background: rgba(0,0,0,0.2);
padding: 2px 6px;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
opacity: 0.7;
}
</style>
</head> </head>
<body> <body>
<main>
<div class="card"> <div class="container">
<h1>Analyzing your requirements and generating your website…</h1> <div class="form-container">
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
<span class="sr-only">Loading…</span> <!-- Company Header -->
<div class="company-header">
<h1>Safari Muscat Tourism LLC</h1>
<p>Central Market, Salalah, Dhofar, Sultanate of Oman</p>
<p>PO Box: 211 | Phone: +968 99737165</p>
</div> </div>
<p class="hint"><?= ($_SERVER['HTTP_HOST'] ?? '') === 'appwizzy.com' ? 'AppWizzy' : 'Flatlogic' ?> AI is collecting your requirements and applying the first changes.</p>
<p class="hint">This page will update automatically as the plan is implemented.</p> <form id="airfareForm" action="generate_pdf.php" method="POST">
<p>Runtime: PHP <code><?= htmlspecialchars($phpVersion) ?></code> — UTC <code><?= htmlspecialchars($now) ?></code></p> <!-- Customer Details Section -->
<div class="form-section">
<h2 class="section-title"><i class="bi bi-person-circle"></i> Customer Details</h2>
<div class="row g-3">
<div class="col-md-6">
<label for="customerName" class="form-label">Customer Name*</label>
<input type="text" class="form-control" id="customerName" name="customerName" required>
</div> </div>
</main> <div class="col-md-6">
<footer> <label for="phoneNumber" class="form-label">Phone Number*</label>
Page updated: <?= htmlspecialchars($now) ?> (UTC) <input type="tel" class="form-control" id="phoneNumber" name="phoneNumber" required>
</footer> </div>
<div class="col-md-6">
<label for="email" class="form-label">Email (Optional)</label>
<input type="email" class="form-control" id="email" name="email">
</div>
<div class="col-md-6">
<label for="passengers" class="form-label">No. of Passengers*</label>
<input type="number" class="form-control" id="passengers" name="passengers" min="1" value="1" required>
</div>
</div>
</div>
<!-- Flight Information Section -->
<div class="form-section">
<h2 class="section-title"><i class="bi bi-airplane-fill"></i> Flight Information</h2>
<div class="row g-3">
<div class="col-md-6">
<label for="departureAirport" class="form-label">Departure Airport*</label>
<input type="text" class="form-control" id="departureAirport" name="departureAirport" placeholder="e.g., Muscat International Airport MCT" required>
</div>
<div class="col-md-6">
<label for="arrivalAirport" class="form-label">Arrival Airport*</label>
<input type="text" class="form-control" id="arrivalAirport" name="arrivalAirport" placeholder="e.g., Salalah International Airport SLL" required>
</div>
<div class="col-md-6">
<label for="departureDate" class="form-label">Date of Departure*</label>
<input type="date" class="form-control" id="departureDate" name="departureDate" required>
</div>
<div class="col-md-6">
<label for="returnDate" class="form-label">Date of Return (Optional)</label>
<input type="date" class="form-control" id="returnDate" name="returnDate">
</div>
<div class="col-md-6">
<label for="airline" class="form-label">Preferred Airline</label>
<select id="airline" name="airline" class="form-select">
<option selected>Any</option>
<option>Oman Air</option>
<option>SalamAir</option>
<option>Emirates</option>
<option>Qatar Airways</option>
<option>Etihad Airways</option>
<option>Other</option>
</select>
</div>
<div class="col-md-6">
<label for="cabinClass" class="form-label">Cabin Class</label>
<select id="cabinClass" name="cabinClass" class="form-select">
<option selected>Economy</option>
<option>Premium Economy</option>
<option>Business</option>
<option>First</option>
</select>
</div>
</div>
</div>
<!-- Layover Section -->
<div class="form-section">
<div class="form-check form-switch mb-3">
<input class="form-check-input" type="checkbox" id="layoverToggle" name="layoverToggle">
<label class="form-check-label" for="layoverToggle">Will there be a layover?</label>
</div>
<div id="layoverDetails">
<div class="row g-3">
<div class="col-md-6">
<label for="layoverAirport" class="form-label">Layover Airport</label>
<input type="text" class="form-control" id="layoverAirport" name="layoverAirport" placeholder="e.g., Dubai International Airport - DXB">
</div>
<div class="col-md-6">
<label for="layoverDuration" class="form-label">Duration of Layover</label>
<input type="text" class="form-control" id="layoverDuration" name="layoverDuration" placeholder="e.g., 4 hours 30 mins">
</div>
</div>
</div>
</div>
<!-- Fare Details Section -->
<div class="form-section">
<h2 class="section-title"><i class="bi bi-cash-coin"></i> Fare Details</h2>
<div class="row g-3">
<div class="col-md-6">
<label for="fare" class="form-label">Fare per Passenger (OMR)</label>
<input type="number" class="form-control" id="fare" name="fare" min="0" step="0.01" value="0">
</div>
<div class="col-md-6">
<label for="totalFare" class="form-label">Total Passenger Fare (OMR)</label>
<input type="text" class="form-control" id="totalFare" name="totalFare" readonly>
</div>
</div>
</div>
<!-- Infant Details Section -->
<div class="form-section">
<h2 class="section-title"><i class="bi bi-person-arms-up"></i> Infant Details</h2>
<div class="row g-3">
<div class="col-md-4">
<label for="infants" class="form-label">No. of Infants</label>
<input type="number" class="form-control" id="infants" name="infants" min="0" value="0">
</div>
<div class="col-md-4">
<label for="infantFare" class="form-label">Infant Fare (OMR)</label>
<input type="number" class="form-control" id="infantFare" name="infantFare" min="0" step="0.01" value="0">
</div>
<div class="col-md-4">
<label for="totalInfantFare" class="form-label">Total Infant Fare (OMR)</label>
<input type="text" class="form-control" id="totalInfantFare" name="totalInfantFare" readonly>
</div>
<div class="col-12">
<label for="infantBaggage" class="form-label">Infant Baggage Details</label>
<input type="text" class="form-control" id="infantBaggage" name="infantBaggage" placeholder="e.g., 10kg checked + 1 stroller">
</div>
</div>
</div>
<!-- Baggage Details Section -->
<div class="form-section">
<h2 class="section-title"><i class="bi bi-briefcase-fill"></i> Adult Baggage Details</h2>
<div class="row g-3">
<div class="col-md-4">
<label for="checkedBaggage" class="form-label">Checked-in Pieces</label>
<input type="number" class="form-control" id="checkedBaggage" name="checkedBaggage" min="0" value="1">
</div>
<div class="col-md-4">
<label for="weightPerPiece" class="form-label">Weight per Piece (kg)</label>
<input type="number" class="form-control" id="weightPerPiece" name="weightPerPiece" min="0" value="23">
</div>
<div class="col-md-4">
<label for="handBaggage" class="form-label">Hand Baggage (kg)</label>
<input type="number" class="form-control" id="handBaggage" name="handBaggage" min="0" value="7">
</div>
<div class="col-12">
<label for="baggageNotes" class="form-label">Notes (Special Baggage)</label>
<textarea class="form-control" id="baggageNotes" name="baggageNotes" rows="2"></textarea>
</div>
</div>
</div>
<!-- Extra Charges Section -->
<div class="form-section">
<h2 class="section-title"><i class="bi bi-plus-circle-dotted"></i> Extra Charges</h2>
<div class="row g-3">
<div class="col-md-8">
<label for="extraChargeDescription" class="form-label">Description</label>
<input type="text" class="form-control" id="extraChargeDescription" name="extraChargeDescription" placeholder="e.g., Airport transfer, visa fee">
</div>
<div class="col-md-4">
<label for="extraChargePrice" class="form-label">Price (OMR)</label>
<input type="number" class="form-control" id="extraChargePrice" name="extraChargePrice" min="0" step="0.01" value="0">
</div>
</div>
</div>
<!-- Total Fare Section -->
<div class="form-section total-fare-section">
<div class="row justify-content-end">
<div class="col-md-5">
<label for="grandTotal" class="form-label grand-total-label">GRAND TOTAL (OMR)</label>
<input type="text" class="form-control form-control-lg grand-total-input" id="grandTotal" name="grandTotal" readonly>
</div>
</div>
</div>
<!-- Additional Comments Section -->
<div class="form-section">
<h2 class="section-title"><i class="bi bi-chat-left-text-fill"></i> Additional Comments</h2>
<div class="row">
<div class="col-12">
<label for="otherRequests" class="form-label">Other Requests or Remarks</label>
<textarea class="form-control" id="otherRequests" name="otherRequests" rows="3"></textarea>
</div>
</div>
</div>
<!-- Action Buttons -->
<div class="d-flex justify-content-end gap-2 mt-4">
<button type="button" class="btn btn-light" id="resetButton">Reset Form</button>
<button type="button" class="btn btn-secondary" id="previewButton">Preview Request</button>
<button type="submit" class="btn btn-primary">Generate PDF</button>
<button type="button" class="btn btn-success" disabled>Send to Customer</button>
</div>
</form>
</div>
</div>
<!-- Preview Modal -->
<div class="modal fade" id="previewModal" tabindex="-1" aria-labelledby="previewModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="previewModalLabel">Airfare Request Preview</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="previewContent">
<!-- Preview content will be injected here by JavaScript -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
</body> </body>
</html> </html>