import io

path = r'c:/xampp/htdocs/gaspay/petropay/app/Http/Controllers/UserDashboardController.php'
lines = io.open(path, encoding='utf-8').read().splitlines(keepends=True)

# Remove lines 61..68 (1-based) => indices 60..67 inclusive.
# Keep only the first ktpPhoto block comment, drop the duplicates.
drop = set(range(60, 68))
out = [l for i, l in enumerate(lines) if i not in drop]

io.open(path, 'w', encoding='utf-8').write(''.join(out))
print('REMOVED')
