@extends('layout.app')
@section('content')



<div class="flex flex-col mt-5">
    <div class=" bg-white p-6 rounded-lg">

        <div class="-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8">
            <div class="py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8">
                <div class="shadow overflow-hidden border-b border-gray-200 sm:rounded-lg">

                    
                    <table id="dataTable" class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col"
                                    class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                    User ID
                                </th>
                                
                                
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">

                                </th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">

                            @foreach ($list as $r)
                            {{-- {{dd($r)}} --}}
                            <tr>
                                <td>
                                    {{ $r->username}}
                                </td>
                                

                                <td class="px-6 text-center text-sm font-medium">
                                  <a target="_blank" href="{{route('refreshSession',$r->username) }}" class="inline-block py-1 px-2 border rounded bg-red-300 text-white">Refresh Session</a>
                                </td>
                            </tr>

                            @endforeach

                            <!-- More items... -->
                        </tbody>
                    </table>

                    <div class="p-5">
                        {{-- {{ $list->links() }} --}}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>




@endsection

