Viewing file: 6965503c2b72b93f8c508cf8c509c9a87328924b.php (16.09 KB) -rwxrwxrwx 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 !== 'reservation_owner' ): ?> <?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 endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('call_waiter')): ?> <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 if(auth()->user()->type == 'reservation_owner' || auth()->user()->type == 'restaurant_owner' || auth()->user()->type == 'user'): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('reservation')): ?> <li class="<?php echo e(isSidebarActive('check.reservation')); ?> active-no-child"> <a class="ai-icon" href="<?php echo e(route('check.reservation')); ?>" aria-expanded="false"> <i class="flaticon-381-notepad "></i> <span class="nav-text"><?php echo e(trans('layout.reservations')); ?></span> </a> </li> <?php endif; ?> <?php endif; ?> <?php if(auth()->user()->type == 'customer' && isset(auth()->user()->restaurant_id) && auth()->user()->restaurant_id): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('reservation')): ?> <li class="<?php echo e(isSidebarActive('check.reservation')); ?> active-no-child"> <a class="ai-icon" href="<?php echo e(route('check.reservation')); ?>" aria-expanded="false"> <i class="flaticon-381-notepad "></i> <span class="nav-text"><?php echo e(trans('layout.reservations')); ?></span> </a> </li> <?php endif; ?> <?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('menu_manage')): ?> <li><a class="has-arrow ai-icon" href="javascript:void(0)" aria-expanded="false"> <i class="flaticon-381-layer-1"></i> <span class="nav-text"><?php echo e(trans('layout.menus')); ?></span> </a> <ul aria-expanded="false"> <li><a href="<?php echo e(route('category.index')); ?>"><?php echo e(trans('layout.category')); ?></a></li> <li><a href="<?php echo e(route('item.index')); ?>"><?php echo e(trans('layout.items')); ?></a></li> <li><a href="<?php echo e(route('tax.index')); ?>"><?php echo e(trans('layout.tax')); ?></a></li> </ul> </li> <?php endif; ?>
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('table_manage')): ?> <li><a class="has-arrow ai-icon" href="javascript:void(0)" aria-expanded="false"> <i class="flaticon-381-layer-1"></i> <span class="nav-text"><?php echo e(trans('layout.table')); ?></span> </a> <ul aria-expanded="false"> <li><a href="<?php echo e(route('table-position.index')); ?>"><?php echo e(trans('layout.position')); ?></a></li> <li><a href="<?php echo e(route('table.index')); ?>"><?php echo e(trans('layout.table')); ?></a></li> <li><a href="<?php echo e(route('qr.maker')); ?>"><?php echo e(trans('layout.qr_maker')); ?></a></li> </ul> </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')); ?> ( <?php echo e(trans('layout.branches')); ?> )</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(auth()->user()->type=='restaurant_owner'): ?> <li><a class="has-arrow ai-icon" href="javascript:void(0)" aria-expanded="false"> <i class="flaticon-381-layer-1"></i> <span class="nav-text"><?php echo e(trans('layout.extra')); ?></span> </a> <ul aria-expanded="false"> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('plan_list')): ?> <li><a href="<?php echo e(route('plan.list')); ?>"><?php echo e(trans('layout.package')); ?></a></li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_user')): ?> <li><a href="<?php echo e(route('customers.index')); ?>"> <?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; ?> </a></li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('report')): ?> <li><a href="<?php echo e(route('report.index')); ?>"><?php echo e(trans('layout.report')); ?></a></li> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('order_count_down')): ?> <li><a href="<?php echo e(route('order.count.down.list')); ?>" target="_blank"><?php echo e(trans('Order Count')); ?></a></li> <?php endif; ?>
</ul> </li> <?php endif; ?>
<?php if(auth()->user()->type=='admin'): ?>
<?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 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('contact_message')): ?> <li class="<?php echo e(isSidebarActive('contact-message.index')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('contact-message.index')); ?>" aria-expanded="false"> <i class="fa fa-envelope-o"></i>
<span class="nav-text"><?php echo e(trans('layout.messages')); ?></span> </a>
</li>
<?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('plan_manage')): ?> <li class="<?php echo e(isSidebarActive('blog*')); ?> active-no-child"><a class="ai-icon" href="<?php echo e(route('blog.index')); ?>" aria-expanded="false"> <i class="fa fa-rss" aria-hidden="true"></i>
<span class="nav-text"><?php echo e(trans('layout.blog')); ?></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')); ?>"><span><i class="fa fa-angle-double-right" aria-hidden="true"></i> </span><?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')); ?>"> <span><i class="fa fa-angle-double-right" aria-hidden="true"></i> </span> <?php echo e(trans('layout.frontend_template')); ?></a></li> <li><a href="<?php echo e(route('page.index')); ?>"> <span><i class="fa fa-angle-double-right" aria-hidden="true"></i> </span> <?php echo e(trans('layout.pages')); ?></a></li> <li><a href="<?php echo e(route('faq.index')); ?>"> <span><i class="fa fa-angle-double-right" aria-hidden="true"></i> </span> <?php echo e(trans('layout.faq')); ?></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/test.qr.picotech.app/public_html/resources/views/layouts/includes/sidebar.blade.php ENDPATH**/ ?>
|