 <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>Account Name</th>
                <th>Address</th>
                <th>City</th>
                <th>State/Province</th>
                <th>Country</th>
                <th>Phone No</th>
                <th>Accounting Group</th>
            </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><a href="{{route('accounts.show',$list->id)}}"><strong>{{ucfirst($list->name)}}</strong></a><br>{{$list->code}}</td>
                        <td style="white-space: break-spaces;">{{$list->address}}</td>
                        <td>{{$list->city}}</td>
                        <td>{{$list->state}}</td>
                        <td>{{$list->country}}</td>
                        <td><a href="tel:{{$list->phone_no}}">{{$list->phone_no}}</a><br>
                            {{$list->email}}
                        </td>
                        <td>{{ucfirst($list->group_name)}}</td>
                        @if(auth()->user()->can('accounts-edit'))
                        {{-- <td>
                            <a href="{{route('accounts.edit',$list->id)}}" class="btn btn-outline-secondary" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Edit">
                                <i class="bi bi-pencil-square"></i>
                            </a>
                        </td>
                        @endif
                        @if(auth()->user()->can('accounts-delete'))
                        <td>
                            <a data-url="{{route('accounts.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> --}}
                        @endif
                    </tr>
                    @php $i++; @endphp
                @endforeach
            @else
            <tr>
                <td colspan="10">No Data Found</td>
            </tr>
            @endif
        </tbody>
    </table>
</div>

<nav class="mt-2 row">
    <div class="col-lg-10 col-md-10 col-10 float-start">
        {!! $data->onEachSide(0)->render('customer-list.pagination') !!}
    </div>
    <div class="col-lg-2 col-md-2 col-2 dataTables_length" id="example_length" style="text-align: right;">
            <i class="bi bi-funnel" style=" top: 11px;left: 20px;"></i>
            <select class="form-select sorting sorting-box" id="" name="example_length" aria-controls="example" style="padding-left: 30px;">
                <option value="10">Show: 10</option>
                <option value="30">Show: 30</option>
                <option value="50">Show: 50</option>
            </select>
    </div>
</nav>
</div>
