import glob

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

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

print("Done")
