Viewing file: 93cd22c2ef639347a6949f5e8ccfda6c72a307ce.php (14.09 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<ul class="metismenu sidebar-height" id="menu"> <?php if(auth()->user()->type=='customer'): ?> <?php $customer=auth()->user(); $menu= \App\Models\Menu::where('user_id',$customer->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-networking"></i> <span class="nav-text"><?php echo e(trans('Menu')); ?></span> </a> </li> <?php endif; ?> <?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('restaurant_manage')): ?> <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()->user()->type=='restaurant_owner'): ?> <li class="<?php echo e(isSidebarActive('live.order')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('live.order')); ?>" aria-expanded="false"> <i class="flaticon-381-notepad "></i> <span class="nav-text"><?php echo e(trans('layout.live_order')); ?> <div class="pulse-css live-order-blink"></div></span> </a>
</li> <?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('order_list')): ?> <li class="<?php echo e(isSidebarActive('order*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('order.index')); ?>" aria-expanded="false"> <i class="flaticon-381-notepad "></i> <span class="nav-text"><?php echo e(trans('layout.orders')); ?></span> </a>
</li> <?php endif; ?> <?php if(auth()->user()->type=='restaurant_owner'): ?> <li class="<?php echo e(isSidebarActive('call.waiter')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('call.waiter')); ?>" aria-expanded="false"> <i class="flaticon-381-television"></i> <span class="nav-text"><?php echo e(trans('layout.call_waiter')); ?></span> </a> </li> <?php endif; ?> <?php $modules = modules_status('MultiRestaurant'); ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('table_booking_manage')): ?> <?php if($modules): ?> <li class="<?php echo e(isSidebarActive('multirestaurant::tables.booking')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('multirestaurant::tables.booking')); ?>" aria-expanded="false"> <i class="flaticon-381-television"></i> <span class="nav-text"><?php echo e(trans('multirestaurant::layout.table_booking')); ?><small class="addon">(<?php echo e(trans('multirestaurant::layout.addon')); ?>)</small></span> </a> </li> <?php endif; ?> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('billing')): ?> <li class="<?php echo e(isSidebarActive('billings')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('billings')); ?>" aria-expanded="false"> <i class="flaticon-381-network "></i> <span class="nav-text"><?php echo e(trans('layout.billings')); ?></span> </a> </li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('category_manage')): ?> <li class="<?php echo e(isSidebarActive('category*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('category.index')); ?>" aria-expanded="false"> <i class="flaticon-381-television"></i> <span class="nav-text"><?php echo e(trans('layout.category')); ?></span> </a> </li> <?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('item_manage')): ?> <li class="<?php echo e(isSidebarActive('item*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('item.index')); ?>" aria-expanded="false"> <i class="flaticon-381-network"></i> <span class="nav-text"><?php echo e(trans('layout.items')); ?></span> </a> </li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('restaurant_manage')): ?> <li class="<?php echo e(isSidebarActive('restaurant*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('restaurant.index')); ?>" aria-expanded="false"> <i class="flaticon-381-television"></i> <span class="nav-text"><?php echo e(trans('layout.restaurant')); ?></span> </a> </li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('table_manage')): ?> <li class="<?php echo e(isSidebarActive('table*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('table.index')); ?>" aria-expanded="false"> <i class="flaticon-381-layer-1 "></i> <span class="nav-text"><?php echo e(trans('layout.table')); ?></span> </a>
</li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('tax_manage')): ?> <li class="<?php echo e(isSidebarActive('tax*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('tax.index')); ?>" aria-expanded="false"> <i class="flaticon-381-layer-1 "></i> <span class="nav-text"><?php echo e(trans('layout.tax')); ?></span> </a>
</li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('qr_manage')): ?> <li class="<?php echo e(isSidebarActive('qr*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('qr.maker')); ?>" aria-expanded="false"> <i class="fa fa-qrcode"></i> <span class="nav-text"><?php echo e(trans('layout.qr_maker')); ?></span> </a> </li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('plan_list')): ?> <li class="<?php echo e(isSidebarActive('plan.list')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('plan.list')); ?>" aria-expanded="false"> <i class="flaticon-381-network "></i> <span class="nav-text"><?php echo e(trans('layout.plan_list')); ?></span> </a>
</li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_user')): ?> <li class="<?php echo e(isSidebarActive('customers.index')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('customers.index')); ?>" aria-expanded="false"> <i class="fa fa-user-circle"></i> <span class="nav-text"> <?php if(auth()->user()->type=='restaurant_owner'): ?> <?php echo e(trans('layout.staff')); ?>
<?php elseif(auth()->user()->type=='admin'): ?> <?php echo e(trans('layout.users')); ?>
<?php endif; ?> </span> </a>
</li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report')): ?> <li class="<?php echo e(isSidebarActive('report*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('report.index')); ?>" aria-expanded="false"> <i class="flaticon-381-layer-1 "></i> <span class="nav-text"><?php echo e(trans('layout.report')); ?></span> </a>
</li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('plan_manage')): ?> <li class="<?php echo e(isSidebarActive('plan*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('plan.index')); ?>" aria-expanded="false"> <i class="flaticon-381-network "></i> <span class="nav-text"><?php echo e(trans('layout.plan')); ?></span> </a>
</li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('user_plan_change')): ?> <li class="<?php echo e(isSidebarActive('user.plan')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('user.plan')); ?>" aria-expanded="false"> <i class="flaticon-381-network "></i> <span class="nav-text"><?php echo e(trans('layout.user_plan')); ?></span> </a>
</li>
<?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('city_manage')): ?> <?php if($modules): ?> <li class="<?php echo e(isSidebarActive('multirestaurant::cities')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('multirestaurant::cities')); ?>" aria-expanded="false"> <i class="ti-map"></i> <span class="nav-text"><?php echo e(trans('multirestaurant::layout.cities')); ?><?php if(env('APP_DEMO')): ?><small class="addon">(<?php echo e(trans('multirestaurant::layout.addon')); ?>)</small><?php endif; ?></span> </a> </li> <?php endif; ?> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('template_manage')): ?> <li><a class="has-arrow ai-icon" href="javascript:void(0)" aria-expanded="false"> <i class="ti-layout-cta-right"></i> <span class="nav-text"><?php echo e(trans('layout.template')); ?></span> </a> <ul aria-expanded="false"> <?php if($modules): ?> <li> <a href="<?php echo e(route('multirestaurant::multirestaurant.template')); ?>"><?php echo e(trans('multirestaurant::layout.multi_restaurant')); ?><?php if(env('APP_DEMO')): ?><small class="addon">(<?php echo e(trans('multirestaurant::layout.addon')); ?>)</small><?php endif; ?></a> </li> <?php endif; ?> <li><a href="<?php echo e(route('template.index')); ?>"><?php echo e(trans('layout.frontend_template')); ?></a></li> </ul> </li> <?php endif; ?> <?php if(auth()->user()->type!='user'): ?> <li class="<?php echo e(isSidebarActive('settings*')); ?> active-no-child"><a href="<?php echo e(route('settings')); ?>" class="ai-icon" aria-expanded="false"> <i class="flaticon-381-settings-2"></i> <span class="nav-text"><?php echo e(trans('layout.settings')); ?></span> </a> </li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('restaurant_owner_manage')): ?> <li class="<?php echo e(isSidebarActive('customers.index')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('customers.index')); ?>" aria-expanded="false"> <i class="fa fa-user-circle"></i> <span class="nav-text"> <?php echo e(trans('layout.customer')); ?> </span> </a>
</li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('addon_manage')): ?> <li class="<?php echo e(isSidebarActive('addon.index')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('addon.index')); ?>" aria-expanded="false"> <i class="ti-plug"></i> <span class="nav-text"><?php echo e(trans('layout.addon')); ?></span> </a> </li> <?php endif; ?> </ul>
<div class="copyright"> <p><strong><?php echo e(json_decode(get_settings('site_setting'))->name); ?> </strong> © <?php echo e(date('Y')); ?> <?php echo e(trans('layout.all_right_reserved')); ?></p> </div>
<?php /**PATH /home/picotech/domains/multirest.picotech.app/public_html/resources/views/layouts/includes/sidebar.blade.php ENDPATH**/ ?>
|