{{-- File: resources/views/insights/investment-advisor.blade.php --}} @extends('layouts.app') @section('title', 'CLEDA Investment Advisor') @section('content')

CLEDA.I Insights

AI-Powered Investment Intelligence
Connecting to data sources...
Analyzing congressional trading data...
Processing insider trading signals...
Generating trading recommendations...
Claude AI analysis in progress...
Finalizing investment insights...

CLEDA Investment Advisor

AI-Powered Investment Intelligence • Powered by Alternative Data & Claude AI

Claude AI Analysis Quiver Data Real-time Trading Advisor
Last Updated
{{ isset($lastUpdated) ? $lastUpdated->format('M j, Y') : now()->format('M j, Y') }}
{{ isset($lastUpdated) ? $lastUpdated->format('H:i') : now()->format('H:i') }} EST
@if(isset($error))
Data Unavailable

{{ $error }}

@endif @if(isset($aiAnalysis) && is_string($aiAnalysis) && $aiAnalysis !== 'Analysis temporarily unavailable. Please try again later.')

Claude AI Trading Recommendations

AI-powered trade suggestions with tracking capability

Investment Disclaimer:

These are AI-generated recommendations for educational purposes only. Always conduct your own research and consult with a financial advisor before making any trading decisions.

Claude AI Analysis & Recommendations
{{ $aiAnalysis }}
@elseif(isset($aiAnalysis))
AI Analysis Status

{{ $aiAnalysis }}

@endif
{{ is_array($congressData) && !isset($congressData['error']) ? count($congressData) : 0 }}
Congressional
Political signals
{{ is_array($insiderData) && !isset($insiderData['error']) ? count($insiderData) : 0 }}
Insider
Corporate moves
@if(isset($aiAnalysis) && is_string($aiAnalysis) && $aiAnalysis !== 'Analysis temporarily unavailable. Please try again later.') @else @endif
{{ isset($aiAnalysis) && is_string($aiAnalysis) && $aiAnalysis !== 'Analysis temporarily unavailable. Please try again later.' ? '✓' : '...' }}
AI Analysis
{{ isset($aiAnalysis) && is_string($aiAnalysis) && $aiAnalysis !== 'Analysis temporarily unavailable. Please try again later.' ? 'Complete' : 'Processing' }}
{{ isset($recentRecommendations) ? $recentRecommendations->count() : 0 }}
Tracked Trades
AI Recommendations

Congressional Trading

Recent political insider trading activity

{{ is_array($congressData) && !isset($congressData['error']) ? count($congressData) : 0 }} trades
@if(isset($congressData['error']))

{{ $congressData['error'] }}

@if($congressData['error'] === 'Quiver API key not configured')

Add your Quiver API key to .env file to enable live data

QUIVER_API_KEY=your_key_here @endif
@else
@forelse($congressData as $index => $trade)
{{ Str::limit($trade['Representative'] ?? 'Unknown', 20) }} @if(isset($trade['Party'])) {{ $trade['Party'] }} @endif
{{ $trade['Ticker'] ?? 'N/A' }} {{ $trade['Transaction'] ?? 'Unknown' }}
{{ isset($trade['TransactionDate']) ? \Carbon\Carbon::parse($trade['TransactionDate'])->format('M j, Y') : 'Unknown date' }}
@if(isset($trade['Transaction'])) @if($trade['Transaction'] === 'Purchase') @else @endif @endif
@empty

No Recent Trades

Congressional trading data will appear here when available

@endforelse
@endif

Insider Trading

Corporate insider trading movements

{{ is_array($insiderData) && !isset($insiderData['error']) ? count($insiderData) : 0 }} trades
@if(isset($insiderData['error']))

{{ $insiderData['error'] }}

@if($insiderData['error'] === 'Quiver API key not configured')

Add your Quiver API key to .env file to enable live data

QUIVER_API_KEY=your_key_here @endif
@else
@forelse($insiderData as $index => $trade)
{{ $trade['Ticker'] ?? 'N/A' }} {{ Str::limit($trade['Name'] ?? 'Unknown Insider', 25) }}
{{ isset($trade['Shares']) ? number_format($trade['Shares']) . ' shares' : 'Unknown volume' }}
{{ isset($trade['Date']) ? \Carbon\Carbon::parse($trade['Date'])->format('M j, Y') : 'Recent' }}
@if(isset($trade['AcquiredDisposedCode'])) @if($trade['AcquiredDisposedCode'] === 'A') @else @endif @endif
@empty

No Recent Trades

Insider trading data will appear here when available

@endforelse
@endif
@endsection