<?php
include_once "global.php";


$pageTitle = 'Add Inquiry - ';
include_once 'header.php';
?>

<!--breadcrumb-->
<div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
    <div class="breadcrumb-title pe-3">Inquiries Management</div>
    <div class="ps-3">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb mb-0 p-0">
                <li class="breadcrumb-item"><a href="javascript:;"></a>
                </li>
                <li class="breadcrumb-item active" aria-current="page">Add Inquiry</li>
            </ol>
        </nav>
    </div>
</div>
<!--end breadcrumb-->
<div class="card">
    <div class="card-body p-4">
        <h5 class="mb-4">Add Inquiry</h5>
        <form id="inquiryAddForm" class="row g-3" method="post">
            <div class="col-md-6">
                <label for="name" class="form-label">Name <span>*</span></label>
                <input type="text" name="name" id="name" class="form-control" required>
            </div>
            <div class="col-md-6">
                <label for="company" class="form-label">Company Name</label>
                <input type="text" name="company" id="company" class="form-control">
            </div>
            <div class="col-md-6">
                <label for="email" class="form-label">Email <span>*</span></label>
                <input type="email" name="email" id="email" class="form-control" required>
            </div>
            <div class="col-md-6">
                <label for="phone" class="form-label">Contact <span>*</span></label>
                <input type="tel" class="form-control intl-tel-input" id="phone" name="phone" required>
            </div>
            <div class="col-md-6">
                <label for="services" class="form-label">Services <span>*</span></label>
                <select id="services" name="services[]" class="multiple-select-field" data-placeholder="Select Services" multiple>
                    <?php
                    $services = $productClass->AllServicesArray();
                    foreach ($services as $service) {
                        $serviceTitle = $service["name"];
                        echo "<option value='$serviceTitle'>$serviceTitle</option>";
                    }
                    ?>
                </select>
            </div>
            <div class="col-md-12">
                <label for="message" class="form-label">Message</label>
                <textarea class="form-control" id="message" name="message" rows="3"></textarea>
            </div>
            <div class="col-md-12">
                <button type="submit" class="btn btn-grd-primary px-4">Submit</button>
            </div>
        </form>
    </div>
</div>

<?php
include_once 'footer.php';
?>