{{-- Header --}}
{{ __('agentic::agentic.tool_calls.title') }}
{{ __('agentic::agentic.tool_calls.subtitle') }}
{{-- Filters --}}
@foreach($this->servers as $srv) @endforeach
@foreach($this->tools as $t) @endforeach
@foreach($this->workspaces as $ws) @endforeach
@foreach($this->agentTypes as $value => $label) @endforeach
@if($search || $server || $tool || $status || $workspace || $agentType) {{ __('agentic::agentic.actions.clear') }} @endif
{{-- Calls Table --}} @if($this->calls->count() > 0)
@foreach($this->calls as $call) @endforeach
{{ __('agentic::agentic.table.tool') }} {{ __('agentic::agentic.table.server') }} {{ __('agentic::agentic.table.status') }} {{ __('agentic::agentic.table.duration') }} {{ __('agentic::agentic.table.agent') }} {{ __('agentic::agentic.table.workspace') }} {{ __('agentic::agentic.table.time') }}
{{ $call->tool_name }} @if($call->session_id) {{ Str::limit($call->session_id, 20) }} @endif {{ $call->server_id }} {{ $call->success ? __('agentic::agentic.status.success') : __('agentic::agentic.status.failed') }} {{ $call->getDurationForHumans() }} @if($call->agent_type) {{ ucfirst($call->agent_type) }} @else - @endif {{ $call->workspace?->name ?? '-' }} {{ $call->created_at->diffForHumans() }} {{ $call->created_at->format('M j, H:i') }} {{ __('agentic::agentic.tool_calls.details') }}
{{-- Pagination --}}
{{ $this->calls->links() }}
@else
{{ __('agentic::agentic.tool_calls.no_calls') }} @if($search || $server || $tool || $status || $workspace || $agentType) {{ __('agentic::agentic.tool_calls.no_calls_filtered') }} @else {{ __('agentic::agentic.tool_calls.no_calls_empty') }} @endif
@endif
{{-- Call Detail Modal (AC18) --}} @if($this->selectedCall)
{{ $this->selectedCall->tool_name }}
{{ $this->selectedCall->server_id }} {{ $this->selectedCall->success ? __('agentic::agentic.status.success') : __('agentic::agentic.status.failed') }}
{{-- Metadata --}}
{{ __('agentic::agentic.tool_calls.metadata.duration') }} {{ $this->selectedCall->getDurationForHumans() }}
{{ __('agentic::agentic.tool_calls.metadata.agent_type') }} {{ ucfirst($this->selectedCall->agent_type ?? 'Unknown') }}
{{ __('agentic::agentic.tool_calls.metadata.workspace') }} {{ $this->selectedCall->workspace?->name ?? 'N/A' }}
{{ __('agentic::agentic.tool_calls.metadata.time') }} {{ $this->selectedCall->created_at->format('M j, Y H:i:s') }}
@if($this->selectedCall->session_id)
{{ __('agentic::agentic.tool_calls.session_id') }} {{ $this->selectedCall->session_id }}
@endif @if($this->selectedCall->plan_slug)
{{ __('agentic::agentic.table.plan') }} {{ $this->selectedCall->plan_slug }}
@endif {{-- Input Parameters --}} @if($this->selectedCall->input_params && count($this->selectedCall->input_params) > 0)
{{ __('agentic::agentic.tool_calls.input_params') }}
{{ json_encode($this->selectedCall->input_params, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@endif {{-- Error Details --}} @if(!$this->selectedCall->success)
{{ __('agentic::agentic.tool_calls.error_details') }} @if($this->selectedCall->error_code) {{ __('agentic::agentic.tools.error_code', ['code' => $this->selectedCall->error_code]) }} @endif {{ $this->selectedCall->error_message ?? __('agentic::agentic.tools.unknown_error') }}
@endif {{-- Result Summary --}} @if($this->selectedCall->result_summary && count($this->selectedCall->result_summary) > 0)
{{ __('agentic::agentic.tool_calls.result_summary') }}
{{ json_encode($this->selectedCall->result_summary, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@endif
{{ __('agentic::agentic.actions.close') }}
@endif