خرید بک لینک

Vote count: 0

I have table users, which contain users that can log in into my web, so i have something like this, u can see that admin have privileges 1 while qwert have privileges 2, i want to display anything that have privileges 2, how can i do something like that?

enter image description here

in my web it's look something like this, u can see that admin been showed in that table, i don't want admin record to be shown, i just want to display record that have privileges 2 enter image description here

my code

@foreach($users as $user) 
        <tr class="odd gradeX">
            <td>{{$user->cv_name}}</td>
            <td>{{$user->cv_position}}</td>
            <td>{{$user->cv_country}}</td>
            <td>{{$user->email}}</td>
            <td>{{$user->cn_phone}}</td>
            <td>{{$user->cv_address}}</td>
            <td>
                <a class="btn btn-success" title="edit" data-id={{$user->id}} data-action="user-edit"><i class="glyphicon glyphicon-pencil"></i></a>
                <a class="btn btn-danger" title="delete" data-id={{$user->id}} data-action="user-delete"><i class="glyphicon glyphicon-trash"></i></a>
            </td>
        </tr>
@endforeach

how to do that? certain if else case maybe?

asked 38 secs ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 1 شهريور 1395 ساعت: 14:50

صفحه بندی