lundi 26 septembre 2016

Hide Menu when table is null php laravel 5

I want to hide menu My Profile when lender table is empty/null .but show menu when table is not null/not empty in laravel 5.

I stack just in here, because I dont know how to do next. So far just nothing happened.

@if($lender != null)
                            <li>
                                <a href="">
                                    <i class="icon-user"></i> My Profile </a>
                            </li>
@endif

Maybe any php code idea? thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire