AI Investment Recommendations

Advanced AI analysis of congressional and insider trading patterns to generate actionable investment recommendations

Claude AI Active
@if(isset($error))
{{ $error }}
@endif
Congressional Data Insider Data AI Analysis

Claude AI Market Analysis

Updated: {{ now()->format('M j, Y g:i A') }}
@if(!empty($aiAnalysis) && !str_contains($aiAnalysis, 'unavailable') && !str_contains($aiAnalysis, 'error'))
{{ $aiAnalysis }}
@else
AI Analysis Unavailable

{{ $aiAnalysis ?? 'Unable to generate AI recommendations at this time.' }}

@endif
@php $recommendations = []; if (!empty($aiAnalysis) && !str_contains($aiAnalysis, 'unavailable') && !str_contains($aiAnalysis, 'error')) { // Parse AI analysis for structured recommendations $lines = explode("\n", $aiAnalysis); $currentRec = null; foreach ($lines as $line) { $line = trim($line); if (preg_match('/^RECOMMENDATION (\d+):/', $line)) { if ($currentRec) $recommendations[] = $currentRec; $currentRec = ['number' => (int)preg_replace('/.*(\d+):.*/', '$1', $line)]; } elseif ($currentRec && strpos($line, ':') !== false) { [$key, $value] = array_map('trim', explode(':', $line, 2)); $currentRec[strtolower(str_replace(' ', '_', $key))] = $value; } } if ($currentRec) $recommendations[] = $currentRec; } @endphp @if(count($recommendations) > 0)
@foreach($recommendations as $index => $rec)
Recommendation {{ $rec['number'] ?? ($index + 1) }}
{{ $rec['action'] ?? 'BUY' }}

{{ $rec['ticker'] ?? 'N/A' }}

{{ $rec['type'] ?? 'STOCK' }}
@if(isset($rec['shares']) || isset($rec['contracts']))
{{ $rec['shares'] ?? $rec['contracts'] ?? 'N/A' }}
{{ isset($rec['shares']) ? 'Shares' : 'Contracts' }}
@endif @if(isset($rec['cost_estimate']))
${{ number_format((float)str_replace(['$', ','], '', $rec['cost_estimate'])) }}
Cost Est.
@endif @if(isset($rec['target_return']))
{{ $rec['target_return'] }}%
Target Return
@endif @if(isset($rec['strike']))
${{ $rec['strike'] }}
Strike Price
@endif
@if(isset($rec['confidence'])) {{ $rec['confidence'] }} Confidence @endif @if(isset($rec['risk'])) {{ $rec['risk'] }} Risk @endif
@if(isset($rec['reasoning']))
Analysis

{{ $rec['reasoning'] }}

@endif @if(isset($rec['trigger_event']))
Trigger

{{ $rec['trigger_event'] }}

@endif
@endforeach
@endif
Back to Investment Advisor Hub