import glob
import re

files = glob.glob('resources/views/livewire/admin/**/*.blade.php', recursive=True)

for filepath in files:
    with open(filepath, 'r') as f:
        content = f.read()

    # Change justify-end to justify-start (so it sits on the left)
    content = content.replace('justify-end', 'justify-start')
    
    # Change animation class
    content = content.replace('animate-slide-in-right', 'animate-slide-in-left')
    
    # Change border-l to border-r
    content = content.replace('border-l border-slate-200', 'border-r border-slate-200')

    with open(filepath, 'w') as f:
        f.write(content)

print("Done")
