<?php
 namespace Database\Seeders; use App\Models\Setting; use Illuminate\Database\Seeder; class SupportSettingsSeeder extends Seeder { public function run(): void { $settings = [ 'ticket_number_prefix' => 'TKT', 'ticket_number_format' => '{prefix}{number}', 'ticket_number_padding' => 6, 'ticket_number_counter' => 1000, 'auto_assign_tickets' => true, 'auto_assign_department_based' => true, 'auto_assign_load_balancing' => true, 'notify_assigned_staff' => true, 'notify_client_on_ticket_reply' => true, 'notify_client_on_status_change' => true, 'notify_staff_on_new_ticket' => true, 'notify_staff_on_client_reply' => true, 'business_hours_enabled' => true, 'business_hours' => json_encode([ 'work_days' => ['monday', 'tuesday', 'wednesday', 'thursday', 'friday'], 'start' => '09:00', 'end' => '18:00', ]), 'support_timezone' => 'Europe/Istanbul', 'auto_response_on_new_ticket' => true, 'auto_response_on_ticket_close' => true, 'auto_close_inactive_tickets' => true, 'auto_close_inactive_days' => 7, 'ticket_rating_reminder_days' => 3, 'sla_enabled' => true, 'sla_default_response_hours' => 24, 'sla_default_resolution_hours' => 72, 'sla_business_hours_only' => true, 'allow_client_ticket_attachments' => true, 'ticket_client_priority_mode' => 'required', 'chat_enabled' => true, 'chat_position' => 'bottom-right', 'chat_guest_enabled' => true, 'chat_rating_enabled' => true, 'chat_agent_display_name' => 'Destek', ]; foreach ($settings as $key => $value) { Setting::updateOrCreate( ['key' => $key], [ 'group' => 'support', 'value' => $value, ] ); } } } 