<?php include_once('includes/config.php');?>
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
 
require 'vendor/autoload.php';

//GEN AD_ID
function createRandomID() {
	//$chars_old = "5678429R2583ED4556076KJ89444568NMKPOI51R31JD06734";
	$chars = "56784292583455607689444429855302166568513106734";
	srand((double)microtime()*10000);
	$i = 0;
	$pass = '' ;
	while ($i <= 3) {

		$num = rand() % 33;

		$tmp = substr($chars, $num, 1);

		$pass = $pass . $tmp;

		$i++;

	}
	return $pass;
}

$cur_sec = date("s");
$req_awbno_gen = createRandomID().$cur_sec;
$remind_id = createRandomID();

//INSERT OPERATION===========================
if(isset($_POST["insert_contact"])){
				
    //insert data
    $full_name = $_POST["full_name"];
    $email = $_POST["email"];
    $phone_number = $_POST["phone_number"]; 
    $address =  $_POST["address"];    
    $note = $_POST["note"];
       
    



    $myDate = date('Y-m-d H:i:s');
    $insert_contact = mysqli_query($conn,"INSERT INTO contact_us VALUES(NULL,'$full_name','$email','$phone_number','$address','$note','$myDate')");
    
   
    
    }
    
    if($insert_contact){
    
    
   //Mailing System
    
    $adm1 = "degitechsolutions@gmail.com";
    
    //send mail code start..
        //mail function=======================
        $mail = new PHPMailer;

        $mail->SMTPDebug = 3;                                       
    $mail->isSMTP();                                            
    $mail->Host       = 'mail.finvoicer.com.ng';                    
    $mail->SMTPAuth   = true;                             
    $mail->Username   = 'info@finvoicer.com.ng';                 
    $mail->Password   = 'Degitech@2024';                        
    $mail->SMTPSecure = 'ssl';                              
    $mail->Port       = 465;  

  
    $mail->setFrom('info@finvoicer.com.ng', 'FinVoice');           
    $mail->addAddress(''.$adm1.'');
    $mail->addAddress('deji.abiodun@yahoo.com', 'Admin');
    
      
    $mail->isHTML(true);                                  
    $mail->Subject = 'New Contact Message from FinVoice: Ticket No- '.$remind_id.'';
    
    $mail->Body    = '<b>You have new message from Finvoice. See details below;</b> <br>' 
    .'Full Name: '.$full_name.'<br>'
    .'Email: '.$email.'<br>'
    .'Phone : '.$phone_number.'<br><br>'
    .'Address: '.$address.'<br>'
    .'Message: '.$note.'<br>';
    
    $mail->send();




            
           
            
            
            
    
    
    //Mailing System
         

    header("Location: response-contact.php");
    
    	
    
        }
        
    
    ?>
<!doctype html>
<html lang="en">
<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Invoice360- Invoices. Vouchers. Transactions</title>

<meta content="FinVoice- Invoicing, Finance and Scheduling" name="description">
<meta content="FinVoice- Invoicing, Finance and Scheduling" name="keywords">

<meta content="FinVoice- Invoicing, Finance and Scheduling<" property="og:title">
<meta content="website" property="og:type">

<script src="../../../cdn-cgi/apps/head/C484em-bjcyOw4grJ6SRyHJ29c8.js"></script><link rel="stylesheet" href="assetlanding/css/bootstrap.min.css">
 <!-- Favicon -->
 <link rel="apple-touch-icon" sizes="180x180" href="app-assets/favicon/inv.png">
    <link rel="icon" type="image/png" sizes="32x32" href="app-assets/favicon/inv.png">
    <link rel="icon" type="image/png" sizes="16x16" href="app-assets/favicon/inv.png">
    <link rel="manifest" href="app-assets/favicon/inv.png">
    <link rel="mask-icon" href="app-assets/favicon/inv.png" color="#0010f7">

<link rel="stylesheet" href="assetlanding/css/all.css">

