<div class="card-body" id="tables">
    <div class="table-responsive">
        <table class="table table-bordered align-middle" style="width:100%">
            <thead class="table-light">
                <tr>
                    <th class="thbutton">Sl No</th>
                    <th>Signature Name</th>
                    <th>Dept QTY</th>
                    <th>Signature For</th>
                    <th class="thbutton">Permissions</th>
                </tr>
            </thead>
            <tbody>
                @php $i=1;@endphp
                @if(count($data)>0)
                    @foreach ($data as $key => $signature)
                        <tr>
                            <td>{{$key+1}}</td>
                            <td>{{ $signature->name }}</td>
                            <td>{{ $signature->permissions_count }} Out of {{ $totalDept }}</td>
                            <td>{{ $signature->signature_for }}</td>
                            <td class="text-center">
                                <a href="{{ route('signatures.permission-edit', $signature->id) }}" class="btn btn-info button-large" title="Info">
                                    <i class="bi bi-shield-lock-fill text-white">Edit</i>
                                </a>
                            </td>
                        </tr>
                    @endforeach
                @else
                    <tr>
                        <td colspan="5">No Data Found</td>
                    </tr>
                @endif
            </tbody>
        </table>
    </div>
</div>
<nav class="row align-items-center mt-3">
    <ul class="col-md-6">
        {!! $data->onEachSide(0)->render('signatures.pagination') !!}
    </ul>
</nav>
</div>