<ul class="metismenu sidebar-height" id="menu">
    <?php if(auth()->check()): ?>
        <?php $menu= \App\Models\Menu::where('user_id',auth()->user()->id)->orderBy('created_at','desc')->limit(1)->get(); ?>
        <?php if(isset($menu[0]) && $menu[0]): ?>
            <li><a class="ai-icon" href="<?php echo e(route('show.restaurant',['slug'=>$menu[0]->url])); ?>"
                   aria-expanded="false">
                    <i class="flaticon-381-add"></i>
                    <span class="nav-text"><?php echo e(trans('Menu')); ?></span>
                </a>
            </li>
        <?php endif; ?>
    <?php endif; ?>

    <?php $__currentLoopData = $rest_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <li><a data-id="<?php echo e($cat->id); ?>" class="ai-icon item-category" href="javascript:void(0)" aria-expanded="false">
                <i class="flaticon-381-networking"></i>
                <span class="nav-text"><?php echo e($cat->name); ?></span>
            </a>
        </li>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php if(!auth()->check()): ?>
        <li><a class="ai-icon" href="<?php echo e(route('registration',['type'=>'customer'])); ?>"
               aria-expanded="false">
                <i class="flaticon-381-add"></i>
                <span class="nav-text"><?php echo e(trans('layout.signup')); ?></span>
            </a>
        </li>
    <?php endif; ?>
</ul>

<div class="copyright mt-4">
    <p><strong><?php echo e(json_decode(get_settings('site_setting'))->name); ?> </strong> © <?php echo e(date('Y')); ?> All Rights Reserved</p>
</div>
<?php /**PATH E:\php\picoqr\resources\views/layouts/includes/restaurant_sidebar.blade.php ENDPATH**/ ?>