settings(); $this->customer_levels(); } public function settings() { $settings = [ // general ['key' => 'OPEN_WEBSITE_NAME', 'value' => 'Welcome to Voucher App', 'type' => 'text'], ['key' => 'SHARE_TEXT', 'value' => '
Baru Beli Voucher nih
', 'type' => 'text'], // affilate ['key' => 'AFFILATE_ENABLED', 'value' => '0', 'type' => 'checkbox'], ['key' => 'AFFILATE_POIN_AMOUNT', 'value' => '0', 'type' => 'text'], ['key' => 'AFFILATE_DOWNLINE_POIN_AMOUNT', 'value' => '0', 'type' => 'text'], ['key' => 'AFFILATE_SHARE_REFFERAL_CODE', 'value' => 'Yuk daftar dapatkan bonus poin', 'type' => 'text'], ['key' => 'AFFILATE_ALLOWED_LEVELS', 'value' => json_encode([]), 'type' => 'json'], // midtrans ['key' => 'MIDTRANS_SERVER_KEY', 'value' => 'SB-Mid-server-UA0LQbY4aALV0CfLLX1v7xs8', 'type' => 'text'], ['key' => 'MIDTRANS_CLIENT_KEY', 'value' => 'SB-Mid-client-xqqkspzoZOM10iUG', 'type' => 'text'], ['key' => 'MIDTRANS_MERCHANT_ID', 'value' => 'G561244367', 'type' => 'text'], ['key' => 'MIDTRANS_LOGO', 'value' => 'sample/midtrans_logo.png', 'type' => 'image'], ['key' => 'MIDTRANS_ENABLED', 'value' => '1', 'type' => 'text'], ['key' => 'MIDTRANS_ADMIN_FEE', 'value' => '2500', 'type' => 'text'], // deposit ['key' => 'ENABLE_CASH_DEPOSIT', 'value' => '1', 'type' => 'text'], // deposit by location (on/off) ['key' => 'TEXT_CASH_DEPOSIT', 'value' => 'Setor Tunai di Kantor WBB', 'type' => 'text'], ['key' => 'ADMINFEE_CASH_DEPOSIT', 'value' => '1000', 'type' => 'text'], ['key' => 'ENABLE_MANUAL_TRANSFER', 'value' => '1', 'type' => 'text'], // transfer manual (on/off) ['key' => 'ADMINFEE_MANUAL_TRANSFER', 'value' => '2500', 'type' => 'text'], ['key' => 'MAX_MANUAL_TRANSFER_TIMEOUT', 'value' => '2', 'type' => 'text'], // dalam jam ['key' => 'MANUAL_TRANSFER_OPEN_HOUR', 'value' => '00:00', 'type' => 'text'], ['key' => 'MANUAL_TRANSFER_CLOSE_HOUR', 'value' => '23:59', 'type' => 'text'], ['key' => 'MAX_POINT_EXPIRED', 'value' => '90', 'type' => 'text'], //dalam hari ]; foreach ($settings as $setting) { Setting::create($setting); } } public function customer_levels() { $levels = [ [ 'name' => 'Basic', 'key' => 'basic', 'logo' => 'sample/basic.png', 'description' => 'Level Ini Basic
deskripsi berikut menjelaskan tentang level
ini adalah sample deskripsi :
1. contoh 1
2. contoh 2
', 'min_amount' => '100000', 'max_amount' => '500000', ], [ 'name' => 'Silver', 'key' => 'silver', 'logo' => 'sample/silver.png', 'description' => '
Level Ini Silver
deskripsi berikut menjelaskan tentang level
ini adalah sample deskripsi :
1. contoh 1
2. contoh 2
', 'min_amount' => '100000', 'max_amount' => '1000000', ], [ 'name' => 'Gold', 'key' => 'gold', 'logo' => 'sample/gold.png', 'description' => '
Level Ini Gold
deskripsi berikut menjelaskan tentang level
ini adalah sample deskripsi :
1. contoh 1
2. contoh 2
', 'min_amount' => '100000', 'max_amount' => '2000000', ], [ 'name' => 'Platinum', 'key' => 'platinum', 'logo' => 'sample/platinum.png', 'description' => '
Level Ini Platinum
deskripsi berikut menjelaskan tentang level
ini adalah sample deskripsi :
1. contoh 1
2. contoh 2
', 'min_amount' => '100000', 'max_amount' => '3000000', ], ]; foreach ($levels as $level) { CustomerLevel::create($level); } } }