<link rel="stylesheet" href="assetlanding/css/circular-std.css">

<link rel="stylesheet" href="assetlanding/css/style.css">
</head>
<body>

<header>

<div class="nav-menu">
<div class="container">
<div class="row">
<div class="col-md-12">
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="index.php"><img src="assetlanding/images/logo-finvoicer.png" height="40px" alt="#"></a>
<button class="navbar-toggler navbar-toggler_second" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars"></i>

</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">

<ul class="navbar-nav ml-auto">


<li class="nav-item active">
<a class="nav-link" href="register.php" tabindex="-1" aria-disabled="true">Sign Up</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="sign-in.php" tabindex="-1" aria-disabled="true">Login</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#" data-toggle="modal" data-target="#contactmodal" tabindex="-1" aria-disabled="true">Contact</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>

<div class="main-title__alt header__bg">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-6">
<div class="hero-title  text-center  text-md-left">
<p>Hello, We are Finvoicer</p>
<h2>Invoicing, Finance & Business Scheduling<br>
made easy.</h2>
<div class="add-btn pricing-btn_wrap">
<a href="#" data-toggle="modal" data-target="#contactmodal" class="btn btn-success">Get
your free Quote</a>
</div>
</div>
</div>
<div class="col-md-6">
<div style="margin-top: 40px;">
<img src="assetlanding/images/bannerfin3.png" class="img-fluid" alt="#">
</div>
</div>
</div>
</div>
<div class="bg-style d-none d-md-block">
<img src="assetlanding/images/bg-1.png" class="img-fluid" alt="#">
</div>
</div>



<div class="modal fade" id="contactmodal" tabindex="-1" role="dialog" aria-labelledby="phpcontactform" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-zoom" role="document">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<form method="post" name="" action="" class="quote-form" >
<h5 class="text-center mt-3 mb-4">We are here for you!</h5>
<div class="form-group">
<input type="text" class="form-control" id="full_name" name="full_name" placeholder="Full Name" required>
</div>
<div class="form-group">
<input type="email" class="form-control" id="email" name="email" placeholder="Email Address" required>
</div>
<div class="form-group">
<input type="text" class="form-control" id="phone" name="phone_number" placeholder="Phone" required>
</div>
<div class="form-group">
<input type="text" class="form-control" id="pac-input" name="address" placeholder="Address" required>
</div>
<div class="form-group">
<input type="textarea" class="form-control" id="note" name="note" placeholder="Your Message to us" required>
</div>
<button name="insert_contact" type="submit" class="btn btn-success w-100"><strong>
Submit
</strong> </button>
<div id="js-contact-result" data-success-msg="Success, We will get back to you soon" data-error-msg="Oops! Something went wrong"></div>
</form>
</div>
</div>
</div>
</div>


<div class="space bg-image">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="center-title">
<h3>Whether you are a freelancer managing invoices, a small business tracking finances, or an event planner organizing schedules, our platform is here to cater to your specific needs.</h3>
<p>Great for individuals and business</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-lg-7 ml-auto">
<div class="insurance-title_wrap insurance-title_wrap2">
<h5>Simplified 3-in-1 business solution made specifically for you!</h5>
<p class="insurance-para">Welcome to our innovative platform that combines the power of invoice management, financial tracking, and event scheduling all in one convenient space. Our website is designed to empower individuals and businesses with the tools they need to streamline their financial processes and simplify event planning. </p>
<div class="insurance-type d-flex align-items-center">
<img src="assetlanding/images/tick.png" alt="#">
<div class="insurance-type_title">
<h6>Efficient Invoice Management</h6>
<p>Say goodbye to manual invoice generation and tracking. Our user-friendly interface allows you to create, send, and track invoices effortlessly</p>
</div>
</div>
<div class="insurance-type d-flex align-items-center">
<img src="assetlanding/images/tick.png" alt="#">
<div class="insurance-type_title">
<h6>Comprehensive Financial Tracking</h6>
<p>Keep a close eye on your revenues, expenses, and overall financial health with our robust financial tracking tools. Gain insights into your financial performance and make informed decisions to drive your business forward.</p>
</div>
</div>
<div class="insurance-type d-flex align-items-center">
<img src="assetlanding/images/tick.png" alt="#">
<div class="insurance-type_title">
<h6>Seamless Business Scheduling</h6>
<p>Our scheduling portal feature simplifies event planning by enabling you to create, organize, and manage events. It helps with managing contract renewals efficiently.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="banner-img-3">
<img src="assetlanding/images/bannerfin9.png"  width="500" class="img-fluid" alt="#">
</div>
<div class="bg-style2">
<img src="assetlanding/images/bg-2.png" class="img-fluid" alt="#">
</div>
</div>

