<?php
use Illuminate\Support\Facades\Blade;

require __DIR__ . '/../vendor/autoload.php';
$app = require_once __DIR__ . '/../bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();

$components = [
    'filament::form',
    'filament-panels::form',
    'filament-forms::form',
    'filament-schemas::form',
];

foreach ($components as $comp) {
    try {
        // Render a dummy template
        $html = Blade::render("<x-$comp wire:submit='save'>Test</x-$comp>");
        echo "SUCCESS: <x-$comp>\n";
    } catch (\Exception $e) {
        // Strip out stack trace for clean reading
        $msg = explode("\n", $e->getMessage())[0];
        echo "FAILED: <x-$comp> -> $msg\n";
    }
}
