@extends('admin.layout') @section('title', 'AI Agent Log #' . $log->id) @section('content')
{{-- Header --}}

{{ \App\Services\AiAgentService::TASK_LABELS[$log->task_type] ?? $log->task_type }}

Log #{{ $log->id }} · {{ $log->started_at?->format('M d, Y H:i:s') }}

@if($log->status === 'completed') Completed @elseif($log->status === 'failed') Failed @endif
{{-- Summary Card --}}

Task

{{ $log->task_type }}

Items Created

{{ $log->items_created }}

Duration

{{ $log->duration ?? 'N/A' }}

Action

{{ $log->action }}

{{-- Error Message --}} @if($log->error_message)

Error

{{ $log->error_message }}
@endif {{-- Details JSON --}} @if($log->details)

Details

{{ json_encode($log->details, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) }}
@endif
@endsection ob_start();