<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

use EasyRestaurantManager\Services\Arr;
$cat = EASY_RESTAURANT_MANAGER_PLUGIN_URL . '/assets/images/cat.jpg';
?>
<div class="erm_menu_container">
   <div class="easyRestaurantManager-special-menu">
        <h2><?php echo esc_html( Arr::get($settings, 'category_title') ) ?></h2>
        <p><?php echo esc_html( Arr::get($settings, 'category_short_desc') ) ?></p>
        <div class="easyRestaurantManager-menu-categories">
            <?php foreach($categories as $categoryIndex => $category):?>
            <div class="easyRestaurantManager-menu-category">
                <a href="#">
                    <div class="erm_category_img">
                        <img alt="Starters" src="<?php echo esc_attr( $category->image ) ?>" width="100" />
                    </div>
                    <p><?php echo esc_html( $category->name ) ?></p>
                </a>
            </div>
            <?php endforeach; ?>
        </div>
    </div>
</div>