@props([ 'agent' => null, 'href' => '#', ]) @php $type = $agent?->agentType?->name ?? 'sales'; $accent = match ($type) { 'sales' => ['bg' => 'bg-success-fill', 'text' => 'text-success-text'], 'marketing' => ['bg' => 'bg-info-fill', 'text' => 'text-info-text'], 'lead_gen' => ['bg' => 'bg-warning-fill', 'text' => 'text-warning-text'], default => ['bg' => 'bg-neutral-fill', 'text' => 'text-neutral-text'], }; @endphp merge([ 'class' => 'block bg-surface border border-border rounded-lg p-5 hover:border-border-strong transition-colors', ]) }}>
{{ strtoupper(substr($type, 0, 1)) }}
{{ $agent?->name ?? 'Agent' }}
{{ $agent?->agentType?->display_name ?? '' }}
${{ number_format((float) ($agent?->spend_today_usd ?? 0), 4) }} / ${{ number_format((float) ($agent?->token_budget_daily_usd ?? 0), 2) }} today {{ $agent?->runs()?->count() ?? 0 }} runs