﻿file = r'app\Exports\PanelTestExport.php'
with open(file, 'r', encoding='utf-8', errors='replace') as f:
    c = f.read()

# Cari panggilan pageHeader di sheet4_data
idx = c.find('sheet4_data')
print(repr(c[idx:idx+100]))

# Cari pageHeader call di sheet4
import re
matches = list(re.finditer(r'this->pageHeader\(', c))
for m in matches:
    print(f"pos {m.start()}: {repr(c[m.start():m.start()+80])}")
