LABOUR TEAMS @include('helper.tablehelper.tableheader', [ 'name' => 'S.NO', 'type' => 'normal', 'sortname' => '', ]) @include('helper.tablehelper.tableheader', [ 'name' => 'NAME', 'type' => 'sortby', 'sortname' => 'name', ]) @include('helper.tablehelper.tableheader', [ 'name' => 'TEAM ID', 'type' => 'sortby', 'sortname' => 'team_id', ]) @include('helper.tablehelper.tableheader', [ 'name' => 'ACTION', 'type' => 'normal', 'sortname' => '', ]) @foreach ($team as $index => $eachteam) {{ $team->firstItem() + $index }} {{ $eachteam->team_id }} {{ $eachteam->name }} @endforeach Showing {{ $team->firstItem() }} to {{ $team->lastItem() }} out of {{ $team->total() }} items {{ $team->links() }}