Exemplo n.º 1
0
        										<th>Email</th>

        										<th class="adminoptions">Options</th>
        									</tr>
        								</thead>


        								<tbody>

                                            @foreach ($users as $user)
                                                <tr>
                                                    <td>{{ $user->name }}</td>

                                                    <td><?php 
if ($user->summoner_id != 0) {
    $summoner = Summoners::findorfail($user->summoner_id);
    echo $summoner->name;
} else {
    echo "none";
}
?>
</td>

                                                    <td><?php 
if ($user->team_id != 0) {
    $team = teams::findorfail($user->team_id);
    echo $team->name;
} else {
    echo "none";
}
?>