@if(session("adminmode"))
  <!-- Admin Links -->
  @if(in_array('Users',$adminpages))
    @include('layouts.segments.link', ['route'=>'users.index','text'=>'Users'])
  @endif
  @if(in_array('Roles',$adminpages))
    @include('layouts.segments.link', ['route'=>'roles.index','text'=>'Roles'])
  @endif
@else
  <!-- Standard Links -->
  @include('layouts.segments.link', ['route'=>'home','text'=>'Home'])
  @include('layouts.segments.link', ['route'=>'recipes.index','text'=>'Recipes'])

  <!-- Authentication Links -->
  @guest
    @include('layouts.segments.link', ['route'=>'login','text'=>'Login'])
  @else
    @include('layouts.segments.logout')
  @endguest
@endif
