from pathlib import Path
import re
root = Path('/home/ubuntu/clinic-management/resources/views')
for path in sorted(root.glob('*.blade.php')):
    text = path.read_text(encoding='utf-8')
    matches = sorted(set(re.findall(r'[^\n<>{}]*[\u0600-\u06ff][^\n<>{}]*', text)))
    if matches:
        print(f'[{path.name}]')
        for item in matches[:80]:
            print(item.strip()[:180])
        print()
