@if(count($data)>0)
@foreach($data as $id => $list)
<tr class="cart-products" id="rows{{$id}}">
    <input type="hidden" class="form-control" name="book_issue_details_id[]" id="" value="">
    <td>{{$list['name'] ?? ''}}
        @if($list['author'])
        ,
        <i class="bi bi-people text-info"></i> Author:{{$list['author']??''}}
        @endif

        @if($list['publisher'])
        <i class="bi bi-pencil-square text-info"></i> Publisher:{{$list['publisher']??''}}
        @endif
        <input type="hidden" class="form-control" name="book_id[]" value="@if(isset($id)){{$id}}@endif" readonly>
    </td>
    <td class="text-start">{{$list['isbn'] ?? ''}} </td>
    <td><input type="text" class="form-control" name="qnt[]" value="{{$list['quantity']??''}}"></td>
    <td>
        <a style="line-height:24px;" data-url="{{route('issue-cart-book-remove')}}" data-id="{{$id}}" data-patient_id="{{$id}}" class="btn btn-danger deleteDataCustom" href="#" class="text-danger" data-bs-toggle="tooltip" data-bs-placement="left" title="Delete">
            <i class="bi bi-trash text-white"></i>
        </a>
    </td>
</tr>
@endforeach
@endif