 <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>State Name</th>
                <th>Country</th>
                <th class="thbutton">Status</th>
                {{-- @if(in_array('employee-type-edit', $authRolePermissions)) --}}
                <th class="thbutton">Edit</th>
                {{-- @endif --}}
                {{-- @if(in_array('employee-type-delete', $authRolePermissions)) --}}
                <th class="thbutton">Delete</th>
                {{-- @endif --}}
            </tr>
        </thead>
        <tbody>
            @php $i=1;@endphp
            @if(count($data)>0)
                @foreach($data as $key=> $list)
                    <tr>
                        <td class="text-center">{{$data->firstItem() + $key}}</td>
                        <td><strong>{{ucfirst($list->name)}}</strong></td>
                        <td>{{ucfirst($list->getCountry->name)}}</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('states.changestatus') }}" data-id="{{ $list->id }}" data-status="{{ $list->status == '0' ? '1' : '0' }}" {{ $list->status == '1' ? 'checked' : '' }}>
                            </div>
                        </td>
                        {{-- @if(in_array('employee-type-edit', $authRolePermissions)) --}}
                        <td>
                            <button type="button" class="btn btn-warning edit" data-id="{!! $list->id !!}" id="edit"  data-bs-toggle="modal" data-bs-target="#commonModal"><i class="bi bi-pencil-square text-white"></i></button>
                        </td>
                        {{-- @endif --}}
                        {{-- @if(in_array('employee-type-delete', $authRolePermissions)) --}}
                        <td>
                            <a data-url="{{route('states.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>
                        {{-- @endif --}}
                    </tr>
                    @php $i++; @endphp
                @endforeach
            @else
            <tr>
                <td colspan="13">No Data Found</td>
            </tr>
            @endif
        </tbody>
    </table>
</div>
<div class="row align-items-center">
    <div class="col-md-7">
        <ul class="pagination mb-0">
            {!! $data->onEachSide(0)->render('cities.pagination') !!}
        </ul>
    </div>

    <div class="col-md-5 text-md-end text-center mt-3">
        
            <i class="bi bi-funnel"></i>
        <select class="form-select d-inline-block w-auto sorting sorting-box" id="" name="example_length" aria-controls="example">
            <option value="10">Show: 10</option>
            <option value="30">Show: 30</option>
            <option value="50">Show: 50</option>
        </select>
    </div>
</div>


