@php $statusColors = [ 'success' => 'bg-green-900/20 text-green-300 border-green-800/30', 'error' => 'bg-red-900/20 text-red-300 border-red-800/30', 'running' => 'bg-blue-900/20 text-blue-300 border-blue-800/30', 'pending' => 'bg-yellow-900/20 text-yellow-300 border-yellow-800/30', ]; $typeConfig = [ 'agent_run' => [ 'icon' => '', 'color' => 'text-purple-400', 'bg' => 'bg-purple-900/20', 'border' => 'border-purple-800/30' ], 'llm_call' => [ 'icon' => '', 'color' => 'text-blue-400', 'bg' => 'bg-blue-900/20', 'border' => 'border-blue-800/30' ], 'tool_call' => [ 'icon' => '', 'color' => 'text-orange-400', 'bg' => 'bg-orange-900/20', 'border' => 'border-orange-800/30' ], 'sub_agent_delegation' => [ 'icon' => '', 'color' => 'text-indigo-400', 'bg' => 'bg-indigo-900/20', 'border' => 'border-indigo-800/30' ], ]; $statusColor = $statusColors[$span['status']] ?? 'bg-gray-800/20 text-gray-300 border-gray-700/30'; $typeInfo = $typeConfig[$span['type']] ?? [ 'icon' => '', 'color' => 'text-gray-400', 'bg' => 'bg-gray-800/20', 'border' => 'border-gray-700/30' ]; $indent = $level * 24; $hasDetails = (!empty($span['input_data']) || !empty($span['output_data']) || !empty($span['error_data']) || !empty($span['metadata'])); @endphp
@if($level > 0)
@endif
{!! str_replace('w-4 h-4', 'w-3.5 h-3.5', $typeInfo['icon']) !!}
{{ $span['name'] }} {{ ucfirst($span['status']) }}
{{ str_replace('_', ' ', ucwords($span['type'], '_')) }}
@if($hasDetails) @endif
@if($hasDetails) @endif
@if(!empty($span['children']))
@foreach($span['children'] as $child) @include('vizra-adk::partials.trace-span', ['span' => $child, 'level' => $level + 1]) @endforeach
@endif