@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')

Activity Log

User: {{$user->name}} ({{$user->email}})
@if($user->photo) Photo @else Default @endif
@if($activities->count() > 0)
@foreach($activities as $activity)
@if($activity->description == 'created') Created @elseif($activity->description == 'updated') Updated @elseif($activity->description == 'deleted') Deleted @else {{ ucfirst($activity->description ?? 'Activity') }} @endif {{ $activity->log_name ?? 'default' }}
@if($activity->subject_type && $activity->subject_id)

Subject: {{ class_basename($activity->subject_type) }} #{{ $activity->subject_id }}

@endif @if($activity->properties && $activity->properties->count() > 0)
@if($activity->properties->has('attributes'))
View Changes
{{ json_encode($activity->properties, JSON_PRETTY_PRINT) }}
@endif
@endif
{{ $activity->created_at->format('d M, Y') }} {{ $activity->created_at->format('h:i A') }} {{ $activity->created_at->diffForHumans() }}
@endforeach
{{ $activities->links() }}
@else
No Activity Found

This user hasn't performed any recorded activities yet.

@endif
@endsection