Viewing file: restaurant_sidebar.blade.php (2.45 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<ul class="metismenu sidebar-height" id="menu"> @if(isset(auth()->user()->type) && auth()->user()->type=='customer') <li><a class="ai-icon" href="{{route('dashboard')}}" aria-expanded="false"> <i class="flaticon-381-networking"></i> <span class="nav-text">{{trans('layout.dashboard')}}</span> </a> </li> @endif
@if(auth()->check()) @php $menu= \App\Models\Menu::where('user_id',auth()->user()->id)->orderBy('created_at','desc')->limit(1)->get(); @endphp @if(isset($menu[0]) && $menu[0]) <li><a class="has-arrow ai-icon" href="javascript:void(0)" aria-expanded="false"> <i class="flaticon-381-add"></i> <span class="nav-text">{{trans('layout.menu')}}</span> </a> <ul aria-expanded="false"> @foreach($rest_categories as $cat) <li><a data-id="{{$cat->id}}" class="ai-icon item-category" href="javascript:void(0)" aria-expanded="false"> <i class="flaticon-381-networking"></i> <span class="nav-text">{{$cat->name}}</span> </a> </li> @endforeach </ul> </li> @endif @endif
@if(auth()->check()) @php $modules = modules_status('MultiRestaurant'); @endphp @if($modules && $restaurant->on_multi_restaurant == 'publish') @if(auth()->user()->type == 'customer') @can('reservation') <li class=" active-no-child"> <a class="ai-icon" href="{{ route('multirestaurant::restaurant', $restaurant->id) }}" aria-expanded="false" target="_blank"> <i class="flaticon-381-notepad "></i> <span class="nav-text">{{trans('layout.reservations')}}</span> </a> </li> @endcan @endif @endif @endif
@if(!auth()->check()) <li><a class="ai-icon" href="{{route('registration',['type'=>'customer','restaurant'=>request()->get('id'),'slug'=>request()->segment(2)])}}" aria-expanded="false"> <i class="flaticon-381-add"></i> <span class="nav-text">{{trans('layout.signup')}}</span> </a> </li> @endif </ul>
<div class="copyright mt-4"> <p><strong>{{json_decode(get_settings('site_setting'))->name}} </strong> © {{date('Y')}} All Rights Reserved</p> </div>
|