Viewing file: 7966ff1f585874fe05751fd02d8abf9094ea32ee.php (2.25 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<ul class="metismenu sidebar-height" id="menu">
<?php if(isset(auth()->user()->type) && auth()->user()->type=='customer'): ?>
<li><a class="ai-icon" href="<?php echo e(route('dashboard')); ?>" aria-expanded="false">
<i class="flaticon-381-networking"></i>
<span class="nav-text"><?php echo e(trans('layout.dashboard')); ?></span>
</a>
</li>
<?php endif; ?>
<?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('layout.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 /home/picotech/domains/multirest.picotech.app/public_html/resources/views/layouts/includes/restaurant_sidebar.blade.php ENDPATH**/ ?>
|