Files
animexe/database/seeders/AchievementSeeder.php
2026-07-14 00:01:48 +03:00

33 lines
3.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Database\Seeders;
use App\Models\Achievement;
use Illuminate\Database\Seeder;
class AchievementSeeder extends Seeder
{
public function run(): void
{
$achievements = [
['key'=>'first_login', 'title'=>'Hoş Geldin!', 'description'=>'İlk kez giriş yaptın', 'icon'=>'bi-door-open', 'color'=>'#79c0ff', 'condition_type'=>'first_login', 'condition_value'=>1],
['key'=>'ep_1', 'title'=>'İzlemeye Başladım', 'description'=>'İlk bölümü %70 izledin', 'icon'=>'bi-play-circle', 'color'=>'#3fb950', 'condition_type'=>'episodes_watched', 'condition_value'=>1],
['key'=>'ep_10', 'title'=>'Anime Meraklısı', 'description'=>'10 bölüm izledin', 'icon'=>'bi-collection-play', 'color'=>'#3fb950', 'condition_type'=>'episodes_watched', 'condition_value'=>10],
['key'=>'ep_50', 'title'=>'Gerçek Otaku', 'description'=>'50 bölüm izledin', 'icon'=>'bi-trophy', 'color'=>'#f0883e', 'condition_type'=>'episodes_watched', 'condition_value'=>50],
['key'=>'ep_100', 'title'=>'Efsane İzleyici', 'description'=>'100 bölüm izledin', 'icon'=>'bi-trophy-fill', 'color'=>'#ffd700', 'condition_type'=>'episodes_watched', 'condition_value'=>100],
['key'=>'ep_500', 'title'=>'Ölümsüz Otaku', 'description'=>'500 bölüm izledin', 'icon'=>'bi-stars', 'color'=>'#a371f7', 'condition_type'=>'episodes_watched', 'condition_value'=>500],
['key'=>'hours_10', 'title'=>'10 Saatlik Mara', 'description'=>'10 saat anime izledin', 'icon'=>'bi-clock-fill', 'color'=>'#79c0ff', 'condition_type'=>'hours_watched', 'condition_value'=>10],
['key'=>'hours_100', 'title'=>'100 Saat Kulübü', 'description'=>'100 saat anime izledin', 'icon'=>'bi-alarm-fill', 'color'=>'#e84393', 'condition_type'=>'hours_watched', 'condition_value'=>100],
['key'=>'watchlist_5', 'title'=>'Listeci', 'description'=>'5 anime listeye ekledin', 'icon'=>'bi-bookmark-fill', 'color'=>'#79c0ff', 'condition_type'=>'watchlist_count', 'condition_value'=>5],
['key'=>'watchlist_20', 'title'=>'Liste Ustası', 'description'=>'20 anime listeye ekledin', 'icon'=>'bi-bookmarks-fill', 'color'=>'#a371f7', 'condition_type'=>'watchlist_count', 'condition_value'=>20],
['key'=>'rated_1', 'title'=>'Eleştirmen', 'description'=>'İlk anime puanını verdin', 'icon'=>'bi-star-fill', 'color'=>'#ffd700', 'condition_type'=>'anime_rated', 'condition_value'=>1],
['key'=>'rated_10', 'title'=>'Puan Makinesi', 'description'=>'10 animei puanladın', 'icon'=>'bi-star-half', 'color'=>'#ffd700', 'condition_type'=>'anime_rated', 'condition_value'=>10],
['key'=>'request_1', 'title'=>'Talep Eden', 'description'=>'Anime isteği gönderdin', 'icon'=>'bi-plus-circle-fill','color'=>'#3fb950', 'condition_type'=>'request_sent', 'condition_value'=>1],
];
foreach ($achievements as $ach) {
Achievement::firstOrCreate(['key' => $ach['key']], $ach);
}
}
}