@extends('frontend.main_master') @section('body-class', 'panel-page panel-scrollable') @section('content')
{{-- ÜST BAR --}}

{{ t('my-maps') }}

{{ t('my-maps-desc') }}
{{-- Arama + Filtre --}}
{{-- ✅ NORMAL HARİTALAR --}}
{{ t('natal-chart') }} {{ $charts->count() ?? 0 }}
{{ t('maps-desc') }}
@forelse($charts as $c) @php $timeQ = $c->birth_time ? substr($c->birth_time, 0, 5) : '12:00'; $latQ = $c->birthPlace?->latitude ?? 40.4168; $lonQ = $c->birthPlace?->longitude ?? -3.7038; $cityQ = $c->birthPlace?->ascii_name ?? ($c->birthPlace?->name ?? 'Desconocido'); $sysCode = $c->house_system ?? 'P'; $hsQ = $houseSystems[$sysCode] ?? 'Placidus'; $title = $c->title ?? ($c->birthPlace?->ascii_name ?? 'Carta Natal'); $dateStr = $c->birth_date?->format('d.m.Y'); $timeStr = $c->birth_time ? substr($c->birth_time, 0, 5) : 'Hora desconocida'; $cc = $c->birthPlace?->country_code ?? ''; $ccQ = $c->birthPlace?->country_code ?? 'ES'; $tzQ = $c->birthPlace?->timezone ?? 'Europe/Madrid'; @endphp
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($title) }}
{{ $dateStr }} {{ $timeStr }} {{ $hsQ }}
{{ $cityQ }} @if ($cc) {{ $cc }} @endif
@csrf @method('DELETE')
@empty
{{ t('no-maps-yet') }}
{{ t('create-first-map-with-new-chart') }}
@endforelse
{{-- ✅ İLİŞKİLER --}}
{{ t('relationship-maps') }} {{ $relationships->count() ?? 0 }}
{{ t('relationship-maps-desc') }}
@forelse(($relationships ?? collect()) as $rel) @php $a = $rel->chartA; $b = $rel->chartB; $aTitle = $a->title ?? t('person') . ' #1'; $bTitle = $b->title ?? t('person') . ' #2'; $aCity = $a->birthPlace?->ascii_name ?? ($a->birthPlace?->name ?? 'Desconocido'); $bCity = $b->birthPlace?->ascii_name ?? ($b->birthPlace?->name ?? 'Desconocido'); $relTitle = $rel->title ?? t('relationship-analysis'); $sysCode = $rel->house_system ?? ($a->house_system ?? 'P'); $hsQ = $houseSystems[$sysCode] ?? 'Placidus'; $aDateQ = optional($a->birth_date)->format('Y-m-d'); $aTimeQ = $a->birth_time ? substr($a->birth_time, 0, 5) : '12:00'; $aLatQ = (float) ($a->birthPlace?->latitude ?? 40.4168); $aLonQ = (float) ($a->birthPlace?->longitude ?? -3.7038); $aCcQ = $a->birthPlace?->country_code ?? 'ES'; $aTzQ = $a->birthPlace?->timezone ?? 'Europe/Madrid'; $bDateQ = optional($b->birth_date)->format('Y-m-d'); $bTimeQ = $b->birth_time ? substr($b->birth_time, 0, 5) : '12:00'; $bLatQ = (float) ($b->birthPlace?->latitude ?? 40.4168); $bLonQ = (float) ($b->birthPlace?->longitude ?? -3.7038); $bCcQ = $b->birthPlace?->country_code ?? 'ES'; $bTzQ = $b->birthPlace?->timezone ?? 'Europe/Madrid'; $qs = [ 'date' => $aDateQ, 'time' => $aTimeQ, 'lat' => $aLatQ, 'lon' => $aLonQ, 'city' => $aCity, 'country_code' => $aCcQ, 'timezone' => $aTzQ, 'house_system' => $hsQ, 'title' => $aTitle, 'rel_date' => $bDateQ, 'rel_time' => $bTimeQ, 'rel_lat' => $bLatQ, 'rel_lon' => $bLonQ, 'rel_city' => $bCity, 'rel_country_code' => $bCcQ, 'rel_timezone' => $bTzQ, 'rel_title' => $bTitle, ]; // ✅ Uranyen ilişki dial'ı olarak kaydedildiyse dial görünümüyle açılır if (($rel->chart_layout ?? 'natal') === 'uranian') { $qs['rel_chart_layout'] = 'uranian'; $qs['rel_dial_degree'] = (int) ($rel->dial_degree ?? 90); } @endphp
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($relTitle) }}
{{ t('relationship-map') }}
{{ $hsQ }} {{ $aDateQ }} / {{ $bDateQ }}
A
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($aTitle) }}
{{ $aCity }}
B
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($bTitle) }}
{{ $bCity }}
@csrf @method('DELETE')
@empty
{{ t('no-relationship-maps-yet') }}
{{ t('create-relationship-map-with-relationship-analysis') }}
@endforelse
{{-- ✅ İKİLİ HARİTALAR --}}
{{ t('multiple-maps') }} {{ $duals->count() ?? 0 }}
{{ t('multiple-maps-desc') }}
@forelse(($duals ?? collect()) as $dual) @php $a = $dual->chartA; $b = $dual->chartB; $aTitle = $a->title ?? t('person') . ' #1'; $bTitle = $b->title ?? t('person') . ' #2'; $aCity = $a->birthPlace?->ascii_name ?? ($a->birthPlace?->name ?? 'Desconocido'); $bCity = $b->birthPlace?->ascii_name ?? ($b->birthPlace?->name ?? 'Desconocido'); $dualTitle = $dual->title ?? 'Carta Múltiple'; $aTitle = $a->title ?? t('person') . ' #1'; $bTitle = $b->title ?? t('person') . ' #2'; $sysCode = $dual->house_system ?? ($a->house_system ?? 'P'); $hsQ = $houseSystems[$sysCode] ?? 'Placidus'; // ✅ ÇOKLU HARİTA: 3. ve 4. kişi (C, D) opsiyonel. $c = $dual->chartC; $d = $dual->chartD; $cTitle = $c ? ($c->title ?? t('person') . ' #3') : null; $dTitle = $d ? ($d->title ?? t('person') . ' #4') : null; $cCity = $c ? ($c->birthPlace?->ascii_name ?? ($c->birthPlace?->name ?? 'Desconocido')) : null; $dCity = $d ? ($d->birthPlace?->ascii_name ?? ($d->birthPlace?->name ?? 'Desconocido')) : null; $searchExtra = trim(($cTitle ?? '') . ' ' . ($cCity ?? '') . ' ' . ($dTitle ?? '') . ' ' . ($dCity ?? '')); @endphp
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($dualTitle) }}
Múltiple
{{ $hsQ }} {{ optional($a->birth_date)->format('Y-m-d') }} / {{ optional($b->birth_date)->format('Y-m-d') }}
A
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($aTitle) }}
{{ $aCity }}
B
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($bTitle) }}
{{ $bCity }}
{{-- ✅ ÇOKLU HARİTA: 3. ve 4. kişi (sadece kayıtlıysa gösterilir) --}} @if ($c)
C
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($cTitle) }}
{{ $cCity }}
@endif @if ($d)
D
{{ \App\Helpers\UserHelper::decodeTitleForDisplay($dTitle) }}
{{ $dCity }}
@endif
@csrf @method('DELETE')
@php $aDateQ = optional($a->birth_date)->format('Y-m-d'); $aTimeQ = $a->birth_time ? substr($a->birth_time, 0, 5) : '12:00'; $aLatQ = (float) ($a->birthPlace?->latitude ?? 41.0082); $aLonQ = (float) ($a->birthPlace?->longitude ?? 28.9784); $aCcQ = $a->birthPlace?->country_code ?? 'TR'; $aTzQ = $a->birthPlace?->timezone ?? 'Europe/Istanbul'; $bDateQ = optional($b->birth_date)->format('Y-m-d'); $bTimeQ = $b->birth_time ? substr($b->birth_time, 0, 5) : '12:00'; $bLatQ = (float) ($b->birthPlace?->latitude ?? 41.0082); $bLonQ = (float) ($b->birthPlace?->longitude ?? 28.9784); $bCcQ = $b->birthPlace?->country_code ?? 'TR'; $bTzQ = $b->birthPlace?->timezone ?? 'Europe/Istanbul'; $qsDual = [ // A (base) 'date' => $aDateQ, 'time' => $aTimeQ, 'lat' => $aLatQ, 'lon' => $aLonQ, 'city' => $aCity, 'country_code' => $aCcQ, 'timezone' => $aTzQ, 'house_system' => $hsQ, 'title' => $aTitle, // B (overlay) → relationship ile aynı key’leri kullan (ChartPageBuilder zaten rel bekliyor) 'rel_date' => $bDateQ, 'rel_time' => $bTimeQ, 'rel_lat' => $bLatQ, 'rel_lon' => $bLonQ, 'rel_city' => $bCity, 'rel_country_code' => $bCcQ, 'rel_timezone' => $bTzQ, 'rel_title' => $bTitle, // ✅ İstersen view’de “bu ikiliydi” diye ayırt etmek için (opsiyonel) 'dual_view' => 1, 'dual_id' => $dual->id, ]; // ✅ ÇOKLU HARİTA: 3. ve 4. kişi (C, D) — sadece kayıtta varsa eklenir. if ($dual->chartC) { $c = $dual->chartC; $cCity = $c->birthPlace?->ascii_name ?? ($c->birthPlace?->name ?? 'Desconocido'); $qsDual['rel2_date'] = optional($c->birth_date)->format('Y-m-d'); $qsDual['rel2_time'] = $c->birth_time ? substr($c->birth_time, 0, 5) : '12:00'; $qsDual['rel2_lat'] = (float) ($c->birthPlace?->latitude ?? 40.4168); $qsDual['rel2_lon'] = (float) ($c->birthPlace?->longitude ?? -3.7038); $qsDual['rel2_city'] = $cCity; $qsDual['rel2_country_code'] = $c->birthPlace?->country_code ?? 'ES'; $qsDual['rel2_timezone'] = $c->birthPlace?->timezone ?? 'Europe/Madrid'; $qsDual['rel2_title'] = $c->title ?? t('person') . ' #3'; $qsDual['dual_c_place_id'] = $c->birth_place_id; } if ($dual->chartD) { $d = $dual->chartD; $dCity = $d->birthPlace?->ascii_name ?? ($d->birthPlace?->name ?? 'Desconocido'); $qsDual['rel3_date'] = optional($d->birth_date)->format('Y-m-d'); $qsDual['rel3_time'] = $d->birth_time ? substr($d->birth_time, 0, 5) : '12:00'; $qsDual['rel3_lat'] = (float) ($d->birthPlace?->latitude ?? 40.4168); $qsDual['rel3_lon'] = (float) ($d->birthPlace?->longitude ?? -3.7038); $qsDual['rel3_city'] = $dCity; $qsDual['rel3_country_code'] = $d->birthPlace?->country_code ?? 'ES'; $qsDual['rel3_timezone'] = $d->birthPlace?->timezone ?? 'Europe/Madrid'; $qsDual['rel3_title'] = $d->title ?? t('person') . ' #4'; $qsDual['dual_d_place_id'] = $d->birth_place_id; } @endphp
@empty
{{ t('no-dual-maps-yet') }}
{{ t('create-dual-map-with-multiple-maps') }}
@endforelse
{{-- Harita düzenleme modalı --}} {{-- İlişki analizi düzenleme modalı --}} {{-- Çoklu harita düzenleme modalı --}} @include('frontend.panel.partials.new-chart-modal') @include('frontend.panel.partials.relationship-modal') @include('frontend.panel.partials.dual-chart-modal') @endsection