<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> Name</th>
                <th>Priority</th>
                <th class="thbutton">Edit</th>
                <th class="thbutton">Delete</th>
            </tr>
        </thead>
        <tbody>
            @php $i=1;@endphp
            @if(count($data)>0)
                @foreach($data as $key=> $list)
                <tr>
                        <td>{{$data->firstItem() + $key}}</td>
                        <td>{{$list->name}}</td>
                        <td>{{$list->priority}}</td>

                        {{-- @if(auth()->user()->can('tax-masters-edit')) --}}
                        <td>
                            <button data-id="{{ $list->id }}" class="btn btn-warning edit" data-bs-toggle="modal" data-bs-target="#commonModal" title="Edit">
                                <i class="bi bi-pencil-square text-white"></i>
                            </button>
                        </td>
                        {{-- @endif --}}
                        {{-- @if(auth()->user()->can('tax-masters-delete')) --}}
                        <td>
                            <a data-url="{{route('product-packaging-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>
                        {{-- @endif --}}
                    </tr>
                    @php $i++; @endphp
                @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('products.import-pagination') !!}
    </div>
    <div class="col-md-5" style="display: flex; justify-content: space-between;">
        <div class="btn-group mb-0" style=" margin-left: 194px;">
            <a href="{{route('product-packaging-import.modal')}}" class="btn btn-outline-primary"><i class="bx bx-upload"></i>
                Import Products From Excel</a>
        </div>
        {{-- <div class="btn-group mb-0">
            <a href="{!! route('accounts-import.export-sample') !!}" class="btn btn-outline-primary mx-2" target="_blank"><i
                    class="bi bi-cloud-download"></i> Download Sample</a>
        </div> --}}
    </div>
</nav>
</div>

