<div class="col-md-8 mt-xs-5">
    <h2 class="h4 p-3 bg-dark text-white">
        User Usage List
    </h2>
    <div class="card bigbox-hvr-slow mt-4">
        <div class="card-body">
          <div class="table-responsive">

                    <table class="table table-striped table-bordered" id="article_table">
                        <thead>
                            <tr>
                                <th>S.#</th>
                                <th>User Name</th>
                                <th>Organization</th>
                                <th>Counter Report</th>
                            </tr>
                        </thead>
                        <tbody>
                            @if (!empty($user_consortia_counter))
                            @php $a=1; @endphp
                            @foreach($user_consortia_counter as $key => $value)
                            <tr>
                                <td>{{ $a }}</td>
                                <td>{{ $value->user_name }}</td>
                                <td>{{ $value->organization_name }}</td>
                                <td>
                                    <a href="/home/usagereport/{{ $value->id }}" class="nac-link" > <i class="fas fa-chart-area"></i> Download </a>
                                </td>
                            </tr>
                            @php $a++ @endphp
                            @endforeach
                            @else
                            <tr>
                                <td colspan="3">
                                    <center>Empty</center>
                                </td>
                            </tr>
                            @endif
                        </tbody>
                    </table>
                    @if (!empty($user_consortia_counter))
                    <center>{{ $user_consortia_counter->appends(request()->input())->links() }}</center>
                    @endif
        </div>
      </div>
    </div>
</div>

