<div class="table-responsive bg-white">
    <table id="example" class="table table-bordered align-middle" style="width:100%">
        <thead class="table-light">
            <tr>
                @php $i=1; @endphp
                <th>Serial No.</th>
                <th>Request Name</th>
                <th>Production Base Url</th>
                <th>Sandbox Base Url</th>
                <th>Sub Url</th>
                <th>Request Type</th>
                <th class="thbutton">Edit</th>
                <th class="thbutton">Delete</th>
            </tr>
        </thead>
        <tbody>
            @if(count($data)>0)
                @foreach($data as $key=> $list)
                <tr>
                    <td>{{$i++}}</td>
                    <td>{{$list->request_name}}</td>
                    <td>{{$list->request_production_base_url}}</td>
                    <td>{{$list->request_sandbox_base_url}}</td>
                    <td>{{$list->request_sub_url}}</td>
                    <td>{{$list->request_type}}</td>
                    <td class="text-center">
                        <button data-id="{{ $list->id }}" class="btn btn-warning editAbdmApiCallImport" id="editAbdmApiCallImport" data-bs-toggle="modal" data-bs-target="#commonModal" title="Edit">
                            <i class="bi bi-pencil-square text-white"></i>
                        </button>
                    </td>
                    <td class="text-center">
                        <a data-url="{{route('abdm-api-calls-import.destroy')}}" data-id="{{ $list->id }}" class="btn btn-danger deleteDataCustom" href="#" class="text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Delete">
                            <i class="bi bi-trash text-white"></i>
                        </a>
                    </td>
                </tr>
                @endforeach
            @else
                <tr>
                    <td colspan="9">No Data Found</td>
                </tr>
            @endif
        </tbody>
    </table>
</div>
<nav class="row align-items-center mt-3">
    <div class="col-md-7">
        {!! $data->onEachSide(0)->render('abdm_api_calls.import-pagination') !!}
    </div>
    <div class="col-md-5" style="display: flex; justify-content: end;">
        <div class="btn-group mb-0" style="margin-left: 194px;">
            <a href="{{route('abdm-api-calls-import.modal')}}" class="btn btn-outline-primary"><i class="bx bx-upload"></i>
                Import Abdm Api Calls From Excel</a>
        </div>
    </div>
</nav>
