<h5>Total Online: {{ $list->count() }}</h5>
<div class="table-responsive">
    <table id="dataTable" class="table table-bordered">
        <thead class="bg-gray-50">
            <tr>
                <th scope="col">
                    User ID
                </th>
                <th scope="col">
                    Client IP
                </th>

                <th scope="col">
                    MAC Address
                </th>

                <th scope="col">
                    Uptime
                </th>

                <th scope="col">

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

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

                    <td>
                        {{ $r->callingstationid }}
                    </td>

                    <td>
                        {{ \Carbon\Carbon::parse($r->acctstarttime)->diffForHumans() }}
                    </td>



                    <td class="px-6 text-center text-sm font-medium">

                        <form class="inline-block" action="{{ route('userDisconnect', $r->username) }}"
                            method="post">
                            @csrf
                            <input type="hidden" value="{{ $r->username }}">
                            <input type="submit" class="inline-block btn-blue" value="Disconnect">
                        </form>

                        {{-- <a 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>
