Jump to content
Fórum Script Brasil
  • 0

Session em página com autenticação


Question

Estou com uma dificuldade de criar uma outra página para uma outra session vou dexar a parte onde as url indicam o arquivo.

 

obs: já criei outro arquivo e troquei mas mesmo assim dá erro 

 

ONDE QUERO CRIAR É O (MYMOTO)

 

  <header class="sticky">
    <div class="container">
      <div class="logo"> <a href="{{ URL::to('/') }}"><img src="{{ URL::asset('upload/'.getcong('site_logo')) }}" alt="" ></a> </div>
      <nav class="animenu">
      <button class="animenu_toggle">
         <span class="animenu_toggle_bar"></span>
         <span class="animenu_toggle_bar"></span>
         <span class="animenu_toggle_bar"></span>
      </button>
      <ul class="animenu_nav">
            <li> <a href="{{ URL::to('/') }}">Home</a></li>
            <li><a href="{{URL::to('restaurants')}}">Estabelecimentos</a></li>

            @if(Auth::check() and Auth::user()->usertype=='User')
 <li> <a href="javascript:void(0);">Minha Conta<i class="icon-down-open-mini"></i></a>
              <ul class="animenu_nav_child">
                <li><a href="{{ URL::to('profile') }}">Editar meu Perfil</a></li>
                <li><a href="{{ URL::to('change_pass') }}">Editar Password</a></li>
                <li><a href="{{URL::to('myorder')}}">Meus Pedidos</a></li>
                <li><a href="{{ URL::to('logout') }}">Sair</a></li>
              </ul>
            </li>
          @elseif(Auth::check() and Auth::user()->usertype=='mymoto')
 <li> <a href="javascript:void(0);">Minha Conta<i class="icon-down-open-mini"></i></a>
              <ul class="animenu_nav_child">
                <li><a href="{{ URL::to('profile') }}">Editar meu Perfil</a></li>
                <li><a href="{{ URL::to('change_pass') }}">Editar Password</a></li>
                <li><a href="{{URL::to('mymoto')}}">Pedidos</a></li>
                <li><a href="{{ URL::to('logout') }}">Sair</a></li>
              </ul>
            </li>
@elseif(Auth::check() and Auth::user()->usertype=='Owner')
              <li> <a href="javascript:void(0);">Minha Conta<i class="icon-down-open-mini"></i></a>
              <ul class="animenu_nav_child">
                <li><a href="{{ URL::to('admin/dashboard') }}">Painel de controle</a></li>
                <li><a href="{{ URL::to('logout') }}">Sair</a></li>
              </ul>
            </li>
            @elseif(Auth::check() and Auth::user()->usertype=='Admin')
              <li> <a href="javascript:void(0);">Minha Conta<i class="icon-down-open-mini"></i></a>
              <ul class="animenu_nav_child">
                <li><a href="{{ URL::to('admin/dashboard') }}">Painel de controle</a></li>
                <li><a href="{{ URL::to('logout') }}">Sair</a></li>
              </ul>
            </li>

 

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      148691
    • Total Posts
      644530
×
×
  • Create New...