first(); if (Setting::where('created_by', $admin->id)->exists()) { return; } $admin_settings = [ // Brand Settings 'logo_light' => 'logo_light.png', 'logo_dark' => 'logo_dark.png', 'favicon' => 'favicon.png', 'titleText' => !empty(env('APP_NAME')) ? env('APP_NAME') : 'WorkDo Dash', 'footerText' => 'Copyright © ' . (!empty(env('APP_NAME')) ? env('APP_NAME') : 'WorkDo Dash'), 'sidebarVariant' => 'inset', 'sidebarStyle' => 'plain', 'layoutDirection' => 'ltr', 'themeMode' => 'light', 'themeColor' => 'green', 'customColor' => '#10b981', // System Settings 'defaultLanguage' => 'en', 'dateFormat' => 'Y-m-d', 'timeFormat' => 'H:i', 'calendarStartDay' => '0', 'enableRegistration' => 'on', 'enableEmailVerification' => 'off', 'landingPageEnabled' => 'on', 'termsConditionsUrl' => '', // Currency Settings 'defaultCurrency' => 'USD', 'currencySymbol' => '$', 'currency_format' => '2', 'decimalFormat' => '2', 'decimalSeparator' => '.', 'thousandsSeparator' => ',', 'floatNumber' => '1', 'currencySymbolSpace' => '0', 'currencySymbolPosition' => 'left', // SEO Settings 'metaKeywords' => 'workdo, dashboard, admin, panel, management', 'metaTitle' => !empty(env('APP_NAME')) ? env('APP_NAME') . ' - Dashboard' : 'WorkDo Dash - Dashboard', 'metaDescription' => 'Modern dashboard and management system built with Laravel and React', 'metaImage' => 'meta_image.png', // Cookie Settings 'enableCookiePopup' => '1', 'enableLogging' => '0', 'strictlyNecessaryCookies' => '1', 'cookieTitle' => 'Cookie Consent', 'strictlyCookieTitle' => 'Strictly Necessary Cookies', 'cookieDescription' => 'We use cookies to enhance your browsing experience and provide personalized content.', 'strictlyCookieDescription' => 'These cookies are essential for the website to function properly.', 'contactUsDescription' => 'If you have any questions about our cookie policy, please contact us.', 'contactUsUrl' => 'https://example.com/contact', // storage Settings 'storageType' => 'local', 'allowedFileTypes' => 'jpg,png,webp,gif,jpeg,pdf', 'maxUploadSize' => '2048', ]; foreach($admin_settings as $key => $value){ Setting::firstOrCreate( ['key' => $key, 'created_by' => $admin->id], ['value' => $value] ); } Artisan::call('cache:clear'); } }