📅  最后修改于: 2022-03-11 14:54:22.703000             🧑  作者: Mango
@foreach($listdata as $data)
// iteration ascending (1,2,3,...)
{{ $data->firstItem() + $loop->index }}
// iteration descending (...,3,2,1)
{{ ($data->total()-$loop->index) - (($data->currentpage()-1) * $data->perpage()) }}
@endforeach