<?php
require_once("include/includes.php");
$m = new MasterClass;
$result = array();
if(isset($_POST['Name']) && $_POST['Name'] != ''){

  $result = $m->processContactForm();

}
?>

<!DOCTYPE html>
<html lang="en">

<head>
    <?php
    include('./include/header/header.php');
    ?>
    <title>Contact Lakes LifeCare Center</title>
    <meta name="description" content="Directions and contact information for Lakes LifeCare Center">
    <meta name="keywords" content="address, contact info, phone , address, lakes lifecare center">
    <meta name="author" content="WebDuckDesigns MN">
    <meta name="robots" content="index,follow">
    <link href="<?php echo WEBSITE_ADDY; ?>/assets/sass/contact-style.css" rel="stylesheet">
</head>

<body>
    <?php
    include('./include/header/navigation.php');
    ?>
    <section class="container-fluid inner-banner" style="background-image: url(<?php echo WEBSITE_ADDY; ?>/assets/images/banner.png);">
        <div class="container">
            <div class="row d-flex align-items-center">
                <div class="col-lg-12 col-12 mx-auto d-block">
                    <div class="content">
                        <h3>Lakes LifeCare Center</h3>
                        <h1>Contact</h1>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <section class="container-fluid custom-website">
        <div class="container">
            <div class="row d-flex align-items-center">
                <div class="col-lg-12 col-12">
                    <h3 class="sec-h3">Lakes LifeCare Center</h3>
                    <h2 class="sec-h2 mt-lg-0 mt-2">Contact Information</h2>
                    <div class="inner-bline cbg-secondary"></div>
                    <div class="row">
                    <div class="col-lg-8 col-12">
                    <div id="Result" <?php if($result['Msg'] != ''){ echo 'style="display:block; border-radius: 10px; margin:20px 0;"'; } ?> <?php if($result['Status'] === true){ echo 'class="success col-md-12"'; }else{ echo 'class="error col-md-12"'; } ?> >                          
                        <?php echo $result['Msg']; ?>                      
                    </div> 
                    <form action="contact.php" method="post" enctype="multipart/form-data" name="contact_form" id="contact_form">
                        <div class="form-group" style="color:#000;">
                        <span class="required">*</span> Indicates Required Fields
                        </div>
                        <div class="form-group">
                        <label><span class="required">*</span> Name</label>
                        <input name="Name" type="text" id="Name" size="30" />      
                        </div>                
                        <div class="form-group">
                        <label>Phone Number</label>
                        <input name="Phone" type="text" id="Phone" size="30" /> 
                        </div>      
                        <div class="form-group">
                        <label><span class="required">*</span> Email Address</label>
                        <input name="Email" type="text" id="Email" size="30" /> 
                        </div>
                        <div class="form-group">
                        <label><span class="required">*</span> Questions / Comments / Concerns</label>      
                        <textarea name="Comments" cols="60" rows="10" id="Comments"></textarea>    
                        </div>
                        <div class="form-group">
                        <div class="g-recaptcha" data-sitekey="<?php echo CAPTCHA_SITE_KEY; ?>"></div>  
                        </div>
                        <div class="form-group">
                        <input type="submit" name="Send" id="Send" value="Send"/>
                        </div>
                        </form>
                    </div>
                    <div class="col-lg-4 col-12" style="background-color:#fff; padding: 10px; border-radius: 10px; align-items: top;">            
                    <a href="<?php echo WEBSITE_ADDY; ?>/index.php" title="Foundations Group of MN Home"><img src="<?php echo WEBSITE_ADDY; ?>/assets/images/logo.png" class="logo mx-auto d-block" alt="Foundations Group of MN Logo"></a>    
                        <div style="padding:10px;">
                        <h3>Office</h3>
                        <p style="color:#000;">
                        840 W Broadway Ave #100, <br/>
                        Forest Lake, MN 55025
                        Phone: <a href="tel:6514644340" title="Call Foundations Group of MN">(651) 464-4340</a><br/>
                        <a href="https://maps.app.goo.gl/aFretvZgS9tTepoE7" title="Directions" target="_blank"><i class="fa-solid fa-location-dot"></i> CLICK FOR DIRECTIONS</a>
               
                        </p> 
                        <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2807.460876780105!2d-92.99732458843717!3d45.27890784566249!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x52b2e795f7b0e193%3A0xf8cae650ce01dde9!2sLakes%20Life%20Care%20Center!5e0!3m2!1sen!2sus!4v1730832423874!5m2!1sen!2sus" style="width:100%; height: 300px; border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
                        </div>             
                    </div>
                    </div>                
                </div>
            </div>
        </div>
    </section>
    <?php
    include('./include/footer/footer.php');
    ?>