@echo off
echo Fixing all show.blade.php files - Removing mt-1 divs...
echo.

REM Use PowerShell to replace mt-1 divs in all show.blade.php files
powershell -Command "$files = Get-ChildItem -Path 'resources\views' -Filter 'show.blade.php' -Recurse; foreach ($file in $files) { $content = Get-Content $file.FullName -Raw; $content = $content -replace '<div class=\""mt-1\"">([^<]+)</div>', '<p class=\""mb-0\"">$1</p>'; $content = $content -replace '<div class=\""mt-1\"">(\s*<span[^>]*>.*?</span>\s*)</div>', '$1'; $content = $content -replace '<div class=\""mt-1\"">(\s*@if.*?@endif\s*)</div>', '$1'; Set-Content $file.FullName -Value $content -NoNewline; Write-Host \"Fixed: $($file.FullName)\"; }"

echo.
echo Done! All show.blade.php files have been updated.
pause
