Commit b44e9be6 authored by Waterfox's avatar Waterfox
Browse files

Refactor user roles display in test.blade.php

parent 3dada7bc
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -7,11 +7,16 @@
    <title>Document</title>
</head>
<body>
    @if ($user->checkPassword('securepassword'))
        <p>Match</p>
        <p> {{$user->hasRoles('SEC')}} </p>
    @if($user->roles->isNotEmpty())
    <p>Roles:</p>
    <ul>
        @foreach($user->roles as $role)
            <li>{{ $role->ROL_LABEL }}</li>
        @endforeach
    </ul>
    @else
        <p>Unmatch</p>
        <p>Cet utilisateur n'a aucun rôle.</p>
    @endif

</body>
</html>