feat : visits table in admin dashboard
This commit is contained in:
@@ -205,6 +205,55 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row mt-4">
|
||||
|
||||
<div class="col-xl-12">
|
||||
|
||||
<div class="card custom-card">
|
||||
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
لیست بازدیدهای اخیر
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-body pt-0">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>تاریخ بازدید</th>
|
||||
<th>ساعت</th>
|
||||
<th>آدرس IP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse($recentVisits as $visit)
|
||||
<tr>
|
||||
<td>{{ verta($visit->created_at)->format('Y/m/d') }}</td>
|
||||
<td>{{ verta($visit->created_at)->format('H:i') }}</td>
|
||||
<td>{{ $visit->ip_address ?? '—' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="4" class="text-center">بازدیدی ثبت نشده است</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{ $recentVisits->links() }}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user