<?php
if(basename($_SERVER['PHP_SELF']) == 'home.php') {
  $co=" class='current'";
} else {
  $co="";
} 
include'header.php';
include'connection.php';
?>
  <script src="Shift_files/fullcalendar.js" type="text/javascript"></script>
<div class="container-fluid main-content">
     <div class="row">
          <div class="col-md-12">                 
    <div class="widget-content padded " style="text-align: center;">
                
     <h2 style="margin-top:-20px;"> Internal Management System (iMS)  </h2> 
                  <small>@<?php echo $cna ?></small> 
                  
                  
              
             </div>
             
            
          </div>
        </div>
        
			 <?php
             if($_SESSION['Empopa'])
                $py='employees.php';
             else
                $py='#';
                
		//	if($_SESSION['Access']=='ADMINISTRATOR')
			 $ross="";
		//	 else
		//	 $ross="style='pointer-events:none;'";
		
		
		
		if($_SESSION['Cpo']){
		    
		    
		    
		// Delete a given station record
if(isset($_POST['delo']))
		{
			$numu=$_POST['numu'];
	$so=mysqli_query($conn, "DELETE FROM `station` WHERE `Number`='$numu' ORDER BY `Number` ASC LIMIT 1");
		}

		// Edit a given station record
if(isset($_POST['edito']))
		{
			$numu=$_POST['numu'];
			$acco=$_POST['acco'];
			$name=$_POST['name'];
			$curro=$_POST['curro'];
			$pri=preg_replace('/,/', '', $_POST['pri']);
	$so=mysqli_query($conn, "UPDATE `station` SET `Name`='$name', `Discount`='$acco', `Price`='$pri', `Currency`='$curro' WHERE `Number`='$numu' ORDER BY `Number` ASC LIMIT 1");
		}

		// Create a new station record
if(isset($_POST['eddo']))
		{
			$acco=$_POST['acco'];
			$name=$_POST['name'];
			$bank=$_POST['bank'];
			$curro=$_POST['curro'];
			$pri=preg_replace('/,/', '', $_POST['pri']);
	$so=mysqli_query($conn, "INSERT INTO `station` (`Date`, `Name`, `Discount`, `Price`, `Currency`) VALUES ('$date', '$name', '$acco', '$pri', '$curro')");
		}


		// Delete a given garage record
if(isset($_POST['delog']))
		{
			$numu=$_POST['numu'];
	$so=mysqli_query($conn, "DELETE FROM `garage` WHERE `Number`='$numu' ORDER BY `Number` ASC LIMIT 1");
		}

		// Edit a given garage record
if(isset($_POST['editog']))
		{
			$numu=$_POST['numu'];
			$acco=$_POST['acco'];
			$name=$_POST['name'];
	$so=mysqli_query($conn, "UPDATE `garage` SET `Name`='$name'  WHERE `Number`='$numu' ORDER BY `Number` ASC LIMIT 1");
		}

		// Create a new garage record
if(isset($_POST['eddog']))
		{
			$name=$_POST['name'];
			$bank=$_POST['bank'];
	$so=mysqli_query($conn, "INSERT INTO `garage` (`Date`, `Name`, `Discount`) VALUES ('$date', '$name', '0')");
		}
		
		
		
		
			// **************************************** Station Configuration Modal ******************************************************		
	echo"<div class='modal fade' id='stationModal' tabindex='-1' role='dialog' aria-labelledby='ModalLabel' aria-hidden='true' style='top:40px;'>
  <div class='modal-dialog' role='document'>
    <div class='modal-content'><div class='modal-header'>
        <h5 class='modal-title' id='exampleModalLabel'> GAS STATIONS CONFIGURATION </h5>

      </div>
      <div class='modal-body' style='height:auto;'>
	  <table class='table table-striped table-hover'>     
            <thead><tr role='row'><th class='hidden-xs'>&nbsp;No&nbsp;</th><th> Station Name </th><th> Discount </th>
                    <th>&nbsp;&nbsp;  Price </th><th colspan='2' style='width:40px;'><div align='center'> # </th></th>
						 <tbody>";
				$i=1;
	  $dob=mysqli_query($conn, "SELECT *FROM `station` ORDER BY `Number` ASC");
		while($rob=mysqli_fetch_assoc($dob)){
			$numu=$rob['Number'];
			$dato=$rob['Date'];
			$acco=$rob['Discount'];
			$name=$rob['Name'];
			$cus=$rob['Currency'];
			$pri=number_format($rob['Price'], 2);
			$stl="padding:0px;";
			$clr="";

print("<tr><form method='post' action=''><td class='hidden-xs' style='$stl $clr'><div align='center'>$i&nbsp;</td>

						<td style='$stl $clr'><div align='left'>
						<input name='name' class='form-control' type='text' style='text-align:left; width:190px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' value='$name' onChange=this.style.color='#ff3366'></td>

						<td style='$stl $clr'><div align='left'>
						<input name='acco' class='form-control' type='text' style='text-align:right; width:70px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' onChange=this.style.color='#ff3366' value='$acco'><input type='hidden' name='numu' value='$numu'></td>
			<td style='$stl $clr'><div class='input-group' align='left'><input name='pri' class='form-control' type='text' style='text-align:right; width:80px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' value='$pri' onChange=this.style.color='#ff3366' onkeyup='format(this);' onkeypress='return isNumberKey(event)'><select class='form-control input-group-addon' name='curro' style='height:24px; width:60px; padding:0px; font-size:14px; text-align:left;' required><option value=''> </option>");
						
			$tope=mysqli_query($conn, "SELECT `Code` FROM `currency` WHERE `Status`='0' GROUP BY `Code` ORDER BY `Code` ASC");
			while($rope=mysqli_fetch_assoc($tope)){
				$curru=$rope['Code'];
				if($cus==$curru)
					$s='selected';
				else
					$s='';
			echo"<option value='$curru' $s> $curru </option>";
			}
			
		print("</select></td>
						
		<td class='text-center'><button type='submit' class='btn btn-xs btn-warning hidden-print' name='edito' style='height:22px; margin:0px 0px 0px 0px; padding:0px;' title='Edit' data-toggle='tooltip' data-placement='top'>&nbsp;&nbsp;<i class='lnr lnr-pencil'></i>&nbsp;&nbsp;</button></td>
						
		<td class='text-center'><button type='submit' class='btn btn-xs btn-danger hidden-print' style='height:22px; margin:0px 0px 0px 0px; padding:0px;' data-placement='top' name='delo' title='Delete' data-toggle='tooltip' data-placement='top'> &nbsp;&nbsp;<i class='lnr lnr-trash'></i>&nbsp;&nbsp;</button></td></form></tr>");

						$i++;
		}

		print("<tr><form method='post' action=''><td class='hidden-xs' style='$stl $clr'><div align='center'>$i&nbsp;</td>

						<td style='$stl $clr'><div align='left'>
						<input name='name' class='form-control' type='text' style='text-align:left; width:190px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' onChange=this.style.color='#ff3366'></td>

						<td style='$stl $clr'><div align='left'>
						<input name='acco' class='form-control' type='text' style='text-align:right; width:70px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' onChange=this.style.color='#ff3366' onkeyup='format(this);' onkeypress='return isNumberKey(event)'><input type='hidden' name='numu' value='$numu'></td>
						
				<td style='$stl $clr'><div class='input-group' align='left'>
						<input name='pri' class='form-control' type='text' style='text-align:right; width:80px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' onkeyup='format(this);' onkeypress='return isNumberKey(event)' onChange=this.style.color='#ff3366'><select class='form-control input-group-addon' name='curro' style='height:24px; width:60px; padding:0px; font-size:14px; text-align:left;' required><option value=''> </option>");
						
			$tope=mysqli_query($conn, "SELECT `Code` FROM `currency` WHERE `Status`='0' GROUP BY `Code` ORDER BY `Code` ASC");
			while($rope=mysqli_fetch_assoc($tope)){
				$curru=$rope['Code'];
				if($cus==$curru)
					$s='selected';
				else
					$s='';
			echo"<option value='$curru' $s> $curru </option>";
			}
			
		print("</select></td>
						
						<td colspan='2' class='text-center'><button type='submit' class='btn btn-xs btn-success hidden-print' name='eddo' style='height:22px; margin:0px 0px 0px 0px; padding:0px;' title='Create' data-toggle='tooltip' data-placement='top'>&nbsp;&nbsp;<i class='lnr lnr-plus-circle'></i>&nbsp;CREATE&nbsp;</button></td></form></tr>");

			echo"</table></div><div class='modal-footer' style='margin-top:-10px; height:50px; padding-top:5px; border:0px solid blue;'>
       
        <button type='button' class='btn btn-sm btn-danger' data-dismiss='modal' style='height:20px; padding-top:0px; width:120px;'>CLOSE</button>
      </div>
    </div>
  </div>
</div>";





// **************************************** Services Configuration Modal ******************************************************		
	echo"<div class='modal fade' id='serviceModal' tabindex='-1' role='dialog' aria-labelledby='ModalLabel' aria-hidden='true' style='top:40px;'>
  <div class='modal-dialog' role='document'>
    <div class='modal-content'><div class='modal-header'>
        <h5 class='modal-title' id='exampleModalLabel'> SERVICES CONFIGURATION  </h5>

      </div>
      <div class='modal-body' style='height:auto;'>
	  <table class='table table-striped table-hover'>     
                                      <thead>
                    <tr role='row'><th class='hidden-xs'>&nbsp;&nbsp;NO&nbsp;&nbsp;</th><th>&nbsp;&nbsp; Date </th>
					<th> Service Name </th><th colspan='2' style='width:80px;'><div align='center'> # </th></th>
						 <tbody>";
				$i=1;
	  $dob=mysqli_query($conn, "SELECT *FROM `garage` ORDER BY `Number` ASC");
		while($rob=mysqli_fetch_assoc($dob)){
			$numu=$rob['Number'];
			$dato=$rob['Date'];
			$name=$rob['Name'];
			$stl="padding:0px;";
			$clr="";

			print("<tr><form method='post' action=''><td class='hidden-xs' style='$stl $clr'><div align='center'>$i&nbsp;&nbsp;</td>
						<td style='$stl $clr'><div align='left'>
						<input name='dato' class='form-control' type='text' style='text-align:center; width:100px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' value='$dato' onChange=this.style.color='#ff3366' readonly></td>

						<td style='$stl $clr'><div align='left'>
						<input name='name' class='form-control' type='text' style='text-align:left; width:280px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' value='$name' onChange=this.style.color='#ff3366'>

						<input type='hidden' name='numu' value='$numu'></td>
						<td class='text-center'><button type='submit' class='btn btn-xs btn-warning hidden-print' name='editog' style='height:22px; margin:0px 0px 0px 0px; padding:0px;' title='Edit' data-toggle='tooltip' data-placement='top'>&nbsp;&nbsp;<i class='lnr lnr-pencil'></i>&nbsp;&nbsp;</button></td><td class='text-center'><button type='submit' class='btn btn-xs btn-danger hidden-print' style='height:22px; margin:0px 0px 0px 0px; padding:0px;' data-toggle='tooltip' data-placement='top' title='Delete' name='delog'>
						  &nbsp;&nbsp;<i class='lnr lnr-trash'></i>&nbsp;&nbsp;</button></td></form></tr>");

						$i++;
		}

		print("<tr><form method='post' action=''><td class='hidden-xs' style='$stl $clr'><div align='center'>$i&nbsp;&nbsp;</td>
						<td style='$stl $clr'><div align='left'>
						<input name='dato' class='form-control' type='text' style='text-align:left; width:100px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' value='$Date' onChange=this.style.color='#ff3366'></td>

						<td style='$stl $clr'><div align='left'>
						<input name='name' class='form-control' type='text' style='text-align:left; width:280px; height:24px; margin:0px 0px 0px 0px; padding:0px 10px 0px 10px; background-color:transparent;' onChange=this.style.color='#ff3366'>
						
						<input type='hidden' name='numu' value='$numu'></td>
						<td colspan='2' class='text-center'><button type='submit' class='btn btn-xs btn-success hidden-print' name='eddog' style='height:22px; margin:0px 0px 0px 0px; padding:0px;' title='Create' data-toggle='tooltip' data-placement='top'>&nbsp;&nbsp;<i class='lnr lnr-plus-circle'></i>&nbsp;CREATE&nbsp;</button></td>
						</form></tr>");

			echo"</table></div><div class='modal-footer' style='margin-top:-10px; height:50px; padding-top:5px; border:0px solid blue;'>
       
        <button type='button' class='btn btn-sm btn-danger' data-dismiss='modal' style='height:20px; padding-top:0px; width:120px;'>CLOSE</button>
      </div>
    </div>
  </div>
</div>";

// *************************************************** End of Modal ************************************************************

}
             ?>

        <!-- Statistics -->
                <div class="row">
          <div class="col-lg-12" style="margin-top:-20px;">
            <div class="widget-container stats-container">
                
                
        
             
                
        
        
        <?php
        if($_SESSION['Access']=='GARAGE'){
            ?>
            
         <div class="col-md-3"><a href="garage.php">
                <div class="number">
                  <div class="lnr lnr-layers homeicons"></div>
             <?php
			 $n=1;
	$do=mysqli_query($conn, "SELECT `Number` FROM `vehicles` WHERE `Locate`='GARAGE' AND `Status`='0' ORDER BY `Locate` ASC");
		$fo=mysqli_num_rows($do);
	echo"<label title='Vehicles in garage'>$fo</label>";
?>	  
</div></a>
                <div class="text">
                 <a href="garage.php">Vehicles In Garage</a>
                </div>
              </div>    
            
            
            
            
            
        <?php
            
        }
        else{
            ?>
         
              <div class="col-md-3"><a href="<?php echo $py ?>">
                <div class="number">
                  <div class="lnr lnr-users homeicons"></div>
             <?php
	$and=mysqli_query($conn, "SELECT `Eid` FROM `employees` WHERE `Eid`!='1001' AND `Status`='0' ORDER BY `Depart` ASC");
			$fa=mysqli_num_rows($and);
	if($_SESSION['Payro'])
			echo"<label title='$depi'>$fa</label>";
?>	  
</div></a>
                <div class="text">
                 <a href="<?php echo $py ?>">Total Employees</a>
                </div>
              </div>
            <?php
        }
        ?>
              
              
              <div class="col-md-3"><a href="mainsto.php?client=2" <?php echo $roll ?>>
                <div class="number">
                  <div class="lnr lnr-car homeicons"></div>
                   <?php
				
		if($_SESSION['Alogi'])
			 $roll="";
			 else
			 $roll="style='pointer-events:none;'";
			 
		$do=mysqli_query($conn, "SELECT `Number` FROM `vehicles` WHERE `Status`='0' AND `Trip`='0' ORDER BY `Number` ASC");
			$fo=mysqli_num_rows($do);
				echo $fo;
				?>				
		       </div></a>
                <div class="text">
                 <a href="mainsto.php?client=2" <?php echo $roll ?>> Local Vehicles </a>
                </div>
              </div>
              <div class="col-md-3"><a href="mainsto.php?client=1" <?php echo $roll ?>>
                <div class="number">
                  <div class="lnr lnr-bus homeicons"></div>
                   <?php
		$doi=mysqli_query($conn, "SELECT `Number` FROM `vehicles` WHERE `Status`='0' AND `Trip`='1' ORDER BY `Number` ASC");
			echo mysqli_num_rows($doi);
				?>				
		       </div></a>
                <div class="text">
                 <a href="mainsto.php?client=1" <?php echo $roll ?>> Transit Vehicles </a>
                </div>
              </div>
              
              
              
               <div class="col-md-3"><a href='approve.php' <?php echo $ross ?>>
                <div class="number">
                  <div class="lnr lnr-checkmark-circle homeicons text-warning"></div>
                  <?php
        $seco=mysqli_query($conn, "SELECT `Number` FROM `income` WHERE `Reason`!='' ORDER BY `Number` ASC");
        
        $sere=mysqli_query($conn, "SELECT `Number` FROM `repair` WHERE `Reason`!='' ORDER BY `Number` ASC");
        
        $apo=number_format(mysqli_num_rows($seco)+mysqli_num_rows($sere));
        echo"<label class='text-warning'> &nbsp; $apo </label>";
        ?>
		</div></a>
                <div class="text">
                 <a href="approve.php" <?php echo $ross ?> class="text-warning">Approvals</a>
                </div>
              </div>        
              
              
              
            </div>
          </div>
          <div class="row"> </div><br><br>
          
          <?php
          if($_SESSION['Cpo']){
              ?>
          <div class="col-lg-12"><div class="col-lg-8"> </div>
          
          <div class="col-lg-2">
              <button class="btn btn-warning btn-block btn-sm" type="button" data-toggle="modal" data-target="#stationModal" style="height:17px; padding-top:0px;">
						<i class="lnr lnr-laptop-phone"></i> Set Stations </button>
					</div>

				   <div class="col-lg-2">
		
		<button class="btn btn-success btn-block btn-sm" type="button" data-toggle="modal" data-target="#serviceModal" style="height:17px; padding-top:0px;"><i class="lnr lnr-laptop-phone"></i> Set Services </button>
						</div><hr style='border:1px solid #F9F9F9;'>
						
				</div>
          <div class="row"> </div>
          
          <?php
          }
          ?>
          
        </div>        <!-- End Statistics -->











 <?php
            if($_SESSION['Alogi'] OR $_SESSION['Aos'])
                $mt="ment.php";
            else
                $mt="#";
    ?>












    <br><br>
        
        <div class="row">
          <div class="col-lg-12">
            <div class="widget-container stats-container" style="height:200px;">
              <div class="col-md-4"><div class="text" style="margin:-42px 0px 5px 0px;">
                 <a href="<?php echo $mt ?>" style="font-size:32px;">Control Inspection</a>
                </div>                


				<?php					
					$stn="style='padding:0px;'";
				echo"<table class='table table-striped table-hover' style='font-size:10px;'><thead><tr>
                     <th colspan='2' width='1%' $stn>&nbsp;&nbsp;&nbsp;No </th><th $stn><div align='center'> VEHICLE </th>
					 <th $stn><div align='center'> STARTING </th><th $stn><div align='center'> ENDING </th>
					 <th $stn><div align='center'> PLACE </th>
							</tr> </thead><tbody>";

	$insp=mysqli_query($conn, "SELECT `vehicles`.`Plate`, `inspection`.* FROM `inspection` INNER JOIN `vehicles` ON `inspection`.`Vehicle`=`vehicles`.`Number` WHERE `inspection`.`Ending`>'$Date' ORDER BY `inspection`.`Ending` ASC LIMIT 8");	
			$finsp=mysqli_num_rows($insp);	
			
					$n=1;
			while($rip=mysqli_fetch_assoc($insp)){
				$veh=$rip['Plate'];
				$sta=$rip['Start'];
				$end=$rip['Ending'];
				$file=$rip['File'];
				$plac=$rip['Place'];

				echo"<style>
tr img { display:none; }
tr:hover img { display:block; }
	</style>";

				echo"<tr>";

				if($file)
					echo"<td style='width:1px;'> 						  
				<img src='inspection/$file' style='margin-left:5px; margin-top:-280px; position:absolute' width='310' height='240' /></td>";
				else
					echo"<td style='width:1px;'> </td>";
				
				echo"<td class='text-right' $stn>$n&nbsp;&nbsp;</td><td class='text-center' $stn> $veh </td><td class='text-center' $stn> $sta </td>
				<td class='text-center' $stn> $end </td><td class='text-center' $stn>$plac</td></tr>";
                     $n++;
			}
                        
						  echo"</tbody></table><br><br>";
						  ?>
               


              </div>
              <div class="col-md-4"><div class="text" style="margin:-42px 0px 5px 0px;">
                 <a href="<?php echo $mt ?>" style="font-size:32px;">Transport Permit</a>
                </div>                
             <?php
 $inst=mysqli_query($conn, "SELECT `vehicles`.`Plate`, `permit`.* FROM `permit` INNER JOIN `vehicles` ON `permit`.`Vehicle`=`vehicles`.`Number` WHERE `permit`.`Ending`>'$Date' ORDER BY `permit`.`Ending` ASC LIMIT 8");	
			$finst=mysqli_num_rows($inst);

				echo"<table class='table table-striped table-hover' style='font-size:10px;'>
                     	<thead><tr>
                     <th colspan='2' width='1%' $stn>&nbsp;&nbsp;&nbsp;No </th><th $stn><div align='center'> VEHICLE </th>
					 <th $stn><div align='center'> STARTING </th><th $stn><div align='center'> ENDING </th>
					 <th class='text-center' $stn> TYPE </th>
							</tr> </thead>
                                        <tbody>";
					
					$n=1;
			while($ri=mysqli_fetch_assoc($inst)){
				$veh=$ri['Plate'];
				$sta=$ri['Start'];
				$end=$ri['Ending'];
				$file=$ri['File'];
				$type=$ri['Type'];

				echo"<style>
tr img { display:none; }
tr:hover img { display:block; }
	</style>";

				echo"<tr>";

				if($file)
					echo"<td $stn style='width:1px;'> 						  
				<img src='permit/$file' style='margin-left:5px; margin-top:-280px; position:absolute' width='310' height='240' /></td>";
				else
					echo"<td $stn style='width:1px;'> </td>";
				
				echo"<td class='text-right' $stn>$n&nbsp;&nbsp;</td><td class='text-center' $stn> $veh </td><td class='text-center' $stn> $sta </td>
				<td class='text-center' $stn> $end </td><td class='text-left' $stn>$type</td></tr>";
                     $n++;
			}
                        
						  echo"</tbody></table><br><br>";
						  ?>
              </div>
              <div class="col-md-4"><div class="text" style="margin:-42px 0px 5px 0px;">
                 <a href="<?php echo $mt ?>" style="font-size:32px;">Insurance</a>
                </div>                
             <?php
	$insu=mysqli_query($conn, "SELECT `vehicles`.`Plate`, `insurance`.* FROM `insurance` INNER JOIN `vehicles` ON `insurance`.`Vehicle`=`vehicles`.`Number` WHERE `insurance`.`Ending`>'$Date' ORDER BY `insurance`.`Ending` ASC LIMIT 8");	
			$finsu=mysqli_num_rows($insu);

			echo"<table class='table table-striped table-hover' style='font-size:10px;'>
							<thead><tr>
                     <th colspan='2' width='1%' $stn>&nbsp;&nbsp;&nbsp;No </th><th $stn><div align='center'> VEHICLE </th>
					 <th $stn><div align='center'> STARTING </th><th $stn><div align='center'> ENDING </th>
					 <th class='text-center' $stn> COMPANY </th>
							</tr> </thead>
                                        <tbody>";
					
					$n=1;
			while($ri=mysqli_fetch_assoc($insu)){
				$veh=$ri['Plate'];
				$sta=$ri['Start'];
				$end=$ri['Ending'];
				$file=$ri['File'];
				$comp=$ri['Company'];

				echo"<style>
tr img { display:none; }
tr:hover img { display:block; }
	</style>";

				echo"<tr>";

				if($file)
					echo"<td $stn style='width:1px;'> 						  
				<img src='insurance/$file' style='margin-left:5px; margin-top:-280px; position:absolute' width='310' height='240' /></td>";
				else
					echo"<td $stn style='width:1px;'> </td>";
				
				echo"<td class='text-right' class='text-center' $stn>$n&nbsp;&nbsp;</td><td class='text-center' $stn> $veh </td>
				<td class='text-center' $stn> $sta </td><td class='text-center' $stn> $end </td><td class='text-center' $stn>$comp</td></tr>";
                     $n++;
			}
                        
						  echo"</thead></table><br><br>";
						  ?>
              </div>

            </div>
          </div>
        </div>     


<?php
/*
require_once ('style/autoload.php'); // if you use Composer
//require_once('ultramsg.class.php'); // if you download ultramsg.class.php

$ultramsg_token="gp6os4fwhcp2ivod"; // Ultramsg.com token
$instance_id="instance3919"; // Ultramsg.com instance id
$client = new UltraMsg\WhatsAppApi($ultramsg_token,$instance_id);

$to="+250788355756"; 
$body="Hello world"; 
$api=$client->sendChatMessage($to,$body);
print_r($api);

echo"<br><br>|||||||||||||||| Message has been sent! <br><br><br>";
*/
include'footer.php';
?>