{{ \$card['title'] }}
{{ \$card['subtitle'] }}
{{ \$card['status'] }} @if (filled(\$card['summary'] ?? null))

{{ \$card['summary'] }}

@endif @if (filled(\$card['actionUrl'] ?? null))
{{ \$card['actionLabel'] ?? 'View' }}
@endif SEARCH; $replace = <<
{{ \$card['title'] }}
{{ \$card['status'] }}
{{ \$card['status'] }}

{{ \$card['body'] }}

@if (filled(\$card['actionLabel'] ?? null))
@if (filled(\$card['actionUrl'] ?? null)) {{ \$card['actionLabel'] }} @else {{ \$card['actionLabel'] }} @endif
@endif REPLACE; $newContent = str_replace($search, $replace, $content); file_put_contents('/Users/ahmeddarrazi/Documents/projects/wt-plattform/apps/platform/resources/views/filament/widgets/dashboard/tenant-dashboard-overview.blade.php', $newContent); echo "Replaced readiness card\n";