<?php 
$text = FoodBook\Inc\Text::getText();
?>
<div class="fb_col_lg_3">
  <div class="fb-sidebar-show-btn">
    <buton class="fb-show-sidebar fb_btn_fill"><?php esc_html_e( 'Show Categories', 'foodbook' ); ?></buton>
  </div>
  <!-- Sidebar -->
  <div class="fb_sidebar">
    <!-- Filter Wrapper -->
    <?php
    if( foodbook_get_productCategories() ):
    ?>
    <div class="fb_filter_wrapper">
      <!-- Section Title -->
      <div class="fb_section_title">
        <h3><?php echo esc_html( $text['categories_text'] ); ?></h3>
      </div>
      <!-- Section Title -->
      <!-- Category Menu -->
      <div class="fb_category_menu">
        <ul class="fb_category_list">
          <li class="fb_category_item all_items">
              <div class="fb_category_link">
                  <span class="fb_custom_checkbox">
                    <label>
                      <span class="fb_category_name"><?php esc_html_e( 'All', 'foodbook' ); ?></span>
                      <span class="fb_custom_checkmark"></span>
                    </label>
                  </span>
              </div>
            </li>
          <?php
            // Get product categories
            echo foodbook_get_productCategories();
          ?>
        </ul>
      </div>
      <!-- End Category Menu -->
    </div>
    <?php 
    endif;
    ?>
    <!-- End Filter Wrapper -->

    <!-- Filter Wrapper -->
    <?php 
    if( foodbook_getSpecialOffer() ):
    ?>
    <div class="fb_filter_wrapper">
      <!-- Section Title -->
      <div class="fb_section_title">
        <h3><?php echo esc_html( $text['special_offer'] ); ?></h3>
      </div>
      <!-- Section Title -->
      <!-- Category Menu -->
      <div class="fb_category_menu">
        <ul class="fb_category_list">
          <li class="fb_category_item all_items">
                <div class="fb_category_link">
                    <span class="fb_custom_checkbox">
                      <label>
                        <span class="fb_category_name"><?php esc_html_e( 'All', 'foodbook' ); ?></span>
                        <span class="fb_custom_checkmark"></span>
                      </label>
                    </span>
                </div>
            </li>
            <?php
            echo foodbook_getSpecialOffer();
          ?>
        </ul>
      </div>
      <!-- End Category Menu -->
    </div>
    <?php 
    endif;
    ?>
    <!-- End Filter Wrapper -->
  </div>
  <!-- End Sidebar -->
</div>