So on database, user who have named Mirna has a hrd role. And i have a code like this.
<p class="text-muted">Your Current Role is
<strong></strong>
</p>
The result is not hrd, but it is shows a other value. Confusing right?
And another confusing problem is.. i have a menu that each menu have each authorization too. so the code is sounds like this
@if(Auth::user()->role=='hrd')
<li><a class="sidebar-sub-toggle"><i class="ti-layout-grid2-alt"></i> Candidate<span
class="sidebar-collapse-icon ti-angle-down"></span></a>
<ul>
<li><a href="/candidate/managements">Candidates Data</a></li>
<li><a href="/candidate/interviewed">Candidates Interviewed</a></li>
</ul>
</li>
@endif
if you know this route and how's the result. It should shows us menu candidate, candidates data and candidates interviewed if auth logged in have a hrd roles, am i right?
but the result is this is the results can you help me? Whats wrong on my code?
Thanks before guys
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire