{{ __('agentic::agentic.plans.title') }} {{ __('agentic::agentic.plans.subtitle') }} {{-- Filters --}}
@foreach($this->statusOptions as $value => $label) @endforeach
@foreach($this->workspaces as $ws) @endforeach
@if($search || $status || $workspace) {{ __('agentic::agentic.actions.clear') }} @endif
{{-- Plans Table --}} @if($this->plans->count() > 0)
@foreach($this->plans as $plan) @php $progress = $plan->getProgress(); $hasBlockedPhase = $plan->agentPhases->contains('status', 'blocked'); @endphp @endforeach
{{ __('agentic::agentic.table.plan') }} {{ __('agentic::agentic.table.workspace') }} {{ __('agentic::agentic.table.status') }} {{ __('agentic::agentic.table.progress') }} {{ __('agentic::agentic.table.sessions') }} {{ __('agentic::agentic.table.last_activity') }} {{ __('agentic::agentic.table.actions') }}
{{ $plan->title }} {{ $plan->slug }} {{ $plan->workspace?->name ?? 'N/A' }}
{{ ucfirst($plan->status) }} @if($hasBlockedPhase) {{ __('agentic::agentic.status.blocked') }} @endif
{{ $progress['percentage'] }}%
{{ $progress['completed'] }}/{{ $progress['total'] }} phases
{{ $plan->sessions_count }} {{ $plan->updated_at->diffForHumans() }}
{{ __('agentic::agentic.actions.view') }} @if($plan->status === 'draft') {{ __('agentic::agentic.actions.activate') }} @endif @if($plan->status === 'active') {{ __('agentic::agentic.actions.complete') }} @endif @if($plan->status !== 'archived') {{ __('agentic::agentic.actions.archive') }} @endif {{ __('agentic::agentic.actions.delete') }}
{{-- Pagination --}}
{{ $this->plans->links() }}
@else
{{ __('agentic::agentic.empty.no_plans') }} @if($search || $status || $workspace) {{ __('agentic::agentic.empty.filter_hint') }} @else {{ __('agentic::agentic.empty.plans_appear') }} @endif
@endif