Skip to content

Instantly share code, notes, and snippets.

@yankchina
Created June 27, 2016 12:20
Show Gist options
  • Save yankchina/4934e6da39d78d1ca408dbb909ff2902 to your computer and use it in GitHub Desktop.
Save yankchina/4934e6da39d78d1ca408dbb909ff2902 to your computer and use it in GitHub Desktop.
blade 中显示列表表格的方法
@foreach ($records as $index=>$record)
<tr>
<td>{{ ++$index }} /{{$record -> id}}</td>
<td>{{$record -> title}}</td>
<td>{{$record -> meeting_start_date}} - {{$record -> meeting_end_date}}</td>
<td>
<a href="#edit" class="btn blue btn-outline sbold" data-toggle="modal" id="{{$record -> id}}">Edit</a>
</td>
</tr>
@endforeach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment