<?php
$resCats = $m->getResourceCategories();
?>
<header class="container-fluid dog">
    <div class="container">
        <div class="row">
            <div class="cheader">
                <a href="<?php echo WEBSITE_ADDY; ?>/index.php"><img src="<?php echo WEBSITE_ADDY; ?>/assets/images/headerlogo.png" class="img-fluid logo" alt="Lakes LifeCare Logo"></a>
                <div class="navigation">
                    <ul>
                        <div class="dropdown me-lg-3 me-0">
                            <button class="dropbtn">
                            Organization <i class="fa-solid fa-angle-down fa-beat"></i>
                            </button>
                            <div class="dropdown-content">
                                <a title="About Lakes LifeCare Center" href="<?php echo WEBSITE_ADDY; ?>/about.php">About</a>
                                <a title="Lakes LifeCare Center Mission Statement" href="<?php echo WEBSITE_ADDY; ?>/mission.php">mission statement</a>
                                <a title="Meet Our Staff" href="<?php echo WEBSITE_ADDY; ?>/staff.php">staff </a>
                                <a title="Meet Our Staff" href="<?php echo WEBSITE_ADDY; ?>/careers.php">careers </a>
                                <a title="Make a Donation" href="<?php echo WEBSITE_ADDY; ?>/donations.php">Donate </a>
                                <a title="Volunteer" href="<?php echo WEBSITE_ADDY; ?>/volunteer.php">Volunteer</a>
                            </div>
                        </div>
                        <li><a href="<?php echo WEBSITE_ADDY; ?>/services.php" title="Family and Pregnancy Services">Services</a></li>
                        <li><a href="<?php echo WEBSITE_ADDY; ?>/donations.php" title="Donate">Donate</a></li>
                        <li><a href="<?php echo WEBSITE_ADDY; ?>/events.php" title="Events">Events</a></li>                       
                        <div class="dropdown me-lg-3 me-0">
                            <button class="dropbtn">
                            Resources <i class="fa-solid fa-angle-down fa-beat"></i>
                            </button>
                            <div class="dropdown-content">
                                <a href="<?php echo WEBSITE_ADDY; ?>/faqs.php" title="Frequently Asked Questions">FAQs</a>
                                <a href="<?php echo WEBSITE_ADDY; ?>/links.php" title="Helpful Links">Links</a>
                                <?php
                                for($i=0;$i<count($resCats);$i++){

                                    echo '<a href="'.WEBSITE_ADDY.'/pregnancy-resources/'.$resCats[$i]['Url'].'" title="'.$resCats[$i]['Name'].'">'.$resCats[$i]['Name'].'</a>';

                                }
                                ?>
                            </div>
                        </div>
                        <li><a href="<?php echo WEBSITE_ADDY; ?>/contact.php" title="Contact Lakes LifeCare Center">Contact</a></li>
                        <li><a href="tel:6514644340" title="Call Lakes LifeCare Center"><img src="<?php echo WEBSITE_ADDY; ?>/assets/images/phoneicon.png" alt="" srcset=""> 651.464.4340</a></li>
                    </ul>
                </div>
                <div class="menu hamburger">
                    <div class="icon"></div>
                </div>
            </div>

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