{{ __('profil.menu.activity') }}

@if(!$compact)
@endif
@forelse($this->activities as $index => $activity)
@if(!$loop->last)
@endif
{{ $activity->description }}
{{ $activity->created_at->diffForHumans() }} @if($activity->properties->has('changes') && count($activity->properties['changes']) > 0)
@elseif($activity->properties->has('old_email') && $activity->properties->has('new_email'))
@endif @if($activity->properties->has('device') || $activity->properties->has('browser') || $activity->properties->has('platform') || $activity->properties->has('location') || $activity->properties->has('ip'))
@if($activity->properties->has('device')) @if($activity->properties['device'] === 'Desktop') @elseif($activity->properties['device'] === 'Mobile') @elseif($activity->properties['device'] === 'Tablet') @endif {{ $activity->properties['device'] }} @endif @if($activity->properties->has('browser')) {{ $activity->properties['browser'] }} @endif @if($activity->properties->has('platform')) {{ $activity->properties['platform'] }} @endif @if($activity->properties->has('location') && $activity->properties['location']) {{ $activity->properties['location']['city'] ?? '' }}{{ isset($activity->properties['location']['country']) ? ', ' . $activity->properties['location']['country'] : '' }} @endif @if($activity->properties->has('ip')) {{ $activity->properties['ip'] }} @endif
@endif
@empty
{{ __('profil.activity.no_activity') }}
@endforelse
@if(!$compact && $this->activities instanceof \Illuminate\Pagination\LengthAwarePaginator)
{{ $this->activities->links() }}
@endif
@if($compact) @endif