</header>


<section class="testimonial">
<div class="container">
<div class="row d-flex">
<div class="col-md-12 col-lg-7 align-items-center">
<div class="testi-content_block" style="margin-top: 40px;">
<img src="assetlanding/images/quote.png" class="img-fluid" alt="#">
<h3>We understand that each user has unique requirements. That's why our website offers customizable options to tailor the platform to your specific needs, ensuring a personalized and effective user experience.</h3>
<span>Abiodun Ayodeji</span>
<p>IT Consultant, Nigera</p>
</div>
</div>
</div>
</div>
<div class="testi-img_wrap">
<img src="assetlanding/images/abiodun.png" class="img-fluid" alt="#" width="650">
</div>

</section>


<section class="add-section clearfix">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-10">
<div class="add-box">
<img src="assetlanding/images/shield-yellow.svg" class="img-fluid shield" alt="#">
<div class="add-content">
<h3> 100% Satisfaction Guarantee</h3>
<p></p>
</div>
<div class="add-btn">
<a href="#" data-toggle="modal" data-target="#contactmodal" class="btn btn-success">Get
your free Quote</a>
</div>
</div>
</div>
</div>
</div>
</section>




<section class="content-wrap">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="content-box content-box1 text-center">
<h4>Sign Up For Free! </h4>
<h5>Sign up for free on our website today to access all the features and tools that will help streamline your invoicing, finance management, and scheduling processes. Experience the convenience and efficiency our platform offers by signing up now. We look forward to supporting your business needs.</h5>
<div class="">
<a href="register.php"  class="btn btn-success">Sign Up</a>
</div>
</div>

</div>


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





<footer>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="footer-title">
<h6>ABOUT</h6>
<p>Whether you are looking to boost your invoicing efficiency, gain better control over your finances, or streamline your event planning process, our website is your all-in-one solution.<br>
</p>
</div>
</div>
<div class="col-md-3">
<div class="footer-title">
<h6>FOLLOW US</h6>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
<li><a href="#">Linkedin</a></li>
<li><a href="#">Instagram</a></li>
</ul>
</div>
</div>
<div class="col-md-5">
<div class="footer-title">
<h6>CHOOSE US</h6>
<p>We are thrilled to have you on board and look forward to supporting you on your journey towards financial success and event excellence.</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="copyright">
<p><a href="https://www.degitechsolutions.com"> Powered By Invoice360</a></p>
</div>
</div>
</div>
</div>
</footer>



<script data-cfasync="false" src="../../../cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="assetlanding/js/jquery-3.4.1.min.js"></script>
<script src="assetlanding/js/popper.min.js"></script>
<script src="assetlanding/js/bootstrap.min.js"></script>

<script src="assetlanding/js/validate.js"></script>
<script src="assetlanding/js/contact.js"></script>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon='{"rayId":"8a87c8f39fda1c83","version":"2024.7.0","r":1,"serverTiming":{"name":{"cfL4":true}},"token":"1a2187940c214caa9d3fed19b4904902","b":1}' crossorigin="anonymous"></script>
</body>
</html>