 <div class="card-body">
     <div class="table-responsive">
         <table class="table table-bordered align-middle" style="width:100%">
             <thead class="table-light">
                 <tr>
                     <th class="thbutton">Sl No</th>
                     <th>Issue No</th>
                     <th>Member Name</th>
                     <th>Quantity</th>
                     <th>Issue Date</th>
                     <th>Return Due Date</th>
                     <th>Financial Year</th>
                     <th class="thbutton">Print</th>
                     <th class="thbutton">Edit</th>
                     <th class="thbutton">Delete</th>
                 </tr>
             </thead>
             <tbody>
                 @php $i=1;@endphp
                 @if(count($BookIssue)>0)
                 @foreach($BookIssue as $key=> $row)
                 @php $detailsbooks=json_decode($row->details) @endphp
                 <tr>
                     <td>{{$BookIssue->firstItem() + $key}}</td>
                     <td>@if(isset($row->issue_no)){{$row->issue_no}}@endif</td>
                     <td>
                         <a href="{{route('book-issue.show',$row->id)}}">@if(isset($row->getStudentDetails->name)){{$row->getStudentDetails->name??''}} @endif</a>
                     </td>
                     <td>@if(isset($detailsbooks[0]->qnt)){{$detailsbooks[0]->qnt}}@endif</td>
                     <td>@if(isset($row->issue_date)){{$row->issue_date}}@endif</td>
                     <td>@if(isset($row->return_due_date)){{$row->return_due_date}}@endif</td>




                     <td>@if(isset($row->getFinancialyear->financial_year_name)){{$row->getFinancialyear->financial_year_name}}@endif</td>
                     <td align="center">
                         <a href="{{route('book-issue.print',$row->id)}}" class="btn btn-success" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Print">
                             <i class="bi bi-printer text-white"></i>
                         </a>

                     </td>
                     <td align="center">
                        @if(in_array('book-issue-edit', $authRolePermissions))
                         <a href="{{route('book-issue.edit',$row->id)}}" class="btn btn-outline-secondary edit" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Edit">
                        <i class="bi bi-pencil-square"></i>
                    </a>
                        @endif
                     </td>


                     <td align="center">
                        @if(in_array('book-issue-delete', $authRolePermissions))
                         <a data-url="{{route('library.book-issue.destroy')}}" data-id="{{$row->id}}" class="btn btn-danger deleteDataCustom" class="text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Delete">
                        <i class="bi bi-trash text-white"></i>
                    </a>
                        @endif
                     </td>

                 </tr>
                 @php $i++; @endphp
                 @endforeach
                 @else
                 <tr>
                     <td colspan="10">No Data Found</td>
                 </tr>
                 @endif
             </tbody>
         </table>
     </div>
     <div class="table-responsive">
         <nav class="float-start mt-2">
             <ul class="pagination">
                 {!! $BookIssue->onEachSide(1)->render('library.book-issue.pagination') !!}
             </ul>
         </nav>
     </div>
 </div>