@foreach ($userActivities as $activity) @endforeach
S.N Table @if ($sortField === 'table') @if ($sortDirection === 'asc') @else @endif @else @endif Event @if ($sortField === 'event') @if ($sortDirection === 'asc') @else @endif @else @endif User Name @if ($sortField === 'users.name') @if ($sortDirection === 'asc') @else @endif @else @endif IP @if ($sortField === 'ip_address') @if ($sortDirection === 'asc') @else @endif @else @endif Timestamp @if ($sortField === 'created_at') @if ($sortDirection === 'asc') @else @endif @else @endif Action
{{ ($userActivities->currentPage() - 1) * $userActivities->perPage() + $loop->index + 1 }} {{ ucfirst($activity->table) }} {{ $activity->event }} {{ $activity->name }} {{ $activity->ip_address }} {{ $activity->created_at->format('Y-m-d H:i:s') }} ({{ $activity->created_at->diffForHumans() }})
{{ $userActivities->links() }}
{{-- blade code --}} @push('scripts') @endpush