 <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>User Type</th>
                <th>Code</th>
                <th class="thbutton">Status</th>
                <th class="thbutton">Edit</th>
                <th class="thbutton">Delete</th>

            </tr>
        </thead>
        <tbody>
            @php $i=1;@endphp
            @if(count($user_types)>0)
                @foreach($user_types as $key=> $list)
                    <tr>
                        <td class="text-center">{{$i++}}</td>
                        <td>{{$list->name}}</td>
                        <td>{{$list->code}}</td>
                        <td>
                            <div class="form-check form-check-inline{{ $i }}">
                                <input class="form-check-input{{ $i }} btn-lg changeStatusCustom" type="checkbox" id="inlineCheckbox{{ $i }}" data-url="{{ route('user-types-changestatus') }}" data-id="{{ $list->id }}" data-status="{{ $list->status == '0' ? '1' : '0' }}" {{ $list->status == '1' ? 'checked' : '' }}>
                            </div>
                        </td>
                        <td>
                            <button type="button" class="btn btn-warning editUserType" data-id="{!! $list->id !!}" id="editUserType"  data-bs-toggle="modal" data-bs-target="#commonModal"><i class="bi bi-pencil-square text-white"></i></button>
                        </td>
                        <td>
                            <a data-url="{{route('user-types-destroy', $list->id)}}" 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="13">No Data Found</td>
            </tr>
            @endif
        </tbody>
    </table>
</div>
<nav class="float-start mt-2">
    <ul class="pagination">
        {!! $user_types->onEachSide(0)->render('user-types.pagination') !!}
    </ul>
</nav>
</div>

