add pagination for reports
This commit is contained in:
parent
33dbb9a3da
commit
9e87f42dd9
|
|
@ -58,7 +58,7 @@ class ReportController extends Controller
|
|||
{
|
||||
$reports = Report::where('reporter', auth()->id())
|
||||
->orderBy('report_at', 'desc')
|
||||
->get();
|
||||
->paginate(10);
|
||||
|
||||
return view('user.report', ['reports' => $reports]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,5 +31,10 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="float-right">
|
||||
{{ reports.links()|raw }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user