@php $signNames = [ 'Koç', 'Boğa', 'İkizler', 'Yengeç', 'Aslan', 'Başak', 'Terazi', 'Akrep', 'Yay', 'Oğlak', 'Kova', 'Balık', ]; $essentialPlanets = $planets ?? ($strongPlanets ?? []); $rulershipPlanets = $rulershipPower['planets'] ?? []; $hasDominant = !empty($dominantPlanets); $hasSubsections = !empty($essentialPlanets) || !empty($rulershipPlanets); @endphp
@if (!$hasDominant && !$hasSubsections)
{{ t('dominant-planets-not-found') }}
@else @if ($hasDominant) {{-- İlk 3: Podium (Altın / Gümüş / Bronz) --}} {{--
@foreach (array_slice($dominantPlanets, 0, 3) as $i => $p) @php $rankColors = ['#D4AF37', '#A0A0A0', '#CD7F32']; $rankLabels = ['1.', '2.', '3.']; $rankColor = $rankColors[$i] ?? '#666'; @endphp
{{ $rankLabels[$i] }}
{{ $p['sym'] }}
{{ $p['name'] }}
{{ $p['score'] }} puan
{{ $signNames[$p['sign_idx']] ?? '?' }} {{ $p['house'] }}. Ev
@php $bd = $p['breakdown']; $total = max( 1, abs($bd['essential']) + abs($bd['accidental']) + abs($bd['aspectual']) + abs($bd['special']), ); @endphp
@if (($bd['essential'] ?? 0) > 0)
@endif @if (($bd['accidental'] ?? 0) > 0)
@endif @if (($bd['aspectual'] ?? 0) > 0)
@endif @if (($bd['special'] ?? 0) > 0)
@endif
Konum Ev Açılar Özel
@endforeach
--}} {{-- dominant-planets.blade.php içindeki podyum kısmı --}}
@foreach (array_slice($dominantPlanets, 0, 3) as $i => $p) @php // i=0 (1.lik), i=1 (2.lik), i=2 (3.lük) $rankConfigs = [ 0 => ['color' => '#D4AF37', 'label' => '1.', 'class' => 'rank-1', 'order' => 2], 1 => ['color' => '#A0A0A0', 'label' => '2.', 'class' => 'rank-2', 'order' => 1], 2 => ['color' => '#CD7F32', 'label' => '3.', 'class' => 'rank-3', 'order' => 3], ]; $config = $rankConfigs[$i]; @endphp
{{ $config['label'] }}
{{ $p['sym'] }}
{{ $p['name'] }}
{{ $p['score'] }} {{ t('point') }}
{{ $signNames[$p['sign_idx']] ?? '?' }} {{ $p['house'] }}. {{ t('house') }}
{{-- Mini breakdown bar --}} {{--
@php $bd = $p['breakdown']; $total = max( 1, abs($bd['essential']) + abs($bd['accidental']) + abs($bd['aspectual']) + abs($bd['special']), ); @endphp
@if (($bd['essential'] ?? 0) > 0)
@endif @if (($bd['accidental'] ?? 0) > 0)
@endif @if (($bd['aspectual'] ?? 0) > 0)
@endif @if (($bd['special'] ?? 0) > 0)
@endif
Konum Ev Açılar Özel
--}}
@endforeach
{{-- Detay kısmı --}} @if (!empty($dominantPlanets[0]['details']))
{{ $dominantPlanets[0]['name'] }}: {{ $dominantPlanets[0]['details'] }}
@endif {{-- Kalan gezegenler (4+): kompakt liste --}} @if (count($dominantPlanets) > 3)
@foreach (array_slice($dominantPlanets, 3) as $j => $p)
{{ $j + 4 }}.
{{ $p['sym'] }} {{ $p['name'] }}
{{ $p['score'] }}
@endforeach
@endif {{-- Açı sayısı notu + tablo butonu --}} @if (!empty($dominantPlanets[0]))
{{ t('most-active') }}: {{ $dominantPlanets[0]['name'] }} ({{ $dominantPlanets[0]['aspect_count'] }} açı)
@endif @endif {{-- ======================================================== Temel Asaletler & Terim Yöneticiliği Bölümü ======================================================== --}} @if ($hasSubsections)
{{-- 1. Temel Asaletler --}} @if (!empty($essentialPlanets))
{{ t('essential-dignities') }} {{ count($essentialPlanets) }} {{ t('planet') }}
@foreach ($essentialPlanets as $p)
{{ $p['sym'] ?? '' }}
{{ $p['name'] ?? '' }} @if (!empty($p['details'])) {{ $p['details'] }} @endif
{{ $p['score'] ?? 0 }} {{ t('point') }}
@endforeach
@endif {{-- 2. Terim Yöneticiliği --}} @if (!empty($rulershipPlanets))
{{ t('terminology-management') }} {{ ($rulershipPower['method'] ?? '') === 'modern' ? 'Modern' : 'Klasik' }}
@foreach ($rulershipPlanets as $idx => $planet) @php $basePlanet = collect($essentialPlanets)->firstWhere('name', $planet['planet_tr'] ?? ''); $iconColor = $basePlanet['color'] ?? '#6366f1'; $iconSym = $basePlanet['sym'] ?? ''; $maxPower = $rulershipPlanets[0]['rulership_power'] ?? 100; $percent = $maxPower > 0 ? (($planet['rulership_power'] ?? 0) / $maxPower * 100) : 0; @endphp
{{ $iconSym }}
{{ $planet['planet_tr'] ?? '' }}
{{ $planet['in_sign_name'] ?? '' }} • {{ $planet['in_house'] ?? '' }}. {{ t('house') }} @if (!empty($planet['rules_houses'])) •{{ t('manages') }}: @foreach ($planet['rules_houses'] as $houseNum) {{ $houseNum }} @endforeach @endif @if (isset($planet['dignity']) && $planet['dignity'] !== 'peregrine') {{ $planet['dignity_tr'] ?? '' }} @endif
{{ $planet['rulership_power'] ?? 0 }} {{ t('point') }}
@endforeach
@endif
@endif @endif
{{-- Detay tablo modalı --}} @if (!empty($dominantPlanets)) @endif