 <div class="table-responsive">
    <table id="example" class="table table-bordered align-middle" style="width:100%">
        <thead class="table-light">
            <tr>
                <th class="thbutton">Sl No</th>
                <th>Renewal Date</th>
                <th>Expiry Date</th>
                <th>Request Extention Date</th>
                <th>Payment Commitment Date</th>
                <th width="10%">Bill Status</th>
                <th width="10%">Collection Status</th>
                <th width="10%">Remarks</th>
                <th width="10%">Issued By</th>
            </tr>
        </thead>
        <tbody>
            @php $i=1;@endphp
            @if(count($history)>0)
                @foreach($history as $key=> $list)
                    <tr>
                        <td class="text-center">{{$history->firstItem() + $key}}</td>
                        <td>{!! formatedDate($list->last_renewal_date) !!}</td>
                        <td>{!! formatedDate($list->expiry_date) !!}</td>
                        <td>{!! formatedDate($list->request_extention_date) !!}</td>
                        <td>{!! formatedDate($list->payment_commitment_date) !!}</td>
                        <td>{!! $list->bill_status == 1 ? 'Done' : 'Pending' !!}</td>
                        <td>{!! $list->collection_status == 1 ? 'Done' : 'Pending' !!}</td>
                        <td>{!! $list->remarks ?? 'N/A' !!}</td>
                        <td>{!! $list->issuedBy->name ?? '' !!}</td>
                    </tr>
                    @php $i++; @endphp
                @endforeach
            @else
            <tr>
                <td colspan="13">No Data Found</td>
            </tr>
            @endif
        </tbody>
    </table>
</div>
<nav class="float-start mt-2">
    <ul class="pagination">
        {!! $history->onEachSide(0)->render('license-details.pagination') !!}
    </ul>
</nav>
</div>

