lundi 25 décembre 2017

If else in blade templates depends on the role_id

Hi experts I'm trying to display here a content depending on logged in user. If their role id = 2, the link will be diplayed in the sidebar. But then it has an error. Thanks

@if(()=="2") 
            <li class="">
                <a href="" class =""><i class="fa fa-list-alt"></i>  User Log</a> 
            </li>
@endif



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire