@extends('admin.layout') @section('title', 'Gestión de Paquetes') @section('page-title', 'Paket Yönetimi') @section('content')

Paketler

Yapay zeka yorum ve chat paketlerini buradan yönetebilirsiniz. Fiyatlar dinamik olarak değiştirilebilir.

Paket Ekle
{{-- Sekme 1: Paket listesi --}}
@if($packages->count() > 0)
@foreach($packages as $package) @endforeach
Paket Kelime Birim fiyat (₺/kelime) Ek Fiyat (₺) Normal Fiyat İndirimli Fiyat Durum İşlemler
{{ $package->name }} {{ number_format($package->word_limit) }} kelime {{ number_format($package->word_unit_price ?? 0, 4, ',', '.') }} ₺ {{ number_format($package->extra_price ?? 0, 0, ',', '.') }} ₺ {{ number_format($package->price_normal, 0, ',', '.') }} ₺ {{ number_format($package->price_discounted, 0, ',', '.') }} ₺ @if($package->is_active) Aktif @else Pasif @endif
@csrf @method('DELETE')
@else

Henüz paket bulunmamaktadır.

İlk Paketi Oluştur
@endif
{{-- Sekme 2: Token ayarları --}}
{{-- Token ayarları --}}
Token Ayarları
@csrf
Yorum Başına Tüketilen Token

Bir yorum alındığında kullanıcının bakiyesinden düşülecek kelime sayısı.

Sabit Ücretli Özellikler (Token)

Rektifikasyon ve Seçim Astrolojisi sabit Token adedi ile; Horary ise güncel Token birim fiyatına göre TL karşılığı Token ile ücretlendirilir.

≈ {{ number_format((int) round(\App\Models\Setting::get('horary_price_tl', 110) / max(0.0001, \App\Models\Setting::get('chat_word_unit_price', 0.02))), 0, ',', '.') }} Token (güncel birim fiyata göre)
Kelime başı fiyat

{{ number_format(\App\Models\Setting::get('chat_word_unit_price', 0.02), 4, ',', '.') }} ₺

Natal yorum →

{{ number_format(\App\Models\Setting::get('comment_natal_chat_words_cost', 10000), 0, ',', '.') }} kelime

İlişki / Yıllık yorum

{{ number_format(\App\Models\Setting::get('comment_relationship_chat_words_cost', 15000), 0, ',', '.') }} / {{ number_format(\App\Models\Setting::get('comment_annual_chat_words_cost', 20000), 0, ',', '.') }} kelime

Rektifikasyon / Seçim Astrolojisi

{{ number_format(\App\Models\Setting::get('rectification_chat_words_cost', 14000), 0, ',', '.') }} / {{ number_format(\App\Models\Setting::get('electional_chat_words_cost', 14000), 0, ',', '.') }} Token

Horary

{{ number_format(\App\Models\Setting::get('horary_price_tl', 110), 0, ',', '.') }} ₺ ≈ {{ number_format((int) round(\App\Models\Setting::get('horary_price_tl', 110) / max(0.0001, \App\Models\Setting::get('chat_word_unit_price', 0.02))), 0, ',', '.') }} Token

{{-- Sekme 3: Abonelik Planları --}}
Planes de Suscripción (Duración, Paquete y Precios)
@csrf @php $plans = app(\App\Services\SubscriptionService::class)->getSubscriptionPlans(); $monthly = $plans['monthly']; $six = $plans['six_months']; $yearly = $plans['yearly']; @endphp {{-- Aylık --}}
Suscripción Mensual
{{-- 6 Aylık --}}
Suscripción 6 Meses
{{-- 12 Aylık --}}
Suscripción 12 Meses
Suscripción Mensual (Con Descuento)

{{ number_format($monthly['price_discounted'], 0, ',', '.') }} ₺

@if($monthly['package_id'])

Paket: {{ optional($packages->firstWhere('id', $monthly['package_id']))->name ?? '—' }}

@endif
Suscripción 6 Meses (Con Descuento)

{{ number_format($six['price_discounted'], 0, ',', '.') }} ₺

@if($six['package_id'])

Paket: {{ optional($packages->firstWhere('id', $six['package_id']))->name ?? '—' }}

@endif
Suscripción 12 Meses (Con Descuento)

