@php $uid = $uid ?? 'planets'; $tabId = 'planetTabs_' . $uid; $tabContentId = 'planetTabsContent_' . $uid; $paneNatal = 'tab-natal-' . $uid; $paneHouses = 'tab-houses-' . $uid; $paneAsteroids = 'tab-asteroids-' . $uid; $paneFixedStars = 'tab-fixed-stars-' . $uid; $paneTransit = 'tab-transit-' . $uid; $paneAspects = 'tab-aspects-' . $uid; $btnNatal = 'tab-natal-btn-' . $uid; $btnHouses = 'tab-houses-btn-' . $uid; $btnAsteroids = 'tab-asteroids-btn-' . $uid; $btnFixedStars = 'tab-fixed-stars-btn-' . $uid; $btnTransit = 'tab-transit-btn-' . $uid; $btnAspects = 'tab-aspects-btn-' . $uid; $isPair = !empty($is_relationship_view) || !empty($is_dual_view) || !empty($is_pair); // mevcut tekli veriler $planetTable = $planetTable ?? []; $starCatalog = app(\App\Services\Chart\PlanetCatalog::class); $allStarKeys = array_merge($starCatalog->fixedStarKeys(), $starCatalog->extendedFixedStarKeys()); if (!empty($planetTable)) { $planetTable = array_values(array_filter($planetTable, function ($row) use ($allStarKeys) { $k = $row['key'] ?? ($row['name'] ?? ''); return !in_array($k, $allStarKeys, true); })); } $houseTable = $houseTable ?? []; $asteroidTable = $asteroidTable ?? []; $fixedStarConjunctions = $fixedStarConjunctions ?? []; $asteroidConjunctions = $asteroidConjunctions ?? []; $aspectGrid = $aspectGrid ?? []; $aspectCount = 0; if (!empty($aspectGrid['labels']) && !empty($aspectGrid['matrix'])) { $nLabels = count($aspectGrid['labels']); for ($i = 0; $i < $nLabels; $i++) { for ($j = 0; $j < $i; $j++) { if (!empty($aspectGrid['matrix'][$i][$j])) { $aspectCount++; } } } } // transit (global) $todayPlanetTable = $todayPlanetTable ?? []; $todayAsteroidTable = $todayAsteroidTable ?? []; $target_date = $target_date ?? request('target_date'); $target_time = $target_time ?? request('target_time'); // pair veriler (A/B) $personA = $personA ?? ($relationshipA ?? ($dualA ?? [])); $personB = $personB ?? ($relationshipB ?? ($dualB ?? [])); $aPlanetTable = $aPlanetTable ?? ($pairA['planetTable'] ?? []); $aHouseTable = $aHouseTable ?? ($pairA['houseTable'] ?? []); $aAstTable = $aAstTable ?? ($pairA['asteroidTable'] ?? []); $bPlanetTable = $bPlanetTable ?? ($pairB['planetTable'] ?? []); $bHouseTable = $bHouseTable ?? ($pairB['houseTable'] ?? []); $bAstTable = $bAstTable ?? ($pairB['asteroidTable'] ?? []); $nameA = $personA['title'] ?? 'A'; $nameB = $personB['title'] ?? 'B'; // ✅ ÇOKLU HARİTA: 3. ve 4. kişi (sadece varsa dolu gelir). $personC = $personC ?? ($relationshipC ?? null); $personD = $personD ?? ($relationshipD ?? null); $cPlanetTable = $cPlanetTable ?? ($pairC['planetTable'] ?? []); $cHouseTable = $cHouseTable ?? ($pairC['houseTable'] ?? []); $cAstTable = $cAstTable ?? ($pairC['asteroidTable'] ?? []); $dPlanetTable = $dPlanetTable ?? ($pairD['planetTable'] ?? []); $dHouseTable = $dHouseTable ?? ($pairD['houseTable'] ?? []); $dAstTable = $dAstTable ?? ($pairD['asteroidTable'] ?? []); $nameC = $personC['title'] ?? 'C'; $nameD = $personD['title'] ?? 'D'; @endphp @if ($isPair) @include('frontend.panel.tabs.planets-pair') @else {{-- ✅ TAB NAV --}} {{-- ✅ TAB CONTENT --}}
{{-- ✅ 1) Natal --}}
@foreach ($planetTable as $planet) @endforeach
{{ t('planet') }} {{ t('house') }} {{ t('sign') }} {{ t('degree') }} {{ t('speed') }}
@if (!empty($planet['planet_sym'])) {!! $planet['planet_sym'] !!} @endif {{ $planet['name'] }} @php $h = $planet['house'] ?? null; @endphp @if ($h) {{ $h }} Ev @else - @endif {!! $planet['sign'] !!} {{ $planet['sign_name'] ?? '' }} {{ $planet['deg_formatted'] }} @if (!empty($planet['is_retro'])) R @endif {{ $planet['speed'] }}
{{-- ✅ 2) Ev Girişleri --}}
{{ t('house-entries') }}
@foreach ($houseTable as $house) @endforeach
{{ t('house') }} {{ t('sign') }} {{ t('degree') }}
{{ $house['name'] }} {!! $house['sign'] !!} {{ $house['sign_name'] ?? '' }} {{ $house['deg_formatted'] }}
{{-- ✅ 3) Asteroidler --}}
@foreach ($asteroidTable as $ast) @endforeach
{{ t('asteroids') }} {{ t('sign') }} {{ t('degree') }} {{ t('speed') }}
@if (!empty($ast['planet_sym'])) {!! $ast['planet_sym'] !!} @endif {{ $ast['name'] ?? '-' }} {!! $ast['sign'] ?? '-' !!} {{ $ast['sign_name'] ?? '' }} {{ $ast['deg_formatted'] ?? '-' }} @if (!empty($ast['is_retro'])) R @endif {{ $ast['speed'] ?? '-' }}
{{-- ✅ Ekstra asteroid kavuşumları (genişletilmiş katalog, ~178 asteroid) --}}
Asteroid Kavuşumları @if (!empty($asteroidConjunctions)) {{ count($asteroidConjunctions) }} @endif
@forelse ($asteroidConjunctions as $conj) @php $ast = $conj['asteroid'] ?? []; $pl = $conj['planet'] ?? []; $orb = $conj['orb'] ?? 0; @endphp @empty @endforelse
{{ t('asteroids') }} {{ t('sign') }} {{ t('degree') }} {{ t('planet') }} Orb
@if (!empty($ast['sym'] ?? $ast['line_1_planet'] ?? null)) {!! $ast['sym'] ?? $ast['line_1_planet'] ?? '' !!} @endif {{ $ast['name'] ?? '-' }} {!! $ast['line_3_sign'] ?? '' !!} {{ $ast['sign_name'] ?? '' }} {{ $ast['line_2_degree'] ?? '' }} {{ $ast['line_4_min'] ?? '' }} @if (!empty($pl['sym'] ?? $pl['line_1_planet'] ?? null)) {!! $pl['sym'] ?? $pl['line_1_planet'] ?? '' !!} @endif {{ $pl['name'] ?? '-' }} {{ sprintf('%+.1f°', (float) $orb) }}
-
{{-- ✅ 3.5) Sabit Yıldızlar (kavuşumlar) --}}
@forelse ($fixedStarConjunctions as $conj) @php $star = $conj['star'] ?? []; $pl = $conj['planet'] ?? []; $orb = $conj['orb'] ?? 0; @endphp @empty @endforelse
{{ t('fixed-stars') }} {{ t('sign') }} {{ t('degree') }} {{ t('planet') }} Orb
@if (!empty($star['sym'] ?? $star['line_1_planet'] ?? null)) {!! $star['sym'] ?? $star['line_1_planet'] ?? '' !!} @endif {{ $star['name'] ?? '-' }} {!! $star['line_3_sign'] ?? '' !!} {{ $star['sign_name'] ?? '' }} {{ $star['line_2_degree'] ?? '' }} {{ $star['line_4_min'] ?? '' }} @if (!empty($pl['sym'] ?? $pl['line_1_planet'] ?? null)) {!! $pl['sym'] ?? $pl['line_1_planet'] ?? '' !!} @endif {{ $pl['name'] ?? '-' }} {{ sprintf('%+.1f°', (float) $orb) }}
-
{{-- ✅ 4) Transit (Bugün) --}}
@foreach ($todayPlanetTable as $planett) @endforeach
{{ t('planet') }} {{ t('sign') }} {{ t('degree') }} {{ t('speed') }}
{!! $planett['planet_sym'] !!} {{ $planett['name'] }} {!! $planett['sign'] !!} {{ $planett['sign_name'] ?? '' }} {{ $planett['deg_formatted'] }} @if (!empty($planett['is_retro'])) R @endif {{ $planett['speed'] }}
{{-- ✅ 6) Açı Listesi --}}
@if (!empty($aspectGrid) && (!empty($aspectGrid['matrix']) || !empty($aspectGrid['labels']))) @include('frontend.panel.tabs.aspect-pairs-table', [ 'aspectGrid' => $aspectGrid, 'planetData' => $planetData ?? ($planetTable ?? []), ]) @else
{{ t('angle-not-found', 'Açı listesi bulunamadı.') }}
@endif
@endif