﻿import re

files = [
    r'resources\views\dashboard\super_admin.blade.php',
    r'resources\views\dashboard\marketing_admin.blade.php',
    r'resources\views\dashboard\spv.blade.php',
    r'resources\views\dashboard\spg.blade.php',
    r'resources\views\dashboard\manager.blade.php',
]

for filepath in files:
    with open(filepath, 'r', encoding='utf-8') as f:
        c = f.read()

    # Ganti div angka hardcoded -> pakai class stat-number
    c = re.sub(
        r'<div style="font-size:32px;font-weight:700">',
        '<div class="stat-number">',
        c
    )
    # Ganti div label hardcoded -> pakai class stat-label
    c = re.sub(
        r'<div style="font-size:13px;opacity:\.8">',
        '<div class="stat-label">',
        c
    )

    with open(filepath, 'w', encoding='utf-8') as f:
        f.write(c)
    print(f"Fixed: {filepath}")

print("Selesai!")
