<div class="box">
    <div class="box-title">User Lists</div>
    <div class="box-content">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>Avatar</th>
                    <th>Fullname</th>
                    <th>Username</th>
                    <th>Email Address</th>
                    <th>Date Joined</th>
                    <th>Last Login</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                @foreach($users as $user)
                    <tr>
                        <td><img style="width: 30px" src="{{$user->present()->getAvatar(30)}}"/> </td>
                        <td>{{$user->present()->fullName()}}</td>
                        <td>{{$user->username}}</td>
                        <td>{{$user->email_address}}</td>
                        <td>{{$user->created_at}}</td>
                        <td>{{$user->update_at}}</td>
                        <td>
                            <a href="{{URL::route('admincp-user-edit', ['id' => $user->id])}}">Edit</a> |
                            <a href="{{URL::route('delete-account')}}?userid={{$user->id}}">Delete</a>
                        </td>
                    </tr>
                @endforeach
            </tbody>
        </table>

        {{$users->links()}}
    </div>
</div>