<?php

use Spatie\LaravelSettings\Migrations\SettingsBlueprint;
use Spatie\LaravelSettings\Migrations\SettingsMigration;

return new class extends SettingsMigration
{
    public function up(): void
    {
        $this->migrator->inGroup('homepage', function (SettingsBlueprint $blueprint): void {
            // Delete old deal fields
            $blueprint->delete('deal_badge');
            $blueprint->delete('deal_title');
            $blueprint->delete('deal_description');
            $blueprint->delete('deal_cta_text');
            $blueprint->delete('deal_images');

            // Add new gallery fields
            $blueprint->add('gallery_badge', 'Galeri Kami');
            $blueprint->add('gallery_title', 'Koleksi Lookbook');
            $blueprint->add('gallery_description', 'Intip koleksi lookbook kami untuk inspirasi gaya sehari-hari. Padu padan batik modern dan daster yang nyaman untuk berbagai suasana.');
            $blueprint->add('gallery_images', [
                'https://images.unsplash.com/photo-1595777457583-95e059d581b8?w=800&auto=format&fit=crop&q=80',
                'https://images.unsplash.com/photo-1572804013309-59a88b7e92f1?w=800&auto=format&fit=crop&q=80',
                'https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80',
                'https://images.unsplash.com/photo-1539109136881-3be0616acf4b?w=800&auto=format&fit=crop&q=80',
                'https://images.unsplash.com/photo-1496747611176-843222e1e57c?w=800&auto=format&fit=crop&q=80',
                'https://images.unsplash.com/photo-1509631179647-0177331693ae?w=800&auto=format&fit=crop&q=80',
            ]);
        });
    }
};
