Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #loop #iteration #pagination
ADD COMMENT
Topic
Name
8+1 =