<html>

  <body>


     
Name: <?php echo $name;?>  <br>
Phone: <?php echo $phone_code.$contact;?> <br> 
Watsapp No: <?php echo "https://wa.me/".$watsapp_code.$watsapp;?> <br> 
Service Type: <?php echo $service_type;?> <br>
<?php 

$service = strval($service_type);
if( $service=="Fitness Equipment Maintenance"){ ?>
Booking Type: <?php echo $booking_type;?> <br>

<?php } else if($service=="Home appliance services"){ ?>
Appliance Type: <?php echo $appliance_type;?> <br>

<?php } else if($service=="Television repair services"){ ?>
Television Type: <?php echo $television_type;?> <br>
 
<?php } else if($service=="Industrial cleaning equipment services"){ ?>
Type: <?php echo $cleaning_type;?> <br>


<?php } if(!empty($appointment_date)){ ?>
Appointment: <?php echo $appointment_date;  ?>   

<?php } if(!empty($appointment_time)) { ?>        
 <?php 

$string = strval($appointment_time);
$s = explode("-", $string);
$a=str_split ( $s[0] , 2);
$b=str_split($s[1],2);
 if($a[0]=="09"){
  echo "Morning ".$a[0].":".$a[1]."AM"." - ".$b[0].":".$b[1]."PM";}
 
 else if($a[0]=="12"){
  echo "Afternoon ".$a[0].":".$a[1]."PM"." - ".$b[0].":".$b[1]."PM";}
 
 else if($a[0]=="17"){
  echo "Evening ".$a[0].":".$a[1]." PM"." - ".$b[0].":".$b[1]." PM";}

?><br>
<?php }  ?>

<?php if($booking_type=="Emergency call out") { ?>

No of Equipments:<?php echo $no_of_equipment;?><br>


<?php }if(($booking_type=="One Time Service") || ($booking_type=="Annual Maintenance"))  {?>
Cardio: <?php echo $cardio;?><br>
Strength: <?php  echo $strength; ?><br>
Other: <?php echo $other;?><br>

<?php }if(!empty($frequency_of_visit)) {?>
Frequency of visit: <?php echo $frequency_of_visit; ?><br>

<?php } if(!empty($site_visit)) { ?>
Site_visit: <?php  echo $site_visit; ?><br>

<?php } if(!empty($type_of_property)) { ?>
Type of Property: <?php  echo $type_of_property; ?><br>

<?php } if(!empty($companyName)) { ?>
Company Name: <?php  echo $companyName; ?><br>

<?php } if(!empty($building)) { ?>

Building: <?php echo $building;?><br>

<?php } if(!empty($street)) { ?>
Street: <?php echo $street;?><br>

<?php } if(!empty($zone)) { ?>
Zone: <?php echo $zone;?><br>

<?php } if(!empty($landmark)) { ?>
Landmark: <?php echo $landmark;?><br>

<?php } ?>

Issue: <?php echo $issue;?>






              
  </body>

</html>
