@if($pages=='susbscribed_content' && !isset($request->id))
<div class="col-md-8 mt-xs-5">
    <nav aria-label="breadcrumb">
      <ol class="breadcrumb bg-transparent m-0 justify-content-end">
        <li class="breadcrumb-item"><a href="/home">Home</a></li>
        <li class="breadcrumb-item active" aria-current="page">User List</li>
      </ol>
    </nav>
    <h2 class="h4 p-3 bg-dark text-white">
    
    @if(isset($member_admin) && $member_admin == true) 
       Content Subscribed by the User
    @else
       Subscribed
    @endif   
    </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>
                             <?php /*   <th>User Name</th> */?>
                                <th>Organization</th>
                                <th>Content</th>
                            </tr>
                        </thead>
                        <tbody>
                            @if (!empty($user_consortia_counter))
                            @php $a=1; @endphp
                            @foreach($user_consortia_counter as $key => $value)
                            <tr>
                                <td>{{ $a }}</td>
                           <?php /*     <td>{{ $value->user_name }}</td>*/?>
                                <td>{{ $value->organization_name }}</td>
                                <td>
                                    <a href="/home/susbscribed_content/{{ $value->user_access_id }}" class="nac-link" > <i class="fas fa-chart-area"></i> View </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>
@elseif($pages=='susbscribed_content' && isset($request->id))
<div class="col-md-8 mt-xs-5">
    <nav aria-label="breadcrumb">
      <ol class="breadcrumb bg-transparent m-0 justify-content-end">
        <li class="breadcrumb-item"><a href="/home">Home</a></li>
        <li class="breadcrumb-item"><a href="/home/susbscribed_content">User List</a></li>
        <li class="breadcrumb-item active" aria-current="page">Subscribed Content</li>
      </ol>
    </nav>
    <h2 class="h4 p-3 bg-dark text-white">
        Subscribed Content of {{$user->organization_name}}
    </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 width="10%">S.#</th>
                                <th width="50%" class="text-center">Journal/Ebook</th>
                                <th width="40%" class="text-center">Volume(s)</th>
                                <!--th width="10%">Epub</th-->

                            </tr>
                        </thead>
                        <tbody>
                            @if (!empty($subscribed_content))
                            @php $a=1; @endphp
                            @foreach($subscribed_content as $key => $value)
                            <tr>
                                <td>{{ $a }}</td>
                                <td><a href="/journal/{{ $value->journal_id }}" target="_blank"> {{ $value->title }} </a></td>
                                <td align="justify">{!! $value->volumeYear !!}</td>
                                <!--td>@if($value->track==1) Yes @else -- @endif</td-->

                            </tr>
                            @php $a++ @endphp
                            @endforeach
                            @else
                            <tr>
                                <td colspan="3">
                                    <center>No Record Found</center>
                                </td>
                            </tr>
                            @endif
                        </tbody>
                    </table>
                    @if (!empty($subscribed_content))
                    <center>{{ $subscribed_content->appends(request()->input())->links() }}</center>
                    @endif
        </div>
      </div>
    </div>
</div>
@endif
