Answers for "loop index laravel in pagination"

1

laravel loop iteration pagination

@forelse ($datatabel as $data)
  <tr>
  	<td>{{ $datatabel->firstItem() + $loop->index }}</td>
  </tr>
@empty
  <tr>
  	<td>No Data Available</td>
  </tr>
@endforelse
Posted by: Guest on October-02-2021

Browse Popular Code Answers by Language