@yield('ceeseeses') </head> <body> <div id="wrapper"> <header> <div class="welcome"> Bienvenida/o <span class="bold">{{{ isset(Auth::user()->name) ? Auth::user()->lastname : Auth::user()->firstname.' '.Auth::user()->lastname }}}</span><br> <?php $profesional = Profesional::where('user_id', Auth::user()->id)->first(); if (isset($profesional)) { echo "Profesional: " . $profesional->nombre . ", " . $profesional->apellido1 . " " . $profesional->apellido2; } else { echo "Este usuario no tiene un profesional asignado"; } $grupo = Usergroups::where('id', Auth::user()->group_id)->first(); ?> <br/> Grupo: {{ $grupo->nombre }} </div> <div class="logo"></div> <div class="exit"> @if(Auth::user()->isAdmin()) {{ html_entity_decode( HTML::link("paciente", HTML::image("imagenes/home.png", "Inicio", array('title' => 'Inicio')) ) ) }} @elseif(Auth::user()->isProfesional()) {{ html_entity_decode( HTML::link("historial_clinico", HTML::image("imagenes/home.png", "Inicio", array('title' => 'Inicio')) ) ) }} @else {{ html_entity_decode( HTML::link("paciente", HTML::image("imagenes/home.png", "Inicio", array('title' => 'Inicio')) ) ) }} @endif <!-- {{ HTML::link('users/logout', HTML::image('imagenes/exit.png', 'Salir')) }} -->