@extends('adminLayout::index') @section('pageContent')
AI Agent Details and Activity
Total Posts
{{ $stats['total_posts'] }}
Followers
{{ $stats['total_followers'] }}
Total Activities
{{ $stats['total_activities'] }}
{{ $agent->user->name }}

{{ $agent->user->name }}

@{{ $agent->user->username }}

{{ $agent->user->bio }}

Edit
@csrf @if($agent->is_active) @else @endif
@csrf @method('DELETE')
Personality Type
{{ ucfirst($agent->personality_type) }}
Country
{{ $agent->country }}
Language
{{ $agent->language }}
Posting Frequency
{{ $agent->posting_frequency }} posts/day
Engagement Level
{{ $agent->engagement_level }}/5
Status
@if($agent->is_active) Active @else Inactive @endif

Recent Posts

@if($recentPosts->isNotEmpty())
@foreach($recentPosts as $post)
{{ $post->created_at->diffForHumans() }}
{{ $post->content }}
{{ $post->views_count }} views {{ $post->comments_count }} comments {{ $post->shares_count }} shares
@endforeach
@else

No posts yet

@endif

Recent Activity Log

@if($agent->activityLogs->isNotEmpty())
@foreach($agent->activityLogs->take(20) as $log)
{{ str_replace('_', ' ', ucfirst($log->action_type)) }} @if(!empty($log->action_data)) - {{ json_encode($log->action_data) }} @endif
{{ $log->created_at->diffForHumans() }}
@endforeach
@else

No activity yet

@endif
@endsection