
<!-- Products Page -->
<div class="products-page">
    <!-- Products section -->
    <div class="products-section">
        <div class="container">
            <div class="section-heading">
                <p>
                    منتجاتنا
                </p>
            </div>

            <div class="mfa-filter-wrapper">
                <ul class="mfa-filter-btns">
                    <li data-mfa-filter="__all__">
                      <span>
                        الكل
                      </span>
                    </li>

                    <?php
                    if (isset($categories) && is_array($categories)):
                        foreach ($categories as $key => $value):
                            ?>
                            <li data-mfa-filter="cat-<?php echo $key; ?>"><span><?php echo $categoriesLang[$key]['title'] ?></span></li>
                        <?php
                        endforeach;
                    endif;
                    ?>
                </ul>

                <div class="mfa-filter-content">
                    <ul>

                        <?php
                        if(isset($categories) && is_array($categories)):
                            foreach($categories as $key=>$value):
                                foreach($products[$key] as $key2 => $value2):
                                    ?>
                                    <li class="cat-<?php echo $key; ?>">
                                        <a href="<?php echo BASE_URL."offer/view/".$value2['id'] ?>">
                                            <div class="product-img">
                                                <img src="<?php echo UPLOAD_LINK.$value2['image'];  ?>" alt="img">
                                            </div>
                                            <div class="product-text">
                                                <div class="title">
                                                    <p>
                                                        <?php echo $productsLang[$key][$key2]['title']; ?>
                                                    </p>
                                                </div>
                                                <div class="product-description">
                                                    <p><?php echo $productsLang[$key][$key2]['slug']; ?></p>
                                                </div>
                                            </div>
                                        </a>
                                    </li>
                                <?php
                                endforeach;
                            endforeach;
                        endif;
                        ?>
                    </ul>
                    <div class="filter-loader">
                        <img src="<?php  echo IMAGES_FRONT_END_LINK;?>icons/filter-loader.gif" alt="img">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /Products section -->
</div>
<!-- /Products Page -->