<?php
/**
 * Setup Configuration
 *
 * @version     1.0.$Revision:$
 * @version     SVN: $Id:$
 * @package     bplan-base/globals
 * @subpackage  Config
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 * @copyright   Copyright (C) 2025, 2026 bplan-solutions GmbH & Co. KG <https://www.bplan-solutions.de/>
 * /Δ\
 */

$_laravelSubDir = (int) app()->version() >= 13 ? '/13' : '';

return [
    'locales' => [
        'bg',
        'de',
        'en',
        'es',
        'fr',
        'hu',
        'it',
        'lt',
        'lv',
        'pl',
        'ro',
        'ru',
        'tr',
        'uk',
    ],
    'publish' => [
        'always' => [
            'etc/setup/src/.editorconfig'                                                                 => '.editorconfig',
            'etc/setup/src/.gitignore'                                                                    => '.gitignore',
            'etc/setup/src/_ide_helper.php'                                                               => '_ide_helper.php',
            // 'etc/setup/src/app/Http/Controllers/.gitignore'                                               => 'app/Http/Controllers/.gitignore',
            'etc/setup/src/composer.local.json.in'                                                        => 'composer.local.json.in',
            // 'etc/setup/src/config/jsonapi.php'                                                            => 'config/jsonapi.php',
            'etc/setup/src/database/.gitignore'                                                           => 'database/.gitignore',
            'etc/setup/src/database/migrations/0000_01_01_000050.globals.create_settings_table.php'       => 'database/migrations/0000_01_01_000050.globals.create_settings_table.php',
            'etc/setup/src/database/migrations/0001_01_01_000000_create_users_table.php'                  => 'database/migrations/0001_01_01_000000_create_users_table.php',
            'etc/setup/src/database/migrations/0001_01_01_000002_create_personal_access_tokens_table.php' => 'database/migrations/0001_01_01_000002_create_personal_access_tokens_table.php',
            'etc/setup/src/resources/js/dark-switch.js'                                                   => 'resources/js/dark-switch.js',

            // 'etc/setup/src/missing.txt' => 'missing.txt',
        ],
        'once' => [
            'etc/setup/src/.editorconfig'                                                                    => '.editorconfig',
            'etc/setup/src'.$_laravelSubDir.'/tailwind.config.js'                                            => 'tailwind.config.js',
            'etc/setup/src'.$_laravelSubDir.'/package.json'                                                  => 'package.json',
            'etc/setup/src/app/Exceptions/Handler.php'                                                       => 'app/Exceptions/Handler.php',
            'etc/setup/src/app/Http/Controllers/Controller.php'                                              => 'app/Http/Controllers/Controller.php',
            'etc/setup/src/app/Http/Controllers/SettingController.php'                                       => 'app/Http/Controllers/SettingController.php',
            'etc/setup/src/app/Http/Requests/StoreSettingRequest.php'                                        => 'app/Http/Requests/StoreSettingRequest.php',
            'etc/setup/src/app/Http/Requests/UpdateSettingRequest.php'                                       => 'app/Http/Requests/UpdateSettingRequest.php',
            'etc/setup/src/app/JsonApi/Data/Settings/SettingRequest.php'                                     => 'app/JsonApi/Data/Settings/SettingRequest.php',
            'etc/setup/src/app/JsonApi/Data/Settings/SettingSchema.php'                                      => 'app/JsonApi/Data/Settings/SettingSchema.php',
            'etc/setup/src/app/JsonApi/Terminal/Settings/SettingRequest.php'                                 => 'app/JsonApi/Terminal/Settings/SettingRequest.php',
            'etc/setup/src/app/JsonApi/Terminal/Settings/SettingSchema.php'                                  => 'app/JsonApi/Terminal/Settings/SettingSchema.php',
            // 'etc/setup/src/app/Models/Setting.php'                                                           => 'app/Models/Setting.php',
            'etc/setup/src/app/Models/User.php'                                                              => 'app/Models/User.php',
            // 'etc/setup/src/app/Policies/SettingPolicy.php'                                                   => 'app/Policies/SettingPolicy.php',
            'etc/setup/src/app/Providers'.$_laravelSubDir.'/AppServiceProvider.php'                          => 'app/Providers/AppServiceProvider.php',
            'etc/setup/src/app/Repositories/IndexCollectionRepository.php'                                   => 'app/Repositories/IndexCollectionRepository.php',
            'etc/setup/src/app/Repositories/SettingRepository.php'                                           => 'app/Repositories/SettingRepository.php',
            // 'etc/setup/src/app/Services/SettingService.php'                                                  => 'app/Services/SettingService.php',
            'etc/setup/src/app/View/Components/AppLayout.php'                                                => 'app/View/Components/AppLayout.php',
            'etc/setup/src/bootstrap'.$_laravelSubDir.'/app.php'                                             => 'bootstrap/app.php',
            'etc/setup/src/config'.$_laravelSubDir.'/app.php'                                                => 'config/app.php',
            'etc/setup/src/config'.$_laravelSubDir.'/database.php'                                           => 'config/database.php',
            'etc/setup/src/config/multitenancy.php'                                                          => 'config/multitenancy.php',
            'etc/setup/src/config'.$_laravelSubDir.'/tailwind-content.json'                                  => 'config/tailwind-content.json',
            'etc/setup/src/database/seeders/DatabaseSeeder.php'                                              => 'database/seeders/DatabaseSeeder.php',
            'etc/setup/src/database/seeders/Dev/DevEnvSeeder.php'                                            => 'database/seeders/Dev/DevEnvSeeder.php',
            'etc/setup/src/etc/.gitignore'                                                                   => 'etc/.gitignore',
            'etc/setup/src/etc/setup/.gitignore'                                                             => 'etc/setup/.gitignore',
            'etc/setup/src/etc/setup/globals.php'                                                            => 'etc/setup/globals.php',
            // @todo    Doppelter Schlüssel. Als Wert sollte ein Array ermöglicht werden, damit mehrere Zielpfade erfasst werden können.
            // 'etc/setup/src/public/img/core/favicon.ico'                                                      => ['public/favicon.ico', 'public/img/core/favicon.ico'],
            // 'etc/setup/src/public/img/core/favicon.ico'                                                      => 'public/favicon.ico',
            'etc/setup/src/public/img/core/favicon.ico'                                                      => 'public/img/core/favicon.ico',
            'etc/setup/src/public/img/core/favicon-32.png'                                                   => 'public/img/core/favicon-32.png',
            'etc/setup/src/public/img/core/favicon-192.png'                                                  => 'public/img/core/favicon-192.png',
            'etc/setup/src/resources/js/app.js'                                                              => 'resources/js/app.js',
            'etc/setup/src/resources/views/components/application-mark.blade.php'                            => 'resources/views/components/application-mark.blade.php',
            'etc/setup/src/resources/views/components/authentication-card-logo.blade.php'                    => 'resources/views/components/authentication-card-logo.blade.php',
            'etc/setup/src/resources/views/layouts/app.blade.php'                                            => 'resources/views/layouts/app.blade.php',
            'etc/setup/src/resources/views/layouts/guest.blade.php'                                          => 'resources/views/layouts/guest.blade.php',
            'etc/setup/src/routes/api.php'                                                                   => 'routes/api.php',
            'etc/setup/src/routes/web.php'                                                                   => 'routes/web.php',

            'etc/setup/src/config/project.php'                                                               => 'config/project.php',
        ],
    ],

];
