<?php include( 'inc/template.php' ); ?>
<div class="container-fluid flex-grow-1 container-p-y">
	<?php include('inquiry_header.php');?>
	<div class="row">
                <div class="col-xl-12 col-lg-5 col-md-5">
                    <div class="accordion mt-3" id="accordionExample">
                    <div class="card accordion-item active">
                      <h2 class="accordion-header" id="headingOne">
                        <button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionOne" aria-expanded="true" aria-controls="accordionOne">
                          Customer Details
                        </button>
                      </h2>

                      <div id="accordionOne"class="accordion-collapse collapse show"  data-bs-parent="#accordionExample">
						  <div class="accordion-body">
                                            
                        <?php $statusclass = strtolower($row['followup_status']) == 'pending' ? 'bg-warning' :
     (strtolower($row['followup_status']) == 'done' ? 'bg-success' :
     (strtolower($row['followup_status']) == 'closed' ? 'bg-secondary' : 'bg-info'));?>  
                        <div class="d-flex flex-wrap">
                          <div class="me-5">
                            <p class="text-nowrap">
                              <i class="ti ti-calendar ti-sm me-2 mt-n2"></i>Inquiry Date: <?php echo htmlspecialchars(date('d-m-Y', strtotime($row['inquiry_date']))); ?>
                            </p>
                            <p class="text-nowrap"><i class="ti ti-users ti-sm me-2 mt-n2"></i>Name: <?php echo htmlspecialchars(ucwords(strtolower($row['customer_name']))); ?></p>
							 <p class="text-nowrap"><i class="ti ti-map-pin ti-sm me-2 mt-n2"></i>Address: <?php echo htmlspecialchars(ucwords(strtolower($row['address']))); ?></p>
                            <p class="text-nowrap"><i class="ti ti-phone-call ti-sm me-2 mt-n2"></i>Contact: +91 <?php echo htmlspecialchars($row['customer_phone']); ?></p>
                            <p class="text-nowrap"><i class="ti ti-mail ti-sm me-2 mt-n2"></i>Email: <?php echo htmlspecialchars($row['customer_email']); ?></p>
                          </div>
                          <div>
							 <p class="text-nowrap"><i class="ti ti-search ti-sm me-2 mt-n2"></i>Source: <?php echo htmlspecialchars(ucwords(strtolower($row['source']))); ?></p>
                            <p class="text-nowrap"><i class="ti ti-beach ti-sm me-2 mt-n2"></i>Inquiry Type: <?php echo htmlspecialchars(ucwords(strtolower($row['inquiry_type']))); ?></p>
                            <p class="text-nowrap">
                              <i class="ti ti-clock ti-sm me-2 mt-n2"></i>Followup Status: <span class="badge <?php echo $statusclass; ?> bg-glow"><?php echo htmlspecialchars(ucwords(strtolower($row['followup_status']))); ?></span>
                            </p>
							<p class="text-nowrap">
                              <i class="ti ti-calendar ti-sm me-2 mt-n2"></i>Last Followup Date: <?php echo !empty($row['last_followup_date']) ? date('d-m-Y', strtotime($row['last_followup_date'])) : 'Not Followup'; ?>
                            </p>
							 <p class="text-nowrap">
                              <i class="ti ti-calendar ti-sm me-2 mt-n2"></i>Assign to: <?php echo htmlspecialchars(ucwords(strtolower($row['assigned_to_name']))); ?>
                            </p>
                          </div>
                        </div>
                        
                        <h6>Remarks</h6>
                        <p class="mb-3">
                          <?php echo htmlspecialchars(ucwords($row['remarks'])); ?>
                        </p>
                        <h6>Last Followup Update</h6>
                        <p class="mb-3">
                          <?php echo htmlspecialchars(ucwords($row['last_followup_update'])); ?>
                        </p>
                       
                      </div>
						  
                      </div>
                    </div>
                    <div class="card accordion-item">
                      <h2 class="accordion-header" id="headingTwo">
                        <button type="button" class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#accordionTwo" aria-expanded="false" aria-controls="accordionTwo">
                           <?php echo htmlspecialchars(ucwords(strtolower($row['inquiry_type']))); ?> Inquiry Details
                        </button>
                      </h2>
                      <div id="accordionTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#accordionExample">
                        <div class="accordion-body">
                         					
                        <div class="d-flex flex-wrap">
                          <div class="me-5">
                            <p class="text-nowrap">
                              <i class="ti ti-location ti-sm me-2 mt-n2"></i>Travel Destination : <?php echo htmlspecialchars(ucwords(strtolower($row['destination']))); ?>
                            </p>
                            <p class="text-nowrap"><i class="ti ti-calendar-check ti-sm me-2 mt-n2"></i>Travel Date: <?php echo htmlspecialchars(date('d-m-Y', strtotime($row['travel_date']))); ?></p>
                             <p class="text-nowrap"><i class="ti ti-man ti-sm me-2 mt-n2"></i>Adults: <?php echo htmlspecialchars($row['adults']); ?></p>
							  <p class="text-nowrap"><i class="ti ti-mood-boy ti-sm me-2 mt-n2"></i>Child: <?php echo htmlspecialchars($row['child']); ?></p>
							  <p class="text-nowrap"><i class="ti ti-baby-carriage ti-sm me-2 mt-n2"></i>Extra Bed: <?php echo htmlspecialchars($row['extrabed']); ?></p>
							 
							  
                          </div>
                          <div>
							  <p class="text-nowrap"><i class="ti ti-phone-call ti-sm me-2 mt-n2"></i>No. of Nights: <?php echo htmlspecialchars($row['nights']); ?></p>
							 <p class="text-nowrap"><i class="ti ti-bed ti-sm me-2 mt-n2"></i>No. of Rooms: <?php echo htmlspecialchars($row['rooms']); ?></p>
                            <p class="text-nowrap"><i class="ti ti-building-skyscraper ti-sm me-2 mt-n2"></i>Hotel Type: <?php echo htmlspecialchars(ucwords(strtolower($row['hotel_type']))); ?></p>
                            <p class="text-nowrap">
                              <i class="ti ti-car ti-sm me-2 mt-n2"></i>Transport Type: <?php echo htmlspecialchars(ucwords(strtolower($row['transport_type']))); ?></p>
							<?php /*?><p class="text-nowrap">
                              <i class="ti ti-plane-departure ti-sm me-2 mt-n2"></i>Flight: <?php echo htmlspecialchars(ucwords(strtolower($row['with_flight']))); ?></p>
							  <?php */?>
                          </div>
                        </div>
                      </div>
                      </div>
                    </div>
                                      
                  </div>
                                  
                </div>
               
              </div>  
</div>
<?php include('inc/footer.php');?>