<?php foreach ($all_items as $key => $item) : ?>
    <?php $extra = $this->pos_m->get_item_extras($item['id']); ?>
    <div class="col-md-4 col-xs-6 col-lg-3 p-sm-5 p-0">
        <div class="singleProduct <?= (isset($extra->is_extra) && $extra->is_extra == 1) || $item['is_size'] == 1 ? "showModal" : "add_to_cart"; ?> " data-id="<?= $item['id']; ?>" data-type="item">
            <div class="topImg">
                <img src="<?= get_img($item['thumb'], $item['img_url'], $item['img_type']); ?>" alt="">
            </div>
            <div class="itemDetails">
                <h4><?= character_limiter($item['title'], 10); ?></h4>
                <?php if (!empty($item['tax_fee'])) : ?>
                    <small><?= __posTax(restaurant()->is_tax, $item['tax_fee'], $item['tax_status']) ?></small>
                <?php endif; ?>
                <?php if ($item['is_size'] == 0) : ?>
                    <label class="label btn-success-light-active"> <?= currency_position($item['price'], restaurant()->id); ?></label>
                <?php else : ?>
                    <label class="label bgActive"><?= lang('variants'); ?></label>
                <?php endif; ?>
            </div>
        </div>

    </div>
<?php endforeach ?>