{{ number_format($yearly['price_discounted'], 0, ',', '.') }} ₺

@if($yearly['package_id'])

Paket: {{ optional($packages->firstWhere('id', $yearly['package_id']))->name ?? '—' }}

@endif
{{-- Sekme: Tokensiz Abonelik Planları --}}
Planes de Suscripción sin Tokens (Duración y Precios)

Los usuarios que adquieren estos planes tienen acceso a todas las cartas e informes ilimitados como suscriptores normales, ama hiç Token hakkı almazlar. Yorum Al, Horary, Rektifikasyon, Seçim Astrolojisi ve AI Chat için ayrıca Token satın almaları gerekir.

@csrf @php $monthlyTokenless = $plans['monthly_tokenless']; $sixTokenless = $plans['six_months_tokenless']; $yearlyTokenless = $plans['yearly_tokenless']; @endphp {{-- Aylık --}}
Suscripción Mensual (Sin Tokens)
{{-- 6 Aylık --}}
Suscripción 6 Meses (Sin Tokens)
{{-- 12 Aylık --}}
Suscripción 12 Meses (Sin Tokens)
Suscripción Mensual (Sin Tokens, Con Descuento)

{{ number_format($monthlyTokenless['price_discounted'], 0, ',', '.') }} ₺

Suscripción 6 Meses (Sin Tokens, Con Descuento)

{{ number_format($sixTokenless['price_discounted'], 0, ',', '.') }} ₺

Suscripción 12 Meses (Sin Tokens, Con Descuento)

{{ number_format($yearlyTokenless['price_discounted'], 0, ',', '.') }} ₺

{{-- Sekme 4: Yorum Token Fiyatları (Natal / İlişki / Yıllık) --}}
@php $unitPrice = (float) \App\Models\Setting::get('chat_word_unit_price', 0.02); $natalWords = (int) \App\Models\Setting::get('comment_natal_chat_words_cost', 10000); $relWords = (int) \App\Models\Setting::get('comment_relationship_chat_words_cost', 15000); $annualWords = (int) \App\Models\Setting::get('comment_annual_chat_words_cost', 20000); $natalExtra = (float) \App\Models\Setting::get('comment_natal_extra_price', 0); $relExtra = (float) \App\Models\Setting::get('comment_relationship_extra_price', 0); $annualExtra = (float) \App\Models\Setting::get('comment_annual_extra_price', 0); @endphp
Yorum Token Fiyatları (Natal / İlişki / Yıllık)

Tekil yorum satış fiyatı = (kelime birim fiyat × kelime sayısı) + ek ücret. Örn. 0,01 × 10000 = 100 ₺, ek ücret 150 ₺ → toplam 250 ₺.

@csrf
Tüm yorum türlerinde kullanılır. (Örn: 0,01)
Yorum türü Kelime sayısı Ek ücret (TL) Toplam satış fiyatı (TL)
Natal yorum — ₺
İlişki yorumu — ₺
Yıllık yorum — ₺
Toplu İndirim Kampanyaları
Kampanyaları düzenleyebilir, aktif/pasif yapabilir veya yeniden uygulayabilirsiniz.
@php $tabLabelMap = [ 'packages' => 'Paketler', 'token' => 'Token', 'subscription' => 'Suscripción', 'comment_token' => 'Yorum Token Fiyatları', ]; @endphp @if(($bulkDiscounts ?? collect())->count() > 0)
@foreach(($bulkDiscounts ?? collect()) as $discount) @php $tabs = array_values((array) ($discount['tabs'] ?? [])); $isActive = !empty($discount['is_active']); @endphp @endforeach
Kampanya İndirim Sekmeler Durum Son Uygulama İşlemler
{{ $discount['name'] ?? 'Toplu İndirim' }}
{{ $discount['created_at'] ?? '-' }}
%{{ rtrim(rtrim(number_format((float) ($discount['discount_percent'] ?? 0), 2, '.', ''), '0'), '.') }}
@foreach($tabs as $tabKey) {{ $tabLabelMap[$tabKey] ?? $tabKey }} @endforeach
@if($isActive) Aktif @else Pasif @endif {{ $discount['last_applied_at'] ?? '-' }}
@csrf
@csrf
@csrf
@else
Henüz kayıtlı toplu indirim kampanyası bulunmuyor.
@endif
@endsection